Interface Expression


  • public interface Expression
    Represents a value expression. It could be a literal such as 'foo'. It could have a namespace such as data for data:name. It could have several parts such as item and name for item.name.
    See Also:
    Evaluator
    • Method Detail

      • hasNamespace

        default boolean hasNamespace()
      • isLiteral

        boolean isLiteral()
        Returns:
        true if it represents a literal
      • getLiteral

        Object getLiteral()
        Returns:
        the literal value, or null
      • toOriginalString

        String toOriginalString()
        Returns:
        the original value as defined in the template
      • collectTypeInfo

        default String collectTypeInfo()
      • hasTypeInfo

        default boolean hasTypeInfo()
      • getGeneratedId

        int getGeneratedId()
        The id must be unique for the template.
        Returns:
        the generated id or -1 for an expression that was not created by a parser