30 lines
690 B
Java
Raw Normal View History

2014-09-02 10:33:54 +02:00
package de.dhbwstuttgart.syntaxtree;
2013-10-18 13:33:46 +02:00
2017-03-16 20:02:53 +01:00
import de.dhbwstuttgart.syntaxtree.type.RefTypeOrTPHOrWildcardOrGeneric;
2017-02-17 16:58:19 +01:00
import org.antlr.v4.runtime.Token;
2016-12-02 01:23:01 +01:00
public class FormalParameter extends SyntaxTreeNode
2013-10-18 13:33:46 +02:00
{
2017-03-16 20:02:53 +01:00
private RefTypeOrTPHOrWildcardOrGeneric type;
private String name;
2013-10-18 13:33:46 +02:00
2017-03-16 20:02:53 +01:00
public FormalParameter(String name, RefTypeOrTPHOrWildcardOrGeneric type, Token offset){
2017-03-02 18:16:14 +01:00
super(offset);
this.name = name;
this.type = type;
}
2017-03-16 20:02:53 +01:00
public RefTypeOrTPHOrWildcardOrGeneric getType() {
return type;
}
public String getName() {
return name;
}
2017-06-28 17:20:26 +02:00
@Override
public void accept(ASTVisitor visitor) {
visitor.visit(this);
}
2013-10-18 13:33:46 +02:00
}