public final class BooleanLiteral extends AbstractBooleanExpression
| Modifier and Type | Method and Description |
|---|---|
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 BooleanExpression |
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, isRootclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddChild, getChild, getChildren, getParent, getRoot, isChild, isFirstSibling, isRootpublic static BooleanExpression of(boolean value)
public static BooleanLiteral of(String value)
BooleanLiteral instance from a Stringvalue - 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 expressionsCopyright © 2018–2019. All rights reserved.