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
|
|
|
|
2016-12-16 00:00:37 +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;
|
2016-09-10 00:40:17 +02:00
|
|
|
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;
|
2016-09-10 00:40:17 +02:00
|
|
|
this.type = type;
|
2016-08-17 00:45:14 +02:00
|
|
|
}
|
2014-03-25 04:41:07 +01:00
|
|
|
|
2017-03-16 20:02:53 +01:00
|
|
|
public RefTypeOrTPHOrWildcardOrGeneric getType() {
|
2017-03-08 03:43:47 +01:00
|
|
|
return type;
|
|
|
|
}
|
2017-06-23 21:33:27 +02:00
|
|
|
|
|
|
|
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
|
|
|
}
|