MethodInfo (Java EE 5)

Java EE API


javax.el Class MethodInfo

java.lang.Object
  extended by javax.el.MethodInfo

public class MethodInfo
extends Object


包含有关 MethodExpression 求值方法的信息。
英文文档:

Holds information about a method that a MethodExpression evaluated to.

Since:
JSP 2.1

Constructor Summary
 
Method Summary
 String
 Class<?>[]
 Class<?>
 
Methods inherited from class java.lang.Object
 

Constructor Detail

英文文档:

MethodInfo

public MethodInfo(String name,
                  Class<?> returnType,
                  Class<?>[] paramTypes)
Creates a new instance of MethodInfo with the given information.

Parameters:
name - The name of the method
returnType - The return type of the method
paramTypes - The types of each of the method's parameters

Method Detail

public String getName()
返回方法名称
return 方法名
英文文档:

getName

public String getName()
Returns the name of the method

Returns:
the name of the method

public Class<T> getReturnType()
返回方法的返回类型
return 方法的返回类型
英文文档:

getReturnType

public Class<?> getReturnType()
Returns the return type of the method

Returns:
the return type of the method

public Class<T>[] getParamTypes()
返回方法的参数类型
return 方法的参数类型
英文文档:

getParamTypes

public Class<?>[] getParamTypes()
Returns the parameter types of the method

Returns:
the parameter types of the method


Submit a bug or feature

Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.

一看就知道只有菜鸟才干这么无知的事啦。

PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!