cetus.hir
Class Literal

java.lang.Object
  extended by cetus.hir.Expression
      extended by cetus.hir.Literal
All Implemented Interfaces:
Printable, Traversable, java.lang.Cloneable, java.lang.Comparable<Expression>
Direct Known Subclasses:
BooleanLiteral, CharLiteral, EscapeLiteral, FloatLiteral, IntegerLiteral, StringLiteral

public abstract class Literal
extends Expression

Represents an immediate value within the program.


Field Summary
 
Fields inherited from class cetus.hir.Expression
children, needs_parens, object_print_method, parent
 
Constructor Summary
protected Literal()
           
 
Method Summary
 java.lang.Object clone()
          Creates and returns a deep copy of this expression.
 
Methods inherited from class cetus.hir.Expression
compareTo, equals, equals2, findExpression, getChildren, getParent, getStatement, needsParens, print, printSelf, removeChild, setChild, setParens, setParent, setPrintMethod, swapWith, toString, verify
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Literal

protected Literal()
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 Expression
Returns:
a deep copy of this expression.