|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSFE.Compiler.Expression
SFE.Compiler.ConstExpression
SFE.Compiler.IntConstant
public class IntConstant
The IntConstant class represents integer consts expressions that can appear in the program.
Constructor Summary | |
---|---|
IntConstant(int intConst)
Constructs a new IntConstant from a given integer const |
Method Summary | |
---|---|
Expression |
bitAt(int i)
Returns Expression that represents the bit at place i of this Expression |
static double |
log2(double a)
|
int |
size()
Returns the number of bits needed to represent this expression. |
java.lang.String |
toString()
Returns a string representation of the object. |
int |
value()
Returns the value stored in this IntConstant |
Methods inherited from class SFE.Compiler.Expression |
---|
duplicate, evaluateExpression, hasSharedInput |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public IntConstant(int intConst)
intConst
- the given integer constantMethod Detail |
---|
public static double log2(double a)
public int size()
size
in class Expression
public java.lang.String toString()
toString
in class java.lang.Object
public int value()
value
in class ConstExpression
public Expression bitAt(int i)
bitAt
in class Expression
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |