public final class BooleanLiteral extends AbstractBooleanExpression implements ValueExpression
| Modifier and Type | Method and Description |
|---|---|
void |
accept(ValueExpressionVisitor visitor)
Accept a visitor
|
void |
acceptConcrete(BooleanExpressionVisitor visitor)
Sub-classes must override this method so that the visitor knows the type of the visited class at compile time.
|
void |
dismissConcrete(BooleanExpressionVisitor visitor)
Sub-classes must override this method so that the visitor knows the type of the visited class at compile time.
|
static BooleanLiteral |
of(boolean value) |
static BooleanLiteral |
of(String value)
Create a new
BooleanLiteral instance from a String. |
boolean |
toBoolean()
Get boolean value this literal represents.
|
static BooleanExpression[] |
toBooleanExpressions(boolean[] values)
Map an array of booleans to and array of BooleanExpressions
|
String |
toString() |
acceptaddChild, getChild, getChildren, getParent, getRoot, isChild, isFirstSibling, isRoot, isSibling, setParentpublic static BooleanLiteral of(boolean value)
public static BooleanLiteral of(String value)
BooleanLiteral instance from a String.value - the string to be turned into a literalBooleanLiteral instanceIllegalArgumentException - in case the literal is not recognized.public boolean toBoolean()
public void acceptConcrete(BooleanExpressionVisitor visitor)
AbstractBooleanExpressionacceptConcrete in class AbstractBooleanExpressionvisitor - visitor to acceptpublic void dismissConcrete(BooleanExpressionVisitor visitor)
AbstractBooleanExpressiondismissConcrete in class AbstractBooleanExpressionvisitor - visitor to acceptpublic static BooleanExpression[] toBooleanExpressions(boolean[] values)
values - string literals to be turned into boolean expressionspublic void accept(ValueExpressionVisitor visitor)
ValueExpressionaccept in interface ValueExpressionaccept in class AbstractBooleanExpressionvisitor - visitor to acceptCopyright © 2018–2020. All rights reserved.