|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.magicproject.operation.Operation
net.sf.magicproject.operation.Dummy
public final class Dummy
No standard expression is associated to this operation. Special expression
such as BitCount are plugged in this
operation.
| Method Summary | |
|---|---|
static Dummy |
getInstance()
Return the unique instance of this operation. |
java.lang.String |
getOperator()
Return operator name |
int |
process(int leftValue,
int rightValue)
Process a binary operation with two values and return the result. |
Expression |
readNextExpression(java.io.InputStream inputFile)
return the next Expression read from the current offset |
Expression |
readNextExpression(int idExpression,
java.io.InputStream inputFile)
return the next Expression read from the current offset |
| Methods inherited from class net.sf.magicproject.operation.Operation |
|---|
isUselessWith |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public Expression readNextExpression(java.io.InputStream inputFile)
Operation
readNextExpression in class OperationinputFile - is the file containing this expression
public java.lang.String getOperator()
getOperator in class Operation
public int process(int leftValue,
int rightValue)
Operation
process in class OperationleftValue - the left value of binary operationrightValue - the right value of binary operation
public Expression readNextExpression(int idExpression,
java.io.InputStream inputFile)
throws java.io.IOException
idExpression - expression typeinputFile - is the file containing this expression
java.io.IOException - if error occurred during the reading process from the specified
input streampublic static Dummy getInstance()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||