public interface JavaExecutable extends JavaAnnotatedElement, JavaGenericDeclaration, JavaMember
Executable
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCallSignature() |
JavaClass |
getDeclaringClass()
Equivalent of
Member.getDeclaringClass() |
java.util.List<JavaClass> |
getExceptions()
Equivalent of
Executable.getExceptionTypes() |
java.util.List<JavaType> |
getExceptionTypes() |
JavaParameter |
getParameterByName(java.lang.String name) |
java.util.List<JavaParameter> |
getParameters()
Equivalent of
Executable.getParameterTypes() , where a JavaParameter also contains the original name if available. |
java.util.List<JavaType> |
getParameterTypes()
Equivalent of
Executable.getParameterTypes() |
java.util.List<JavaType> |
getParameterTypes(boolean resolve)
If a class inherits this method from a generic class or interface, you can use this method to get the resolved parameter types
|
java.lang.String |
getSourceCode()
Get the original source code of the body of this method.
|
boolean |
isVarArgs()
Equivalent of
Executable.isVarArgs() |
getAnnotations, getComment, getNamedParameter, getTagByName, getTags, getTagsByName
getCodeBlock, getLineNumber
getTypeParameters
getModifiers, getName, isAbstract, isFinal, isNative, isPrivate, isProtected, isPublic, isStatic, isStrictfp, isSynchronized, isTransient, isVolatile
JavaClass getDeclaringClass()
JavaMember
Member.getDeclaringClass()
getDeclaringClass
in interface JavaMember
java.util.List<JavaClass> getExceptions()
Executable.getExceptionTypes()
null
java.util.List<JavaType> getExceptionTypes()
JavaParameter getParameterByName(java.lang.String name)
name
- the name of the parameterJavaParameter
matching the name, otherwise null
java.util.List<JavaParameter> getParameters()
Executable.getParameterTypes()
, where a JavaParameter also contains the original name if available.null
java.util.List<JavaType> getParameterTypes()
Executable.getParameterTypes()
null
java.util.List<JavaType> getParameterTypes(boolean resolve)
resolve
- true
if the resolved types should be returned, otherwise false
java.lang.String getSourceCode()
boolean isVarArgs()
Executable.isVarArgs()
true
if the final parameter is a varArg, otherwise false
java.lang.String getCallSignature()