public class DefaultExpression extends java.lang.Object implements Expression, LabeledValue<Expression>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COMPATIBILITY_SELECT_ID |
static java.lang.String |
COMPATIBILITY_SELECT_OPTIONAL_SEMICOLON_AT_END |
protected ExpressionEvaluatorManager |
manager |
| Constructor and Description |
|---|
DefaultExpression() |
DefaultExpression(ExpressionEvaluatorManager manager) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
Expression |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.Object |
execute(SymbolTable symbolTable) |
void |
fromJson(JsonObject values) |
void |
fromJSON(java.lang.String json)
Deprecated.
|
Code |
getCode() |
java.lang.String |
getLabel() |
java.lang.String |
getPhrase() |
SymbolTable |
getSymbolTable()
This symbol table don't persist with the expression.
|
boolean |
getUseBracketsForIdentifiers() |
Expression |
getValue() |
int |
hashCode() |
boolean |
isEmpty() |
boolean |
isPhraseEmpty() |
boolean |
isSQLCompatible() |
void |
link(SymbolTable symbolTable) |
void |
loadFromState(PersistentState state)
Set the state of the object from the state passed as parameter.
|
static void |
registerPersistence() |
void |
saveToState(PersistentState state)
Saves the internal state of the object on the provided
PersistentState object.
|
static void |
selfRegister() |
Expression |
setPhrase(java.lang.String phrase) |
void |
setSQLCompatible(boolean sqlCompatible) |
void |
setUseBracketsForIdentifiers(boolean useBracketsForIdentifiers) |
Evaluator |
toEvaluator() |
JsonObject |
toJson() |
java.lang.String |
toJSON()
Deprecated.
|
JsonObjectBuilder |
toJsonBuilder() |
java.lang.String |
toString() |
finalize, getClass, notify, notifyAll, wait, wait, waitcloneQuietlytoJson, toJsonBuilderlabelpublic static final java.lang.String COMPATIBILITY_SELECT_ID
public static final java.lang.String COMPATIBILITY_SELECT_OPTIONAL_SEMICOLON_AT_END
protected ExpressionEvaluatorManager manager
public DefaultExpression()
public DefaultExpression(ExpressionEvaluatorManager manager)
public java.lang.String getLabel()
getLabel in interface LabeledValue<Expression>public Expression getValue()
getValue in interface LabeledValue<Expression>public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic SymbolTable getSymbolTable()
ExpressiongetSymbolTable in interface Expressionpublic java.lang.String getPhrase()
getPhrase in interface Expressionpublic boolean isPhraseEmpty()
isPhraseEmpty in interface Expressionpublic boolean isEmpty()
isEmpty in interface Expressionpublic Expression setPhrase(java.lang.String phrase)
setPhrase in interface Expressionpublic void clear()
clear in interface Expressionpublic Code getCode()
getCode in interface Expressionpublic void setSQLCompatible(boolean sqlCompatible)
setSQLCompatible in interface Expressionpublic boolean isSQLCompatible()
isSQLCompatible in interface Expressionpublic java.lang.Object execute(SymbolTable symbolTable)
execute in interface Expressionpublic void link(SymbolTable symbolTable)
link in interface Expressionpublic void saveToState(PersistentState state) throws PersistenceException
PersistentsaveToState in interface PersistentPersistenceExceptionpublic void loadFromState(PersistentState state) throws PersistenceException
PersistentloadFromState in interface PersistentPersistenceExceptionpublic static void registerPersistence()
public JsonObject toJson()
toJson in interface SupportToJsonpublic JsonObjectBuilder toJsonBuilder()
toJsonBuilder in interface SupportToJsonpublic void fromJson(JsonObject values)
fromJson in interface SupportFromJson@Deprecated public java.lang.String toJSON()
toJSON in interface Expression@Deprecated public void fromJSON(java.lang.String json)
fromJSON in interface Expressionpublic Expression clone() throws java.lang.CloneNotSupportedException
clone in interface Expressionclone in class java.lang.Objectjava.lang.CloneNotSupportedExceptionpublic java.lang.String toString()
toString in interface LabeledValue<Expression>toString in class java.lang.Objectpublic void setUseBracketsForIdentifiers(boolean useBracketsForIdentifiers)
setUseBracketsForIdentifiers in interface Expressionpublic boolean getUseBracketsForIdentifiers()
getUseBracketsForIdentifiers in interface Expressionpublic Evaluator toEvaluator()
toEvaluator in interface Expressionpublic static void selfRegister()