public final class BooleanConstant extends java.lang.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(java.lang.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.
|
java.lang.String |
getText()
Get the text content for this nodes
|
boolean |
getValue()
Returns the boolean value of the constant.
|
java.lang.String |
toString() |
public static final BooleanConstant FALSE
public static final BooleanConstant TRUE
public BooleanConstant(java.lang.String text)
text - the raw stringpublic BooleanConstant(boolean value)
value - the value from which this constant is createdpublic boolean getValue()
public java.lang.String getText()
Atompublic <T> T accept(NodeVisitor<T> visitor)
ExpressionNodeaccept in interface ExpressionNodeT - the type of the visitorvisitor - The visitorpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2010 - 2023 Adobe. All Rights Reserved