Package org.apache.el.lang
Class FunctionMapperImpl.Function
- java.lang.Object
-
- org.apache.el.lang.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.ExternalizableRepresents a mapped EL function with serialization support.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringlocalNameThe local function name.protected java.lang.reflect.MethodmThe resolved method, transient as it cannot be serialized directly.protected java.lang.StringnameThe method name.protected java.lang.StringownerThe declaring class name of the method.protected java.lang.StringprefixThe function namespace prefix.protected java.lang.String[]typesThe parameter type names of the method.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.reflect.MethodgetMethod()Gets the resolved method, lazily loading it from serialized data if needed.inthashCode()voidreadExternal(java.io.ObjectInput in)voidwriteExternal(java.io.ObjectOutput out)
-
-
-
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 prefixlocalName- The local function namem- 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:
writeExternalin interfacejava.io.Externalizable- Throws:
java.io.IOException
-
readExternal
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException- Specified by:
readExternalin interfacejava.io.Externalizable- Throws:
java.io.IOExceptionjava.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
nullif it could not be resolved
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-