public final class BooleanLiteral extends AbstractLiteral implements BooleanExpression
| Modifier and Type | Method and Description |
|---|---|
void |
accept(BooleanExpressionVisitor visitor)
Accept a visitor
|
void |
accept(LiteralVisitor visitor)
Accept a
LiteralVisitor. |
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() |
acceptclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitacceptpublic 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 static BooleanExpression[] toBooleanExpressions(boolean[] values)
values - string literals to be turned into boolean expressionspublic void accept(LiteralVisitor visitor)
LiteralLiteralVisitor.public void accept(BooleanExpressionVisitor visitor)
BooleanExpressionaccept in interface BooleanExpressionvisitor - visitor to acceptCopyright © 2018–2021. All rights reserved.