public abstract class DefaultJavaExecutable extends AbstractInheritableJavaEntity implements JavaExecutable
| Modifier and Type | Field and Description |
|---|---|
private java.util.List<JavaClass> |
exceptions |
private java.util.List<JavaParameter> |
parameters |
private java.lang.String |
sourceCode |
private boolean |
varArgs |
| Constructor and Description |
|---|
DefaultJavaExecutable() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
java.util.List<DocletTag> |
getTagsByName(java.lang.String name,
boolean inherited) |
boolean |
isPublic()
Equivalent of
Modifier.isPublic(int) |
boolean |
isVarArgs()
Equivalent of
Executable.isVarArgs() |
void |
setExceptions(java.util.List<JavaClass> exceptions) |
void |
setParameters(java.util.List<JavaParameter> javaParameters) |
void |
setSourceCode(java.lang.String sourceCode) |
protected boolean |
signatureMatches(java.util.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, getLineNumberprivate java.util.List<JavaParameter> parameters
private java.util.List<JavaClass> exceptions
private boolean varArgs
private java.lang.String sourceCode
public java.util.List<JavaParameter> getParameters()
Executable.getParameterTypes(), where a JavaParameter also contains the original name if available.getParameters in interface JavaExecutablenullpublic JavaParameter getParameterByName(java.lang.String name)
getParameterByName in interface JavaExecutablename - the name of the parameterJavaParameter matching the name, otherwise nullpublic java.util.List<JavaClass> getExceptions()
Executable.getExceptionTypes()getExceptions in interface JavaExecutablenullpublic java.util.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(java.util.List<JavaParameter> javaParameters)
public void setExceptions(java.util.List<JavaClass> exceptions)
protected boolean signatureMatches(java.util.List<JavaType> parameterTypes, boolean varArgs)
public boolean isPublic()
Modifier.isPublic(int)isPublic in interface JavaMemberisPublic in class AbstractJavaEntitytrue if entity is public, otherwise falsepublic java.util.List<DocletTag> getTagsByName(java.lang.String name, boolean inherited)
getTagsByName in class AbstractInheritableJavaEntitypublic java.util.List<JavaType> getParameterTypes()
Executable.getParameterTypes()getParameterTypes in interface JavaExecutablenullpublic java.util.List<JavaType> getParameterTypes(boolean resolve)
getParameterTypes in interface JavaExecutableresolve - true if the resolved types should be returned, otherwise falsepublic java.lang.String getSourceCode()
getSourceCode in interface JavaExecutablepublic void setSourceCode(java.lang.String sourceCode)