JavaAnnotatedElement
, JavaExecutable
, JavaGenericDeclaration
, JavaMember
, JavaModel
, Serializable
DefaultJavaConstructor
, DefaultJavaMethod
public abstract class DefaultJavaExecutable extends AbstractInheritableJavaEntity implements JavaExecutable
Constructor | Description |
---|---|
DefaultJavaExecutable() |
Modifier and Type | Method | Description |
---|---|---|
String |
getCallSignature() |
|
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
|
protected JavaType |
getReturns() |
|
protected String |
getSignature(boolean withModifiers,
boolean isDeclaration) |
|
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) |
getAnnotations, getComment, getNamedParameter, getSource, getTagByName, getTags, getTagsByName, setAnnotations, setComment, setSource, setTags
getTagByName
getDeclaringClass, getModifiers, getName, isAbstract, isFinal, isNative, isPrivate, isProtected, isStatic, isStrictfp, isSynchronized, isTransient, isVolatile, setDeclaringClass, setModifiers, setName
getLineNumber, getModelWriter, setLineNumber, setModelWriterFactory
getAnnotations, getComment, getNamedParameter, getTagByName, getTags, getTagsByName
getDeclaringClass
getTypeParameters
getModifiers, getName, isAbstract, isFinal, isNative, isPrivate, isProtected, isStatic, isStrictfp, isSynchronized, isTransient, isVolatile
getCodeBlock, getLineNumber
public List<JavaParameter> getParameters()
Executable.getParameterTypes()
, where a JavaParameter also contains the original name if available.getParameters
in interface JavaExecutable
null
public JavaParameter getParameterByName(String name)
getParameterByName
in interface JavaExecutable
name
- the name of the parameterJavaParameter
matching the name, otherwise null
public List<JavaClass> getExceptions()
Executable.getExceptionTypes()
getExceptions
in interface JavaExecutable
null
public 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(List<JavaParameter> javaParameters)
protected boolean signatureMatches(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 List<DocletTag> getTagsByName(String name, boolean inherited)
getTagsByName
in class AbstractInheritableJavaEntity
public List<JavaType> getParameterTypes()
Executable.getParameterTypes()
getParameterTypes
in interface JavaExecutable
null
public List<JavaType> getParameterTypes(boolean resolve)
getParameterTypes
in interface JavaExecutable
resolve
- true
if the resolved types should be returned, otherwise false
public String getSourceCode()
getSourceCode
in interface JavaExecutable
public void setSourceCode(String sourceCode)
public String getCallSignature()
getCallSignature
in interface JavaExecutable
protected JavaType getReturns()
protected String getSignature(boolean withModifiers, boolean isDeclaration)
Copyright © 2002–2018. All rights reserved.