Constructor and Description |
---|
TypedIdentifier(ValueDeclIdentifier identifier,
Type type)
construct typed identifier from identifier and type.
|
Modifier and Type | Method and Description |
---|---|
AST |
accept(ASTVisitor visitor)
Accept visitor for a visit.
|
ValueDeclIdentifier |
getIdentifier()
returns identifier name
|
Type |
getType()
returns identifier type
|
TypedIdentifier |
instantiate()
create instantiated copy of identifier
|
void |
print(java.io.PrintWriter out)
Prints text representation.
|
void |
printCore(java.io.PrintWriter out)
Prints text representation on out (without new line termination).
|
void |
resetSubstitution()
reset substitution field in identifier
|
void |
setSubstitution(TypedIdentifier substitution)
set substitution expression for instantiation
|
printParens, toString
public TypedIdentifier(ValueDeclIdentifier identifier, Type type)
identifier
- the identifiertype
- its typepublic ValueDeclIdentifier getIdentifier()
public Type getType()
public TypedIdentifier instantiate()
public void setSubstitution(TypedIdentifier substitution)
substitution
- the substitution expressionpublic void resetSubstitution()
public void printCore(java.io.PrintWriter out)
public void print(java.io.PrintWriter out)
public AST accept(ASTVisitor visitor)
visitor
- the visitor who is accepted by this node.