|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object
|
+--Operator
|
+--NegationOperator
This represents the binary operator - in an arithmetic equation; as in -(3) = -3.
| Fields inherited from class Operator |
numberOperands,
precedence,
preceededByAnOperand,
token |
| Constructor Summary | |
NegationOperator()
Creates an Operator with:
token: -
precedence: 1
numberOperands: 1
preceededByAnOperand: false
|
|
| Method Summary | |
int |
operate(int[] x)
|
| Methods inherited from class Operator |
isHigherPrecedence,
isLowerPrecedence,
toString |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Constructor Detail |
public NegationOperator()
Operator with:
| Method Detail |
public int operate(int[] x)
x[] - the operands
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||