JavaAnnotatedElement
, JavaGenericDeclaration
, JavaMember
, JavaModel
, Serializable
JavaConstructor
, JavaMethod
DefaultJavaConstructor
, DefaultJavaExecutable
, DefaultJavaMethod
, JavaMethodDelegate
public interface JavaExecutable extends JavaAnnotatedElement, JavaGenericDeclaration, JavaMember
Executable
Modifier and Type | Method | Description |
---|---|---|
String |
getCallSignature() |
|
JavaClass |
getDeclaringClass() |
Equivalent of
Member.getDeclaringClass() |
List<JavaClass> |
getExceptions() |
Equivalent of
Executable.getExceptionTypes() |
List<JavaType> |
getExceptionTypes() |
|
JavaParameter |
getParameterByName(String name) |
|
List<JavaParameter> |
getParameters() |
Equivalent of
Executable.getParameterTypes() , where a JavaParameter also contains the original name if available. |
List<JavaType> |
getParameterTypes() |
Equivalent of
Executable.getParameterTypes() |
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
|
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
getTypeParameters
getModifiers, getName, isAbstract, isFinal, isNative, isPrivate, isProtected, isPublic, isStatic, isStrictfp, isSynchronized, isTransient, isVolatile
getCodeBlock, getLineNumber
JavaClass getDeclaringClass()
JavaMember
Member.getDeclaringClass()
getDeclaringClass
in interface JavaMember
List<JavaClass> getExceptions()
Executable.getExceptionTypes()
null
JavaParameter getParameterByName(String name)
name
- the name of the parameterJavaParameter
matching the name, otherwise null
List<JavaParameter> getParameters()
Executable.getParameterTypes()
, where a JavaParameter also contains the original name if available.null
List<JavaType> getParameterTypes()
Executable.getParameterTypes()
null
List<JavaType> getParameterTypes(boolean resolve)
resolve
- true
if the resolved types should be returned, otherwise false
String getSourceCode()
boolean isVarArgs()
Executable.isVarArgs()
true
if the final parameter is a varArg, otherwise false
String getCallSignature()
Copyright © 2002–2018. All rights reserved.