SFE.Compiler
Class ConstExpression

java.lang.Object
  extended by SFE.Compiler.Expression
      extended by SFE.Compiler.ConstExpression
Direct Known Subclasses:
BooleanConstant, IntConstant

public abstract class ConstExpression
extends Expression

The ConstExpression class represents consts expressions that can appear in the program.


Constructor Summary
ConstExpression()
           
 
Method Summary
abstract  int value()
          Returns the value stored in this constant expression
 
Methods inherited from class SFE.Compiler.Expression
bitAt, duplicate, evaluateExpression, hasSharedInput, size
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConstExpression

public ConstExpression()
Method Detail

value

public abstract int value()
Returns the value stored in this constant expression

Returns:
the value stored in this constant expression