Class FunctionMapperImpl.Function

  • All Implemented Interfaces:
    java.io.Externalizable, java.io.Serializable
    Enclosing class:
    FunctionMapperImpl

    public static class FunctionMapperImpl.Function
    extends java.lang.Object
    implements java.io.Externalizable
    Represents a mapped EL function with serialization support.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String localName
      The local function name.
      protected java.lang.reflect.Method m
      The resolved method, transient as it cannot be serialized directly.
      protected java.lang.String name
      The method name.
      protected java.lang.String owner
      The declaring class name of the method.
      protected java.lang.String prefix
      The function namespace prefix.
      protected java.lang.String[] types
      The parameter type names of the method.
    • Constructor Summary

      Constructors 
      Constructor Description
      Function()
      Default constructor required by Externalizable for deserialization.
      Function​(java.lang.String prefix, java.lang.String localName, java.lang.reflect.Method m)
      Creates a new function mapping for the given method.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      java.lang.reflect.Method getMethod()
      Gets the resolved method, lazily loading it from serialized data if needed.
      int hashCode()  
      void readExternal​(java.io.ObjectInput in)  
      void writeExternal​(java.io.ObjectOutput out)  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • m

        protected transient java.lang.reflect.Method m
        The resolved method, transient as it cannot be serialized directly.
      • owner

        protected java.lang.String owner
        The declaring class name of the method.
      • name

        protected java.lang.String name
        The method name.
      • types

        protected java.lang.String[] types
        The parameter type names of the method.
      • prefix

        protected java.lang.String prefix
        The function namespace prefix.
      • localName

        protected java.lang.String localName
        The local function name.
    • Constructor Detail

      • Function

        public Function​(java.lang.String prefix,
                        java.lang.String localName,
                        java.lang.reflect.Method m)
        Creates a new function mapping for the given method.
        Parameters:
        prefix - The namespace prefix
        localName - The local function name
        m - The method to map
      • Function

        public Function()
        Default constructor required by Externalizable for deserialization.
    • Method Detail

      • writeExternal

        public void writeExternal​(java.io.ObjectOutput out)
                           throws java.io.IOException
        Specified by:
        writeExternal in interface java.io.Externalizable
        Throws:
        java.io.IOException
      • readExternal

        public void readExternal​(java.io.ObjectInput in)
                          throws java.io.IOException,
                                 java.lang.ClassNotFoundException
        Specified by:
        readExternal in interface java.io.Externalizable
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException
      • getMethod

        public java.lang.reflect.Method getMethod()
        Gets the resolved method, lazily loading it from serialized data if needed.
        Returns:
        The resolved method, or null if it could not be resolved
      • 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