|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfmrisc.AST.ASTBase
fmrisc.AST.Identifier
fmrisc.AST.ValueDeclIdentifier
Handling of identifiers used in value declarations
Constructor Summary | |
ValueDeclIdentifier(java.lang.String name)
construct identifier from name |
Method Summary | |
ValueTableEntry |
getEntry()
returns value table entry |
ValueDeclIdentifier |
getSubstitution()
returns substitution identifier for instantiation |
java.lang.String |
getUniqueName()
returns unique name of identifier |
ValueDeclIdentifier |
instantiate()
returns instantiated copy of identifier |
void |
makeNameUnique()
replace name of identifier by unique name; this change is automatically propagated to all references to this 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(ValueDeclIdentifier substitution)
set substitution expression for instantiation |
Methods inherited from class fmrisc.AST.Identifier |
getName, printPriority, setName |
Methods inherited from class fmrisc.AST.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()
public java.lang.String getUniqueName()
public ValueTableEntry getEntry()
public ValueDeclIdentifier getSubstitution()
public void setSubstitution(ValueDeclIdentifier substitution)
substitution
- the substitution expressionpublic 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 written
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |