cetus.hir
Class TemplateID

java.lang.Object
  extended by cetus.hir.Expression
      extended by cetus.hir.IDExpression
          extended by cetus.hir.TemplateID
All Implemented Interfaces:
Printable, Traversable, java.lang.Cloneable, java.lang.Comparable<Expression>

public class TemplateID
extends IDExpression


Field Summary
 
Fields inherited from class cetus.hir.IDExpression
global, symbol, typename
 
Fields inherited from class cetus.hir.Expression
children, needs_parens, object_print_method, parent
 
Constructor Summary
TemplateID(java.lang.String name)
           
TemplateID(java.lang.String name, java.util.List args)
           
 
Method Summary
 java.lang.Object clone()
          Creates and returns a deep copy of this expression.
static void defaultPrint(TemplateID ident, java.io.OutputStream stream)
          Prints an identifier to a stream.
 boolean equals(java.lang.Object o)
           
 int hashCode()
           
 java.lang.String toString()
          Every expression class should override toString method.
 
Methods inherited from class cetus.hir.IDExpression
findDeclaration, getSymbol, setGlobal, setSymbol, setTypename
 
Methods inherited from class cetus.hir.Expression
compareTo, equals2, findExpression, getChildren, getParent, getStatement, needsParens, print, printSelf, removeChild, setChild, setParens, setParent, setPrintMethod, swapWith, verify
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TemplateID

public TemplateID(java.lang.String name)

TemplateID

public TemplateID(java.lang.String name,
                  java.util.List args)
Method Detail

clone

public java.lang.Object clone()
Description copied from class: Expression
Creates and returns a deep copy of this expression.

Overrides:
clone in class IDExpression
Returns:
a deep copy of this expression.

defaultPrint

public static void defaultPrint(TemplateID ident,
                                java.io.OutputStream stream)
Prints an identifier to a stream.

Parameters:
ident - The identifier to print.
stream - The stream on which to print the identifier.

toString

public java.lang.String toString()
Description copied from class: Expression
Every expression class should override toString method.

Overrides:
toString in class Expression

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class Expression

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object