Package ognl

Class ExpressionNode

    • Constructor Detail

      • ExpressionNode

        public ExpressionNode​(int i)
      • ExpressionNode

        public ExpressionNode​(OgnlParser p,
                              int i)
    • Method Detail

      • isNodeConstant

        public boolean isNodeConstant​(OgnlContext context)
                               throws OgnlException
        Returns true iff this node is constant without respect to the children.
        Overrides:
        isNodeConstant in class SimpleNode
        Parameters:
        context - the OgnlContext within which to perform the operation.
        Returns:
        true if this node is a constant, false otherwise.
        Throws:
        OgnlException - if the check fails.
      • getExpressionOperator

        public java.lang.String getExpressionOperator​(int index)
      • toGetSourceString

        public java.lang.String toGetSourceString​(OgnlContext context,
                                                  java.lang.Object target)
        Description copied from interface: JavaSource
        Expected to return a java source representation of itself such that it could be turned into a literal java expression to be compiled and executed for ExpressionAccessor.get(OgnlContext, Object) calls.
        Specified by:
        toGetSourceString in interface JavaSource
        Overrides:
        toGetSourceString in class SimpleNode
        Parameters:
        context - the OgnlContext within which to perform the operation.
        target - the Object from which to retrieve the get source string.
        Returns:
        Literal java string representation of an object get.
      • toSetSourceString

        public java.lang.String toSetSourceString​(OgnlContext context,
                                                  java.lang.Object target)
        Description copied from interface: JavaSource
        Expected to return a java source representation of itself such that it could be turned into a literal java expression to be compiled and executed for ExpressionAccessor.get(OgnlContext, Object) calls.
        Specified by:
        toSetSourceString in interface JavaSource
        Overrides:
        toSetSourceString in class SimpleNode
        Parameters:
        context - the OgnlContext within which to perform the operation.
        target - the Object from which to retrieve the set source string.
        Returns:
        Literal java string representation of an object set.