|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectast.ASTNode
ast.Expr
ast.BinaryExpr
ast.BinaryLogicExpr
public abstract class BinaryLogicExpr
The abstract BinaryLogicExpr class represents boolean logic expressions. It can be either AND ('&&') or OR ('||'). It extends BinaryExpr and contains a lefthand expression and a righthand expression. Most of the functionality can be implemented within the visitor method for BinaryExpr, however, some functionality may need to be implemented in the visitor method for each subclass.
ASTNode,
BinaryExpr| Field Summary |
|---|
| Fields inherited from class ast.BinaryExpr |
|---|
leftExpr, rightExpr |
| Fields inherited from class ast.ASTNode |
|---|
charNum, lineNum, lineStr |
| Constructor Summary | |
|---|---|
BinaryLogicExpr(int lineNum,
Expr leftExpr,
Expr rightExpr)
BinaryLogicExpr constructor |
|
| Method Summary | |
|---|---|
abstract java.lang.Object |
accept(Visitor v)
Visitor method |
| Methods inherited from class ast.BinaryExpr |
|---|
getLeftExpr, getOperandType, getOpName, getOpType, getRightExpr |
| Methods inherited from class ast.Expr |
|---|
getExprType, setExprType |
| Methods inherited from class ast.ASTNode |
|---|
getLineNum |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BinaryLogicExpr(int lineNum,
Expr leftExpr,
Expr rightExpr)
lineNum - source line number corresponding to this AST nodeleftExpr - lefthand expression for ORingrightExpr - righthand expression for ORing| Method Detail |
|---|
public abstract java.lang.Object accept(Visitor v)
accept in class BinaryExprv - visitor object
Visitor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||