public interface JavaExecutable extends JavaMember, JavaGenericDeclaration
Executable| Modifier and Type | Method and Description |
|---|---|
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() |
getModifiers, getName, isAbstract, isFinal, isNative, isPrivate, isProtected, isPublic, isStatic, isStrictfp, isSynchronized, isTransient, isVolatilegetTypeParametersJavaClass getDeclaringClass()
JavaMemberMember.getDeclaringClass()getDeclaringClass in interface JavaMemberList<JavaClass> getExceptions()
Executable.getExceptionTypes()nullJavaParameter getParameterByName(String name)
name - the name of the parameterJavaParameter matching the name, otherwise nullList<JavaParameter> getParameters()
Executable.getParameterTypes(), where a JavaParameter also contains the original name if available.nullList<JavaType> getParameterTypes()
Executable.getParameterTypes()nullList<JavaType> getParameterTypes(boolean resolve)
resolve - true if the resolved types should be returned, otherwise falseString getSourceCode()
boolean isVarArgs()
Executable.isVarArgs()true if the final parameter is a varArg, otherwise falseCopyright © 2002–2017. All rights reserved.