package de.dhbwstuttgart.syntaxtree;

import de.dhbwstuttgart.syntaxtree.type.RefTypeOrTPHOrWildcardOrGeneric;
import org.antlr.v4.runtime.Token;

public class Field extends GTVDeclarationContext implements Generic {
	
	private String name;
	private RefTypeOrTPHOrWildcardOrGeneric type;


	private GenericDeclarationList genericParameters;
    
	public Field(String name, RefTypeOrTPHOrWildcardOrGeneric type, int modifier, Token offset){
		super(offset);
		this.name = name;
		this.type = type;
	}

  	public String getName(){
    return this.name;
  }

	public RefTypeOrTPHOrWildcardOrGeneric getType() {
		return type;
	}
}

