JavaTXCompilerInJavaTX/src/main/java/de/dhbwstuttgart/syntaxtree/FormalParameter.java
Martin Plümicke f8d3263d24 Pfadumstellung
2018-12-21 15:27:29 +01:00

30 lines
690 B
Java

package de.dhbwstuttgart.syntaxtree;
import de.dhbwstuttgart.syntaxtree.type.RefTypeOrTPHOrWildcardOrGeneric;
import org.antlr.v4.runtime.Token;
public class FormalParameter extends SyntaxTreeNode
{
private RefTypeOrTPHOrWildcardOrGeneric type;
private String name;
public FormalParameter(String name, RefTypeOrTPHOrWildcardOrGeneric type, Token offset){
super(offset);
this.name = name;
this.type = type;
}
public RefTypeOrTPHOrWildcardOrGeneric getType() {
return type;
}
public String getName() {
return name;
}
@Override
public void accept(ASTVisitor visitor) {
visitor.visit(this);
}
}