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, wait
cloneQuietly
toJson, toJsonBuilder
label
public 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.Object
public int hashCode()
hashCode
in class java.lang.Object
public SymbolTable getSymbolTable()
Expression
getSymbolTable
in interface Expression
public java.lang.String getPhrase()
getPhrase
in interface Expression
public boolean isPhraseEmpty()
isPhraseEmpty
in interface Expression
public boolean isEmpty()
isEmpty
in interface Expression
public Expression setPhrase(java.lang.String phrase)
setPhrase
in interface Expression
public void clear()
clear
in interface Expression
public Code getCode()
getCode
in interface Expression
public void setSQLCompatible(boolean sqlCompatible)
setSQLCompatible
in interface Expression
public boolean isSQLCompatible()
isSQLCompatible
in interface Expression
public java.lang.Object execute(SymbolTable symbolTable)
execute
in interface Expression
public void link(SymbolTable symbolTable)
link
in interface Expression
public void saveToState(PersistentState state) throws PersistenceException
Persistent
saveToState
in interface Persistent
PersistenceException
public void loadFromState(PersistentState state) throws PersistenceException
Persistent
loadFromState
in interface Persistent
PersistenceException
public static void registerPersistence()
public JsonObject toJson()
toJson
in interface SupportToJson
public JsonObjectBuilder toJsonBuilder()
toJsonBuilder
in interface SupportToJson
public 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 Expression
public Expression clone() throws java.lang.CloneNotSupportedException
clone
in interface Expression
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public java.lang.String toString()
toString
in interface LabeledValue<Expression>
toString
in class java.lang.Object
public void setUseBracketsForIdentifiers(boolean useBracketsForIdentifiers)
setUseBracketsForIdentifiers
in interface Expression
public boolean getUseBracketsForIdentifiers()
getUseBracketsForIdentifiers
in interface Expression
public Evaluator toEvaluator()
toEvaluator
in interface Expression
public static void selfRegister()