public static class ClassTool.MethodSub extends ClassTool.CallableSub<ClassTool.MethodSub>
Method in an inspected Class.| Modifier and Type | Field and Description |
|---|---|
protected java.lang.reflect.Method |
method |
javadocRef, signature, uniqueName| Constructor and Description |
|---|
MethodSub(java.lang.reflect.Method method) |
| Modifier and Type | Method and Description |
|---|---|
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) |
getJavadocRef, getParameterCount, getSignature, getUniqueName, signature, takesParameterscompareTo, equals, getAnnotations, hashCode, isAbstract, isDeprecated, isFinal, isInterface, isNative, isPrivate, isProtected, isPublic, isStatic, isStrict, isSynchronized, isTransient, isVolatile, toStringprotected 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>Copyright (c) 2003-2007 Apache Software Foundation