public final class BooleanLiteralExpr extends ConstantExpr implements BooleanLiteralExpression
true
or
false
. It does not have any children.Constructor and Description |
---|
BooleanLiteralExpr()
The noarg constructor is needed for ANTLR support and deserialization.
|
BooleanLiteralExpr(antlr.Token token)
The noarg constructor is needed for ANTLR support.
|
Modifier and Type | Method and Description |
---|---|
void |
arrive(NodeVisitor visitor)
Delegates to the argument
visitor . |
boolean |
getBoolean()
Returns the boolean value represented by this expression.
|
java.lang.Object |
leave(NodeVisitor visitor,
java.lang.Object[] results)
Delegates to the argument
visitor . |
getValue, newConstant
clone, getChildren, getJavaClass, getObject, getParent, getTokenType, setObject, setParent, toString, walkNextChild
getColumn, getLine, getTypeInfo, initialize, initialize, initialize, setColumn, setLine, setTypeInfo, treeToString
addChild, decode, encode, equals, equalsList, equalsListPartial, equalsTree, equalsTreePartial, findAll, findAllPartial, getFirstChild, getNextSibling, getNumberOfChildren, getTokenNames, removeChildren, setFirstChild, setNextSibling, setVerboseStringConversion, toStringList, toStringTree, xmlSerialize, xmlSerializeNode, xmlSerializeRootClose, xmlSerializeRootOpen
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getValue
getChildren, getJavaClass, getObject, getParent, getTokenType, setObject, setParent, walkNextChild
public BooleanLiteralExpr()
setChildren
optionally.public BooleanLiteralExpr(antlr.Token token)
setChildren
optionally.public boolean getBoolean()
getBoolean
in interface BooleanLiteralExpression
public void arrive(NodeVisitor visitor)
visitor
.arrive
in interface Node
arrive
in class ConstantExpr
visitor
- the node visitorpublic java.lang.Object leave(NodeVisitor visitor, java.lang.Object[] results)
visitor
.leave
in interface Node
leave
in class ConstantExpr
visitor
- the node visitorresults
- the result arrayCopyright © 2005-2012 Apache Software Foundation. All Rights Reserved.