Top Description Fields Constructors Methods
javax.el

public Class MethodInfo

extends Object
Class Inheritance

Holds information about a method that a MethodExpression evaluated to.
Since
JSP 2.1

Field Summary

Modifier and TypeField and Description
private String
private Class<?>[]
private Class<?>

Constructor Summary

AccessConstructor and Description
public
MethodInfo(String
The name of the method
name
,
Class<?>
The return type of the method
returnType
,
Class<?>[]
The types of each of the method's parameters
paramTypes
)

Creates a new instance of MethodInfo with the given information.

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the name of the method
getName
()

Returns the name of the method

public Class<?>[]

Returns:

the parameter types of the method
getParamTypes
()

Returns the parameter types of the method

public Class<?>

Returns:

the return type of the method
getReturnType
()

Returns the return type of the method

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

nameback to summary
private String name
paramTypesback to summary
private Class<?>[] paramTypes
returnTypeback to summary
private Class<?> returnType

Constructor Detail

MethodInfoback to summary
public MethodInfo(String name, Class<?> returnType, Class<?>[] paramTypes)

Creates a new instance of MethodInfo with the given information.

Parameters
name:String

The name of the method

returnType:Class<?>

The return type of the method

paramTypes:Class<?>[]

The types of each of the method's parameters

Method Detail

getNameback to summary
public String getName()

Returns the name of the method

Returns:String

the name of the method

getParamTypesback to summary
public Class<?>[] getParamTypes()

Returns the parameter types of the method

Returns:Class<?>[]

the parameter types of the method

getReturnTypeback to summary
public Class<?> getReturnType()

Returns the return type of the method

Returns:Class<?>

the return type of the method