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()
Atom
public <T> T accept(NodeVisitor<T> visitor)
ExpressionNode
accept
in interface ExpressionNode
T
- the type of the visitorvisitor
- The visitorpublic java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2022 The Apache Software Foundation. All rights reserved.