|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfmrisc.Syntax.ASTBase
fmrisc.Syntax.Identifier
fmrisc.Syntax.TypeDeclIdentifier
public final class TypeDeclIdentifier
Handling of identifiers used in type declarations
Constructor Summary | |
---|---|
TypeDeclIdentifier(java.lang.String name)
construct identifier from name |
Method Summary | |
---|---|
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 |
Methods inherited from class fmrisc.Syntax.Identifier |
---|
getName, printPriority, setName |
Methods inherited from class fmrisc.Syntax.ASTBase |
---|
printParens, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TypeDeclIdentifier(java.lang.String name)
name
- the text representation of the identifierMethod Detail |
---|
public 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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |