public class JavaMethod extends AbstractInheritableJavaEntity implements Member
modifiersname, parent| Constructor and Description |
|---|
JavaMethod() |
JavaMethod(java.lang.String name) |
JavaMethod(Type returns,
java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
addParameter(JavaParameter javaParameter) |
int |
compareTo(java.lang.Object o) |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCallSignature() |
java.lang.String |
getDeclarationSignature(boolean withModifiers) |
Type[] |
getExceptions() |
JavaParameter |
getParameterByName(java.lang.String name) |
JavaParameter[] |
getParameters() |
java.lang.String |
getPropertyName() |
Type |
getPropertyType() |
Type |
getReturns() |
java.lang.String |
getSourceCode()
Get the original source code of the body of this method.
|
DocletTag[] |
getTagsByName(java.lang.String name,
boolean inherited) |
TypeVariable[] |
getTypeParameters() |
int |
hashCode() |
boolean |
isConstructor() |
boolean |
isPropertyAccessor() |
boolean |
isPropertyMutator() |
boolean |
isPublic() |
boolean |
isVarArgs() |
void |
setConstructor(boolean constructor) |
void |
setExceptions(Type[] exceptions) |
void |
setReturns(Type returns) |
void |
setSourceCode(java.lang.String sourceCode) |
void |
setTypeParameters(TypeVariable[] typeParameters) |
boolean |
signatureMatches(java.lang.String name,
Type[] parameterTypes)
Deprecated.
use overloaded method
|
boolean |
signatureMatches(java.lang.String name,
Type[] parameterTypes,
boolean varArg) |
java.lang.String |
toString() |
protected void |
writeBody(IndentBuffer result) |
protected void |
writeBody(IndentBuffer result,
boolean withModifiers,
boolean isDeclaration,
boolean isPrettyPrint) |
getTagByNamegetCodeBlock, getComment, getModifiers, getNamedParameter, getParentClass, getSource, getTagByName, getTags, getTagsByName, isAbstract, isFinal, isNative, isPrivate, isProtected, isStatic, isStrictfp, isSynchronized, isTransient, isVolatile, setComment, setModifiers, setParentClass, setTags, write, writeAccessibilityModifier, writeAllModifiers, writeNonAccessibilityModifiersgetAnnotations, getLineNumber, getName, getParent, setAnnotations, setLineNumber, setName, setParentpublic JavaMethod()
public JavaMethod(java.lang.String name)
public JavaMethod(Type returns, java.lang.String name)
public Type getReturns()
public JavaParameter[] getParameters()
public JavaParameter getParameterByName(java.lang.String name)
public Type[] getExceptions()
public boolean isConstructor()
public boolean isVarArgs()
protected void writeBody(IndentBuffer result)
writeBody in class AbstractJavaEntityprotected void writeBody(IndentBuffer result, boolean withModifiers, boolean isDeclaration, boolean isPrettyPrint)
public java.lang.String getDeclarationSignature(boolean withModifiers)
getDeclarationSignature in interface Memberpublic java.lang.String getCallSignature()
getCallSignature in interface Memberpublic void setReturns(Type returns)
public void addParameter(JavaParameter javaParameter)
public void setExceptions(Type[] exceptions)
public void setConstructor(boolean constructor)
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic boolean signatureMatches(java.lang.String name,
Type[] parameterTypes)
name - parameterTypes - public boolean signatureMatches(java.lang.String name,
Type[] parameterTypes,
boolean varArg)
name - method nameparameterTypes - parameter types or null if there are no parameters.public int hashCode()
hashCode in class java.lang.Objectpublic boolean isPublic()
isPublic in class AbstractJavaEntitypublic boolean isPropertyAccessor()
public boolean isPropertyMutator()
public Type getPropertyType()
public java.lang.String getPropertyName()
public DocletTag[] getTagsByName(java.lang.String name, boolean inherited)
getTagsByName in class AbstractInheritableJavaEntitypublic int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparablepublic java.lang.String getSourceCode()
public void setSourceCode(java.lang.String sourceCode)
public void setTypeParameters(TypeVariable[] typeParameters)
public TypeVariable[] getTypeParameters()
public java.lang.String toString()
toString in class java.lang.Object