public final class BooleanConstant extends Object implements Atom
| Modifier and Type | Field and Description |
|---|---|
static BooleanConstant |
FALSE |
static BooleanConstant |
TRUE |
| Constructor and Description |
|---|
BooleanConstant(boolean value)
Creates a boolean constant from a boolean value.
|
BooleanConstant(String text)
Creates a boolean constant from a raw string.
|
| Modifier and Type | Method and Description |
|---|---|
<T> T |
accept(NodeVisitor<T> visitor)
Accept a visitor to process this node.
|
String |
getText()
Get the text content for this nodes
|
boolean |
getValue()
Returns the boolean value of the constant.
|
String |
toString() |
public static final BooleanConstant FALSE
public static final BooleanConstant TRUE
public BooleanConstant(String text)
text - the raw stringpublic BooleanConstant(boolean value)
value - the value from which this constant is createdpublic boolean getValue()
public String getText()
Atompublic <T> T accept(NodeVisitor<T> visitor)
ExpressionNodeaccept in interface ExpressionNodeT - the type of the visitorvisitor - The visitorCopyright © 2017 The Apache Software Foundation. All rights reserved.