fmrisc.AST
Class TypeDeclIdentifier

java.lang.Object
  extended byfmrisc.AST.ASTBase
      extended byfmrisc.AST.Identifier
          extended byfmrisc.AST.TypeDeclIdentifier
All Implemented Interfaces:
AST

public final class TypeDeclIdentifier
extends Identifier

Handling of identifiers used in type declarations


Constructor Summary
TypeDeclIdentifier(java.lang.String name)
          construct identifier from name
 
Method Summary
 TypeTableEntry getEntry()
          returns value table entry
 java.lang.String getUniqueName()
          returns unique name 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).
 
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

TypeDeclIdentifier

public TypeDeclIdentifier(java.lang.String name)
construct identifier from name

Parameters:
name - the text representation of the identifier
Method Detail

getUniqueName

public java.lang.String getUniqueName()
returns unique name of identifier

Returns:
the unique name of the identifier

getEntry

public TypeTableEntry getEntry()
returns value table entry

Returns:
the value table entry

printCore

public void printCore(java.io.PrintWriter out)
Prints text representation on out (without new line termination).

Specified by:
printCore in interface AST
Overrides:
printCore in class Identifier
Parameters:
out - the stream on which the text is written

print

public void print(java.io.PrintWriter out)
Prints text representation on out (without new line termination). Overrides ASTBase.print such that parentheses are never printed around the number.

Specified by:
print in interface AST
Overrides:
print in class Identifier
Parameters:
out - the stream on which the text is written