类 ClassTool.MethodSub
java.lang.Object
org.apache.velocity.tools.generic.ClassTool.Sub<T>
org.apache.velocity.tools.generic.ClassTool.CallableSub<ClassTool.MethodSub>
org.apache.velocity.tools.generic.ClassTool.MethodSub
- 所有已实现的接口:
Comparable<ClassTool.MethodSub>
- 封闭类:
- ClassTool
A simplified wrapping interface for inspecting features
of a
Method in an inspected Class.-
字段概要
字段从类继承的字段 org.apache.velocity.tools.generic.ClassTool.CallableSub
javadocRef, signature, uniqueName -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected AnnotatedElementprotected intgetName()Class[]If this method can be treated as a bean property in Velocity (which does not exactly follow the javabean spec for such things) then it will return the "bean property" equivalent of the method name.protected StringbooleanReturns true if the final parameter for the method was declared as a vararg.booleanisVoid()Returns true if the return type of this method is void.从类继承的方法 org.apache.velocity.tools.generic.ClassTool.CallableSub
getJavadocRef, getParameterCount, getSignature, getUniqueName, signature, takesParameters从类继承的方法 org.apache.velocity.tools.generic.ClassTool.Sub
compareTo, equals, getAnnotations, hashCode, isAbstract, isDeprecated, isFinal, isInterface, isNative, isPrivate, isProtected, isPublic, isStatic, isStrict, isSynchronized, isTransient, isVolatile, toString
-
字段详细资料
-
method
-
-
构造器详细资料
-
MethodSub
Method inspector constructor- 参数:
method- methodto inspect
-
-
方法详细资料
-
getElement
- 指定者:
getElement在类中ClassTool.Sub<ClassTool.MethodSub>- 返回:
- inspected element
-
getName
- 指定者:
getName在类中ClassTool.Sub<ClassTool.MethodSub>- 返回:
- method name
-
getPropertyName
If this method can be treated as a bean property in Velocity (which does not exactly follow the javabean spec for such things) then it will return the "bean property" equivalent of the method name. (e.g. for getFoo(), isFoo() or setFoo(foo) it will return "foo")- 返回:
- related property name, or null
-
isVarArgs
public boolean isVarArgs()Returns true if the final parameter for the method was declared as a vararg.- 指定者:
isVarArgs在类中ClassTool.CallableSub<ClassTool.MethodSub>- 返回:
- vararg status
-
isVoid
public boolean isVoid()Returns true if the return type of this method is void.- 返回:
trueif the inspected method returns null
-
getReturns
- 返回:
- inspected method return type
-
getParameters
- 指定者:
getParameters在类中ClassTool.CallableSub<ClassTool.MethodSub>- 返回:
- inspected method parameters types
-
getModifiers
protected int getModifiers()- 指定者:
getModifiers在类中ClassTool.Sub<ClassTool.MethodSub>- 返回:
- inspected method modifiers
-
getSubType
- 指定者:
getSubType在类中ClassTool.Sub<ClassTool.MethodSub>- 返回:
- inspector type, aka "method"
-