public static class ClassTool.MethodSub extends ClassTool.CallableSub<ClassTool.MethodSub>
Method
in an inspected Class.Modifier and Type | Field and Description |
---|---|
protected Method |
method |
javadocRef, signature, uniqueName
Constructor and Description |
---|
MethodSub(Method method)
Method inspector constructor
|
Modifier and Type | Method and Description |
---|---|
protected AnnotatedElement |
getElement() |
protected int |
getModifiers() |
String |
getName() |
Class[] |
getParameters() |
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.
|
Class |
getReturns() |
protected 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.
|
getJavadocRef, getParameterCount, getSignature, getUniqueName, signature, takesParameters
compareTo, equals, getAnnotations, hashCode, isAbstract, isDeprecated, isFinal, isInterface, isNative, isPrivate, isProtected, isPublic, isStatic, isStrict, isSynchronized, isTransient, isVolatile, toString
protected Method method
public MethodSub(Method method)
method
- methodto inspectprotected AnnotatedElement getElement()
getElement
in class ClassTool.Sub<ClassTool.MethodSub>
public String getName()
getName
in class ClassTool.Sub<ClassTool.MethodSub>
public String getPropertyName()
public boolean isVarArgs()
isVarArgs
in class ClassTool.CallableSub<ClassTool.MethodSub>
public boolean isVoid()
true
if the inspected method returns nullpublic Class getReturns()
public Class[] getParameters()
getParameters
in class ClassTool.CallableSub<ClassTool.MethodSub>
protected int getModifiers()
getModifiers
in class ClassTool.Sub<ClassTool.MethodSub>
protected String getSubType()
getSubType
in class ClassTool.Sub<ClassTool.MethodSub>
Copyright © 2002–2021 The Apache Software Foundation. All rights reserved.