public abstract class DefaultJavaExecutable extends AbstractInheritableJavaEntity implements JavaExecutable
| Constructor and Description |
|---|
DefaultJavaExecutable() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
List<DocletTag> |
getTagsByName(String name,
boolean inherited) |
boolean |
isPublic()
Equivalent of
Modifier.isPublic(int) |
boolean |
isVarArgs()
Equivalent of
Executable.isVarArgs() |
void |
setExceptions(List<JavaClass> exceptions) |
void |
setParameters(List<JavaParameter> javaParameters) |
void |
setSourceCode(String sourceCode) |
protected boolean |
signatureMatches(List<JavaType> parameterTypes,
boolean varArgs) |
getTagByNamegetDeclaringClass, getModifiers, getName, isAbstract, isFinal, isNative, isPrivate, isProtected, isStatic, isStrictfp, isSynchronized, isTransient, isVolatile, setDeclaringClass, setModifiers, setNamegetAnnotations, getComment, getNamedParameter, getSource, getTagByName, getTags, getTagsByName, setAnnotations, setComment, setSource, setTagsgetLineNumber, getModelWriter, setLineNumber, setModelWriterFactoryclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDeclaringClassgetModifiers, getName, isAbstract, isFinal, isNative, isPrivate, isProtected, isStatic, isStrictfp, isSynchronized, isTransient, isVolatilegetTypeParametersgetCodeBlock, getLineNumberpublic List<JavaParameter> getParameters()
Executable.getParameterTypes(), where a JavaParameter also contains the original name if available.getParameters in interface JavaExecutablenullpublic JavaParameter getParameterByName(String name)
getParameterByName in interface JavaExecutablename - the name of the parameterJavaParameter matching the name, otherwise nullpublic List<JavaClass> getExceptions()
Executable.getExceptionTypes()getExceptions in interface JavaExecutablenullpublic List<JavaType> getExceptionTypes()
getExceptionTypes in interface JavaExecutablepublic boolean isVarArgs()
Executable.isVarArgs()isVarArgs in interface JavaExecutabletrue if the final parameter is a varArg, otherwise falsepublic void setParameters(List<JavaParameter> javaParameters)
public boolean isPublic()
Modifier.isPublic(int)isPublic in interface JavaMemberisPublic in class AbstractJavaEntitytrue if entity is public, otherwise falsepublic List<DocletTag> getTagsByName(String name, boolean inherited)
getTagsByName in class AbstractInheritableJavaEntitypublic List<JavaType> getParameterTypes()
Executable.getParameterTypes()getParameterTypes in interface JavaExecutablenullpublic List<JavaType> getParameterTypes(boolean resolve)
getParameterTypes in interface JavaExecutableresolve - true if the resolved types should be returned, otherwise falsepublic String getSourceCode()
getSourceCode in interface JavaExecutablepublic void setSourceCode(String sourceCode)
Copyright © 2002–2017. All rights reserved.