public class Literal 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 Literal |
of(String string)
Create a new
Literal instance from a String |
static BooleanExpression[] |
toBooleanExpressions(String[] strings)
Map an array of
String 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 Literal of(String string)
Literal instance from a Stringstring - the string to be turned into a literalpublic 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(String[] strings)
String to and array of BooleanExpressionsstrings - string literals to be turned into boolean expressionsCopyright © 2018. All rights reserved.