Class AstFunction

    • Constructor Detail

      • AstFunction

        public AstFunction​(java.lang.String name,
                           int index,
                           AstParameters params)
      • AstFunction

        public AstFunction​(java.lang.String name,
                           int index,
                           AstParameters params,
                           boolean varargs)
    • Method Detail

      • invoke

        protected java.lang.Object invoke​(Bindings bindings,
                                          ELContext context,
                                          java.lang.Object base,
                                          java.lang.reflect.Method method)
                                   throws java.lang.reflect.InvocationTargetException,
                                          java.lang.IllegalAccessException
        Invoke method.
        Parameters:
        bindings -
        context -
        base -
        method -
        Returns:
        method result
        Throws:
        java.lang.reflect.InvocationTargetException
        java.lang.IllegalAccessException
      • toString

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

        public int getIndex()
        Description copied from interface: FunctionNode
        Get the unique index of this identifier in the expression (e.g. preorder index)
        Specified by:
        getIndex in interface FunctionNode
      • getName

        public java.lang.String getName()
        Description copied from interface: FunctionNode
        Get the full function name
        Specified by:
        getName in interface FunctionNode
      • isVarArgs

        public boolean isVarArgs()
        Specified by:
        isVarArgs in interface FunctionNode
        Returns:
        true if this node supports varargs.
      • getParamCount

        public int getParamCount()
        Description copied from interface: FunctionNode
        Get the number of parameters for this function
        Specified by:
        getParamCount in interface FunctionNode
      • getParam

        protected AstNode getParam​(int i)
      • getCardinality

        public int getCardinality()
        Description copied from interface: Node
        Get the node's number of children.
        Specified by:
        getCardinality in interface Node
      • getChild

        public AstNode getChild​(int i)
        Description copied from interface: Node
        Get i'th child
        Specified by:
        getChild in interface Node