cetus.hir
Class OperatorID

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

public class OperatorID
extends IDExpression

C++ overloaded operator IDs.


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
OperatorID(java.lang.String name)
           
 
Method Summary
 void print(java.io.OutputStream stream)
          Print the code for the IR represented by the object.
 java.lang.String toString()
          Every expression class should override toString method.
 
Methods inherited from class cetus.hir.IDExpression
clone, findDeclaration, getSymbol, setGlobal, setSymbol, setTypename
 
Methods inherited from class cetus.hir.Expression
compareTo, equals, equals2, findExpression, getChildren, getParent, getStatement, needsParens, printSelf, removeChild, setChild, setParens, setParent, setPrintMethod, swapWith, verify
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OperatorID

public OperatorID(java.lang.String name)
Method Detail

print

public void print(java.io.OutputStream stream)
Description copied from interface: Printable
Print the code for the IR represented by the object. Always calls object_print_method(this, stream). If the object's print method is null, nothing is printed; this provides an easy mechanism to temporarily hide something.

Specified by:
print in interface Printable
Overrides:
print in class Expression
Parameters:
stream - The stream on which to print the data.

toString

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

Overrides:
toString in class Expression