|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.sc3d.apt.sss.v3.Calculator.Expression
org.sc3d.apt.sss.v3.Calculator.Operation
public static class Calculator.Operation
An Expression whose outermost operator is an addition, subtraction, multiplication of division.
| Field Summary | |
|---|---|
Calculator.Expression |
e1
One of the operands. |
Calculator.Expression |
e2
One of the operands. |
java.lang.String |
operator
"+", "-", "*" or "/". |
| Constructor Summary | |
|---|---|
Calculator.Operation(Calculator.Expression e1,
Calculator.Expression e2,
java.lang.String operator)
Constructs an Operation, given values for its fields. |
|
| Method Summary | |
|---|---|
java.math.BigInteger |
evaluate()
Evaluates the operands and performs the operation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final Calculator.Expression e1
public final Calculator.Expression e2
public final java.lang.String operator
| Constructor Detail |
|---|
public Calculator.Operation(Calculator.Expression e1,
Calculator.Expression e2,
java.lang.String operator)
| Method Detail |
|---|
public java.math.BigInteger evaluate()
evaluate in class Calculator.Expression
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||