|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.magicproject.operation.Operation
public abstract class Operation
Reprsent an operation.
| Method Summary | |
|---|---|
abstract java.lang.String |
getOperator()
Return operator name |
boolean |
isUselessWith(int leftValue,
int rightValue)
Is this operation is useless or not |
abstract int |
process(int leftValue,
int rightValue)
Process a binary operation with two values and return the result. |
abstract Expression |
readNextExpression(java.io.InputStream inputFile)
return the next Expression read from the current offset |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public abstract Expression readNextExpression(java.io.InputStream inputFile)
throws java.io.IOException
inputFile - is the file containing this expression
java.io.IOException - if error occured during the reading process from the specified
input stream
public abstract int process(int leftValue,
int rightValue)
leftValue - the left value of binary operationrightValue - the right value of binary operation
public abstract java.lang.String getOperator()
public boolean isUselessWith(int leftValue,
int rightValue)
leftValue - the left valuerightValue - the right value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||