Class DefaultExpression

java.lang.Object
org.gvsig.expressionevaluator.impl.DefaultExpression
All Implemented Interfaces:
Cloneable, org.gvsig.expressionevaluator.Expression, org.gvsig.json.SupportFromJson, org.gvsig.json.SupportJson, org.gvsig.json.SupportToJson, org.gvsig.tools.persistence.Persistent, org.gvsig.tools.util.LabeledValue<org.gvsig.expressionevaluator.Expression>

public class DefaultExpression extends Object implements org.gvsig.expressionevaluator.Expression, org.gvsig.tools.util.LabeledValue<org.gvsig.expressionevaluator.Expression>
Author:
jjdelcerro
  • Field Details

    • COMPATIBILITY_SELECT_ID

      public static final String COMPATIBILITY_SELECT_ID
      See Also:
    • COMPATIBILITY_SELECT_OPTIONAL_SEMICOLON_AT_END

      public static final String COMPATIBILITY_SELECT_OPTIONAL_SEMICOLON_AT_END
      See Also:
    • manager

      protected org.gvsig.expressionevaluator.ExpressionEvaluatorManager manager
  • Constructor Details

    • DefaultExpression

      public DefaultExpression()
    • DefaultExpression

      public DefaultExpression(org.gvsig.expressionevaluator.ExpressionEvaluatorManager manager)
  • Method Details

    • getLabel

      public String getLabel()
      Specified by:
      getLabel in interface org.gvsig.tools.util.LabeledValue<org.gvsig.expressionevaluator.Expression>
    • getValue

      public org.gvsig.expressionevaluator.Expression getValue()
      Specified by:
      getValue in interface org.gvsig.tools.util.LabeledValue<org.gvsig.expressionevaluator.Expression>
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getSymbolTable

      public org.gvsig.expressionevaluator.SymbolTable getSymbolTable()
      Specified by:
      getSymbolTable in interface org.gvsig.expressionevaluator.Expression
    • getPhrase

      public String getPhrase()
      Specified by:
      getPhrase in interface org.gvsig.expressionevaluator.Expression
    • isPhraseEmpty

      public boolean isPhraseEmpty()
      Specified by:
      isPhraseEmpty in interface org.gvsig.expressionevaluator.Expression
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface org.gvsig.expressionevaluator.Expression
    • setPhrase

      public org.gvsig.expressionevaluator.Expression setPhrase(String phrase)
      Specified by:
      setPhrase in interface org.gvsig.expressionevaluator.Expression
    • clear

      public void clear()
      Specified by:
      clear in interface org.gvsig.expressionevaluator.Expression
    • getCode

      public org.gvsig.expressionevaluator.Code getCode()
      Specified by:
      getCode in interface org.gvsig.expressionevaluator.Expression
    • setSQLCompatible

      public void setSQLCompatible(boolean sqlCompatible)
      Specified by:
      setSQLCompatible in interface org.gvsig.expressionevaluator.Expression
    • isSQLCompatible

      public boolean isSQLCompatible()
      Specified by:
      isSQLCompatible in interface org.gvsig.expressionevaluator.Expression
    • execute

      public Object execute(org.gvsig.expressionevaluator.SymbolTable symbolTable)
      Specified by:
      execute in interface org.gvsig.expressionevaluator.Expression
    • link

      public void link(org.gvsig.expressionevaluator.SymbolTable symbolTable)
      Specified by:
      link in interface org.gvsig.expressionevaluator.Expression
    • saveToState

      public void saveToState(org.gvsig.tools.persistence.PersistentState state) throws org.gvsig.tools.persistence.exception.PersistenceException
      Specified by:
      saveToState in interface org.gvsig.tools.persistence.Persistent
      Throws:
      org.gvsig.tools.persistence.exception.PersistenceException
    • loadFromState

      public void loadFromState(org.gvsig.tools.persistence.PersistentState state) throws org.gvsig.tools.persistence.exception.PersistenceException
      Specified by:
      loadFromState in interface org.gvsig.tools.persistence.Persistent
      Throws:
      org.gvsig.tools.persistence.exception.PersistenceException
    • registerPersistence

      public static void registerPersistence()
    • toJson

      public javax.json.JsonObject toJson()
      Specified by:
      toJson in interface org.gvsig.json.SupportToJson
    • toJsonBuilder

      public org.gvsig.json.JsonObjectBuilder toJsonBuilder()
      Specified by:
      toJsonBuilder in interface org.gvsig.json.SupportToJson
    • fromJson

      public void fromJson(javax.json.JsonObject values)
      Specified by:
      fromJson in interface org.gvsig.json.SupportFromJson
    • toJSON

      @Deprecated public String toJSON()
      Deprecated.
      Specified by:
      toJSON in interface org.gvsig.expressionevaluator.Expression
    • fromJSON

      @Deprecated public void fromJSON(String json)
      Deprecated.
      Specified by:
      fromJSON in interface org.gvsig.expressionevaluator.Expression
    • clone

      public org.gvsig.expressionevaluator.Expression clone() throws CloneNotSupportedException
      Specified by:
      clone in interface org.gvsig.expressionevaluator.Expression
      Overrides:
      clone in class Object
      Throws:
      CloneNotSupportedException
    • toString

      public String toString()
      Specified by:
      toString in interface org.gvsig.tools.util.LabeledValue<org.gvsig.expressionevaluator.Expression>
      Overrides:
      toString in class Object
    • setUseBracketsForIdentifiers

      public void setUseBracketsForIdentifiers(boolean useBracketsForIdentifiers)
      Specified by:
      setUseBracketsForIdentifiers in interface org.gvsig.expressionevaluator.Expression
    • getUseBracketsForIdentifiers

      public boolean getUseBracketsForIdentifiers()
      Specified by:
      getUseBracketsForIdentifiers in interface org.gvsig.expressionevaluator.Expression
    • toEvaluator

      public org.gvsig.tools.evaluator.Evaluator toEvaluator()
      Specified by:
      toEvaluator in interface org.gvsig.expressionevaluator.Expression
    • selfRegister

      public static void selfRegister()