Class ObjectParser.Source

java.lang.Object
org.bzdev.util.ObjectParser.Source
Enclosing interface:
ObjectParser<T>

public static class ObjectParser.Source extends Object
Object to encapsulate ESP source code. This is used by ObjectNamerLauncher to distinguish ESP expressions from strings that may be similar.
See Also:
  • Method Details

    • evaluate

      public Object evaluate() throws ObjectParser.Exception
      Evaluate the encapsulated source if not yet evaluated and return the results of the evaluation. The source is evaluated only once in case of side effects.
      Returns:
      the object resulting from evaluating the source a single time
      Throws:
      ObjectParser.Exception
    • toString

      public String toString()
      Return the string encapsulated by this object
      Overrides:
      toString in class Object
      Returns:
      the string