Class Bindings

    • Field Detail

      • NO_FUNCTIONS

        private static final java.lang.reflect.Method[] NO_FUNCTIONS
      • functions

        private transient java.lang.reflect.Method[] functions
    • Constructor Detail

      • Bindings

        public Bindings​(java.lang.reflect.Method[] functions,
                        ValueExpression[] variables)
        Constructor.
    • Method Detail

      • getFunction

        public java.lang.reflect.Method getFunction​(int index)
        Get function by index.
        Parameters:
        index - function index
        Returns:
        method
      • isFunctionBound

        public boolean isFunctionBound​(int index)
        Test if given index is bound to a function. This method performs an index check.
        Parameters:
        index - identifier index
        Returns:
        true if the given index is bound to a function
      • getVariable

        public ValueExpression getVariable​(int index)
        Get variable by index.
        Parameters:
        index - identifier index
        Returns:
        value expression
      • isVariableBound

        public boolean isVariableBound​(int index)
        Test if given index is bound to a variable. This method performs an index check.
        Parameters:
        index - identifier index
        Returns:
        true if the given index is bound to a variable
      • convert

        public <T> T convert​(java.lang.Object value,
                             java.lang.Class<T> type)
        Apply type conversion.
        Specified by:
        convert in interface TypeConverter
        Parameters:
        value - value to convert
        type - target type
        Returns:
        converted value
        Throws:
        ELException
      • equals

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

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

        private void writeObject​(java.io.ObjectOutputStream out)
                          throws java.io.IOException,
                                 java.lang.ClassNotFoundException
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException
      • readObject

        private void readObject​(java.io.ObjectInputStream in)
                         throws java.io.IOException,
                                java.lang.ClassNotFoundException
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException