Class ResolvedExpression<R>

  • Type Parameters:
    R - the type of the resulting value of the expression
    All Implemented Interfaces:
    java.io.Serializable, Expression<R>, Node

    public final class ResolvedExpression<R>
    extends java.lang.Object
    implements Expression<R>, java.io.Serializable
    An expression that needs no further processing. It contains already its own result, which can be simply retrieved by the get() method.
    See Also:
    Serialized Form
    • Method Detail

      • isResolved

        public boolean isResolved()
        Description copied from interface: Expression
        returns true if the expression contains a concrete value. Thus the method Expression.get() can be used to retrieve the actual value. If this method returns false, then the get method will throw an exception.
        Specified by:
        isResolved in interface Expression<R>
        Returns:
        true if the value can be retrieved, false otherwise.
      • get

        public R get()
        Description copied from interface: Expression
        Retrieves the value of the expression. If the expression is deferred, then an expression will be thrown.
        Specified by:
        get in interface Expression<R>
        Returns:
        the value of the expression.
      • getChildren

        public java.util.List<Node> getChildren()
        Description copied from interface: Node
        Has to return the children of the node. This must never return null
        Specified by:
        getChildren in interface Node
        Returns:
        a list containing all the children of the node
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object