|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfmrisc.AST.ASTBase
fmrisc.AST.DeclarationBase
fmrisc.AST.ValueDeclaration
Handling of value declarations.
Constructor Summary | |
ValueDeclaration(ValueDeclIdentifier name,
Type type,
Expression value)
construct value declaration with denoted name, type and value. |
Method Summary | |
Identifier |
getIdentifier()
returns declaration name |
Type |
getType()
returns declaration type |
Expression |
getValue()
returns declaration value |
ValueDeclIdentifier |
getValueDeclIdentifier()
returns declaration name |
ValueDeclaration |
instantiate()
create instantiated copy of declaration |
void |
printCore(java.io.PrintWriter out)
Prints text representation of tree on out (without new line termination). |
Methods inherited from class fmrisc.AST.DeclarationBase |
print |
Methods inherited from class fmrisc.AST.ASTBase |
printParens, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface fmrisc.AST.AST |
printParens, toString |
Constructor Detail |
public ValueDeclaration(ValueDeclIdentifier name, Type type, Expression value)
name
- the declared nametype
- the type associated to the namevalue
- the value associated to the name (may be null)Method Detail |
public ValueDeclIdentifier getValueDeclIdentifier()
public Identifier getIdentifier()
public Type getType()
public Expression getValue()
public ValueDeclaration instantiate()
public void printCore(java.io.PrintWriter out)
printCore
in interface AST
printCore
in class ASTBase
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 |