|
|||||||||||
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.TypeDeclaration
Handling of type declarations.
Constructor Summary | |
TypeDeclaration(TypeDeclIdentifier name,
Type type)
construct type declaration with denoted name and type. |
Method Summary | |
Identifier |
getIdentifier()
returns declaration name |
Type |
getType()
returns declaration type |
TypeDeclIdentifier |
getTypeDeclIdentifier()
returns declaration name |
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 TypeDeclaration(TypeDeclIdentifier name, Type type)
name
- the declared nametype
- the type associated to the name (may be null)Method Detail |
public TypeDeclIdentifier getTypeDeclIdentifier()
public Identifier getIdentifier()
public Type getType()
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 |