Package org.apache.cayenne.template.parser

## Class ASTVariable

- java.lang.Object
- - org.apache.cayenne.template.parser.SimpleNode
  - - org.apache.cayenne.template.parser.IdentifierNode
    - - org.apache.cayenne.template.parser.ASTVariable

- All Implemented Interfaces:
    `ExpressionNode`, `Node`

      public class ASTVariable
      extends IdentifierNode
      implements ExpressionNode

  Since:
    4.1

- - ### Field Summary

    - ### Fields inherited from class org.apache.cayenne.template.parser.SimpleNode

      `children, id, parent`

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `ASTVariable​(int id)` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | `evaluate​(Context context)` |
    `boolean` | `evaluateAsBoolean​(Context context)` |
    `double` | `evaluateAsDouble​(Context context)` |
    `long` | `evaluateAsLong​(Context context)` |
    `Object` | `evaluateAsObject​(Context context)` |
    `String` | `evaluateAsString​(Context context)` |

    - ### Methods inherited from class org.apache.cayenne.template.parser.IdentifierNode

      `getIdentifier, setIdentifier`

    - ### Methods inherited from class org.apache.cayenne.template.parser.SimpleNode

      `dump, jjtAddChild, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtSetParent, toString, toString`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### ASTVariable

          public ASTVariable​(int id)

  - ### Method Detail

    - #### evaluateAsString

          public String evaluateAsString​(Context context)

      Specified by:
        `evaluateAsString` in interface `ExpressionNode`

    - #### evaluateAsObject

          public Object evaluateAsObject​(Context context)

      Specified by:
        `evaluateAsObject` in interface `ExpressionNode`

    - #### evaluate

          public void evaluate​(Context context)

      Specified by:
        `evaluate` in interface `Node`

    - #### evaluateAsLong

          public long evaluateAsLong​(Context context)

      Specified by:
        `evaluateAsLong` in interface `ExpressionNode`

    - #### evaluateAsDouble

          public double evaluateAsDouble​(Context context)

      Specified by:
        `evaluateAsDouble` in interface `ExpressionNode`

    - #### evaluateAsBoolean

          public boolean evaluateAsBoolean​(Context context)

      Specified by:
        `evaluateAsBoolean` in interface `ExpressionNode`