|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSFE.Compiler.Expression
public abstract class Expression
Abstract class for representing expressions that can be defined in the program.
Constructor Summary | |
---|---|
Expression()
|
Method Summary | |
---|---|
Expression |
bitAt(int i)
This method should be overriden by subclasses that can return a single bit from their expression. |
Expression |
duplicate()
Returns this expression. |
Expression |
evaluateExpression(AssignmentStatement as,
BlockStatement result)
Recursivly calculates inner arithmetic expression. |
boolean |
hasSharedInput(Expression exp)
Returns true if this exression has input pin that share an input. |
abstract int |
size()
Returns the number of bits needed to represent this expression. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Expression()
Method Detail |
---|
public abstract int size()
public Expression bitAt(int i)
public Expression evaluateExpression(AssignmentStatement as, BlockStatement result)
as
- the AssignmentStatement that holds this expression (as rhs).result
- the BlockStatement to hold the result in.
public Expression duplicate()
public boolean hasSharedInput(Expression exp)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |