|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.ocpware.compiler.arith.ArithExpr
org.extex.ocpware.compiler.arith.BinaryOp
public class BinaryOp
This class represents the binary addition operation of two arithmetic expressions.
| Constructor Summary | |
|---|---|
BinaryOp(int opCode,
java.lang.String op,
ArithExpr left,
ArithExpr right)
Creates a new object. |
|
BinaryOp(int opCode,
java.lang.String op,
ArithExpr left,
ArithExpr right,
boolean needsParen)
Creates a new object. |
|
| Method Summary | |
|---|---|
ArithExpr |
getLeft()
Getter for left. |
java.lang.String |
getOp()
Getter for op. |
ArithExpr |
getRight()
Getter for right. |
boolean |
needsParen()
Return the indicator that parentheses are needed when printed in a wider arithmetic context. |
java.lang.String |
toString()
|
| Methods inherited from class org.extex.ocpware.compiler.arith.ArithExpr |
|---|
parse, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BinaryOp(int opCode,
java.lang.String op,
ArithExpr left,
ArithExpr right)
opCode - the op codeop - the print presentationleft - the left argumentright - the right argument
public BinaryOp(int opCode,
java.lang.String op,
ArithExpr left,
ArithExpr right,
boolean needsParen)
opCode - the op codeop - the print presentationleft - the left argumentright - the right argumentneedsParen - the indicator for the precedence of the operator| Method Detail |
|---|
public ArithExpr getLeft()
public java.lang.String getOp()
public ArithExpr getRight()
public boolean needsParen()
needsParen in class ArithExprArithExpr.needsParen()public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||