|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object fmrisc.Syntax.ASTBase fmrisc.Syntax.Identifier fmrisc.Syntax.ValueDeclIdentifier
public final class ValueDeclIdentifier
Handling of identifiers used in value declarations
Constructor Summary | |
---|---|
ValueDeclIdentifier(java.lang.String name)
construct identifier from name |
Method Summary | |
---|---|
AST |
accept(ASTVisitor visitor)
Accept visitor for a visit. |
ValueDeclIdentifier |
getSubstitution()
returns substitution identifier for instantiation |
ValueSymbol |
getSymbol()
returns value symbol |
java.lang.String |
getUniqueName()
returns unique name of identifier |
ValueDeclIdentifier |
instantiate()
returns instantiated copy of identifier |
boolean |
isReferenced()
check whether substitution was referenced |
void |
makeNameUnique(UniqueNameTable table)
Replace name of identifier by unique name derived from table. |
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(ValueDeclIdentifier substitution)
set substitution expression 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 ValueDeclIdentifier(java.lang.String name)
name
- the text representation of the identifierMethod Detail |
---|
public void makeNameUnique(UniqueNameTable table)
table
- the name table to be used for making the name uniquepublic java.lang.String getUniqueName()
public ValueSymbol getSymbol()
public ValueDeclIdentifier getSubstitution()
public void setSubstitution(ValueDeclIdentifier substitution)
substitution
- the substitution expressionpublic boolean isReferenced()
public void resetSubstitution()
public ValueDeclIdentifier 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 |