public abstract static class ClassTool.CallableSub<T extends ClassTool.CallableSub> extends ClassTool.Sub<T>
Modifier and Type | Field and Description |
---|---|
protected String |
javadocRef |
protected String |
signature |
protected String |
uniqueName |
Constructor and Description |
---|
CallableSub() |
Modifier and Type | Method and Description |
---|---|
String |
getJavadocRef() |
int |
getParameterCount()
Returns the number of expected parameters.
|
abstract Class[] |
getParameters() |
String |
getSignature()
Get (and cache) inspected callable signature
|
String |
getUniqueName()
Build a unique method/ctor name by appending the simple names of
the expected parameter types, thereby distinguishing constructors
and overloaded methods with a useful name that would still be a
valid method name.
|
abstract boolean |
isVarArgs() |
protected String |
signature(boolean fullNames)
Internal method to get the inspected callable signature.
|
boolean |
takesParameters() |
compareTo, equals, getAnnotations, getElement, getModifiers, getName, getSubType, hashCode, isAbstract, isDeprecated, isFinal, isInterface, isNative, isPrivate, isProtected, isPublic, isStatic, isStrict, isSynchronized, isTransient, isVolatile, toString
protected String uniqueName
protected String javadocRef
protected String signature
public abstract Class[] getParameters()
public abstract boolean isVarArgs()
public boolean takesParameters()
public int getParameterCount()
public String getUniqueName()
getUniqueName
in class ClassTool.Sub<T extends ClassTool.CallableSub>
public String getSignature()
public String getJavadocRef()
getJavadocRef
in class ClassTool.Sub<T extends ClassTool.CallableSub>
protected String signature(boolean fullNames)
fullNames
- whether to use full namesCopyright © 2002–2021 The Apache Software Foundation. All rights reserved.