|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectast.ASTNode
ast.Expr
ast.ConstExpr
ast.ConstBooleanExpr
public class ConstBooleanExpr
The ConstBooleanExpr class represents a boolean constant expression. It extends constant expressions so it containts a constant value (represented as a String). Since this class is similar to other subclasses most of the functionality can be implemented in the visitor method for the parent class.
ASTNode,
ConstExpr| Field Summary |
|---|
| Fields inherited from class ast.ConstExpr |
|---|
constant |
| Fields inherited from class ast.ASTNode |
|---|
charNum, lineNum, lineStr |
| Constructor Summary | |
|---|---|
ConstBooleanExpr(int lineNum,
java.lang.String constant)
ConstBooleanExpr constructor |
|
| Method Summary | |
|---|---|
java.lang.Object |
accept(Visitor v)
Visitor method |
| Methods inherited from class ast.ConstExpr |
|---|
getConstant |
| 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 ConstBooleanExpr(int lineNum,
java.lang.String constant)
lineNum - source line number corresponding to this AST nodeconstant - constant value (as a String)| Method Detail |
|---|
public java.lang.Object accept(Visitor v)
accept in class ConstExprv - visitor object
Visitor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||