|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.velocity.tools.generic.ClassTool.Sub<T>
org.apache.velocity.tools.generic.ClassTool.CallableSub<ClassTool.MethodSub>
org.apache.velocity.tools.generic.ClassTool.MethodSub
public static class ClassTool.MethodSub
A simplified wrapping interface for inspecting features
of a Method
in an inspected Class.
Field Summary | |
---|---|
protected java.lang.reflect.Method |
method
|
Fields inherited from class org.apache.velocity.tools.generic.ClassTool.CallableSub |
---|
javadocRef, signature, uniqueName |
Constructor Summary | |
---|---|
ClassTool.MethodSub(java.lang.reflect.Method method)
|
Method Summary | |
---|---|
protected java.lang.reflect.AnnotatedElement |
getElement()
|
protected int |
getModifiers()
|
java.lang.String |
getName()
|
java.lang.Class[] |
getParameters()
|
java.lang.String |
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. |
java.lang.Class |
getReturns()
|
protected java.lang.String |
getSubType()
|
boolean |
isVarArgs()
Returns true if the final parameter for the method was declared as a vararg. |
boolean |
isVoid()
Returns true if the return type of this method is void. |
private java.lang.String |
uncapitalize(java.lang.String string)
|
Methods inherited from class org.apache.velocity.tools.generic.ClassTool.CallableSub |
---|
getJavadocRef, getParameterCount, getSignature, getUniqueName, signature, takesParameters |
Methods inherited from class 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 |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.lang.reflect.Method method
Constructor Detail |
---|
public ClassTool.MethodSub(java.lang.reflect.Method method)
Method Detail |
---|
protected java.lang.reflect.AnnotatedElement getElement()
getElement
in class ClassTool.Sub<ClassTool.MethodSub>
public java.lang.String getName()
getName
in class ClassTool.Sub<ClassTool.MethodSub>
public java.lang.String getPropertyName()
private java.lang.String uncapitalize(java.lang.String string)
public boolean isVarArgs()
isVarArgs
in class ClassTool.CallableSub<ClassTool.MethodSub>
public boolean isVoid()
public java.lang.Class getReturns()
public java.lang.Class[] getParameters()
getParameters
in class ClassTool.CallableSub<ClassTool.MethodSub>
protected int getModifiers()
getModifiers
in class ClassTool.Sub<ClassTool.MethodSub>
protected java.lang.String getSubType()
getSubType
in class ClassTool.Sub<ClassTool.MethodSub>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |