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) |
getTagByName
getDeclaringClass, getModifiers, getName, isAbstract, isFinal, isNative, isPrivate, isProtected, isStatic, isStrictfp, isSynchronized, isTransient, isVolatile, setDeclaringClass, setModifiers, setName
getAnnotations, getComment, getNamedParameter, getSource, getTagByName, getTags, getTagsByName, setAnnotations, setComment, setSource, setTags
getLineNumber, getModelWriter, setLineNumber, setModelWriterFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDeclaringClass
getModifiers, getName, isAbstract, isFinal, isNative, isPrivate, isProtected, isStatic, isStrictfp, isSynchronized, isTransient, isVolatile
getTypeParameters
getCodeBlock, getLineNumber
private 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 JavaExecutable
null
public JavaParameter getParameterByName(java.lang.String name)
getParameterByName
in interface JavaExecutable
name
- the name of the parameterJavaParameter
matching the name, otherwise null
public java.util.List<JavaClass> getExceptions()
Executable.getExceptionTypes()
getExceptions
in interface JavaExecutable
null
public java.util.List<JavaType> getExceptionTypes()
getExceptionTypes
in interface JavaExecutable
public boolean isVarArgs()
Executable.isVarArgs()
isVarArgs
in interface JavaExecutable
true
if the final parameter is a varArg, otherwise false
public 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 JavaMember
isPublic
in class AbstractJavaEntity
true
if entity is public, otherwise false
public java.util.List<DocletTag> getTagsByName(java.lang.String name, boolean inherited)
getTagsByName
in class AbstractInheritableJavaEntity
public java.util.List<JavaType> getParameterTypes()
Executable.getParameterTypes()
getParameterTypes
in interface JavaExecutable
null
public java.util.List<JavaType> getParameterTypes(boolean resolve)
getParameterTypes
in interface JavaExecutable
resolve
- true
if the resolved types should be returned, otherwise false
public java.lang.String getSourceCode()
getSourceCode
in interface JavaExecutable
public void setSourceCode(java.lang.String sourceCode)