public final class TypeDeclIdentifier extends Identifier
Constructor and Description |
---|
TypeDeclIdentifier(java.lang.String name)
construct identifier from name
|
Modifier and Type | Method and Description |
---|---|
AST |
accept(ASTVisitor visitor)
Accept visitor for a visit.
|
TypeDeclIdentifier |
getSubstitution()
returns substitution identifier for instantiation
|
TypeSymbol |
getSymbol()
returns type symbol
|
TypeDeclIdentifier |
instantiate()
returns instantiated copy of identifier
|
void |
print(java.io.PrintWriter out)
Prints text representation on out (without new line termination).
|
void |
printCore(java.io.PrintWriter out)
Prints text representation on out (without new line termination).
|
void |
resetSubstitution()
reset substitution field
|
void |
setSubstitution(TypeDeclIdentifier substitution)
set substitution type for instantiation
|
getName, printPriority, setName
printParens, toString
public TypeDeclIdentifier(java.lang.String name)
name
- the text representation of the identifierpublic TypeSymbol getSymbol()
public TypeDeclIdentifier getSubstitution()
public void setSubstitution(TypeDeclIdentifier substitution)
substitution
- the substitution typepublic void resetSubstitution()
public TypeDeclIdentifier instantiate()
public void printCore(java.io.PrintWriter out)
printCore
in interface AST
printCore
in class Identifier
out
- the stream on which the text is writtenpublic void print(java.io.PrintWriter out)
print
in interface AST
print
in class Identifier
out
- the stream on which the text is writtenpublic AST accept(ASTVisitor visitor)
visitor
- the visitor who is accepted by this node.