public class JavaMethod extends AbstractInheritableJavaEntity implements Member
modifiers, name| Constructor and Description |
|---|
JavaMethod() |
JavaMethod(String name) |
JavaMethod(Type returns,
String name) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Object o) |
boolean |
equals(Object obj) |
String |
getCallSignature() |
String |
getDeclarationSignature(boolean withModifiers) |
Type[] |
getExceptions() |
JavaParameter |
getParameterByName(String name) |
JavaParameter[] |
getParameters() |
JavaClass |
getParentClass() |
String |
getPropertyName() |
Type |
getPropertyType() |
Type |
getReturns() |
String |
getSourceCode()
Get the original source code of the body of this method.
|
DocletTag[] |
getTagsByName(String name,
boolean inherited) |
int |
hashCode() |
boolean |
isConstructor() |
boolean |
isPropertyAccessor() |
boolean |
isPropertyMutator() |
boolean |
isPublic() |
void |
setConstructor(boolean constructor) |
void |
setExceptions(Type[] exceptions) |
void |
setParameters(JavaParameter[] parameters) |
void |
setParentClass(JavaClass parentClass) |
void |
setReturns(Type returns) |
void |
setSourceCode(String sourceCode) |
boolean |
signatureMatches(String name,
Type[] parameterTypes) |
protected void |
writeBody(IndentBuffer result) |
protected void |
writeBody(IndentBuffer result,
boolean withModifiers,
boolean isDeclaration,
boolean isPrettyPrint) |
getTagByNamegetAnnotations, getComment, getLineNumber, getModifiers, getName, getNamedParameter, getParent, getSource, getTagByName, getTags, getTagsByName, isAbstract, isFinal, isNative, isPrivate, isProtected, isStatic, isStrictfp, isSynchronized, isTransient, isVolatile, setAnnotations, setComment, setLineNumber, setModifiers, setName, setParent, setTags, toString, write, writeAccessibilityModifier, writeAllModifiers, writeNonAccessibilityModifierspublic JavaMethod()
public JavaMethod(String name)
public Type getReturns()
public JavaParameter[] getParameters()
public JavaParameter getParameterByName(String name)
public Type[] getExceptions()
public boolean isConstructor()
protected void writeBody(IndentBuffer result)
writeBody in class AbstractJavaEntityprotected void writeBody(IndentBuffer result, boolean withModifiers, boolean isDeclaration, boolean isPrettyPrint)
public String getDeclarationSignature(boolean withModifiers)
getDeclarationSignature in interface Memberpublic String getCallSignature()
getCallSignature in interface Memberpublic void setReturns(Type returns)
public void setParameters(JavaParameter[] parameters)
public void setExceptions(Type[] exceptions)
public void setConstructor(boolean constructor)
public boolean signatureMatches(String name, Type[] parameterTypes)
name - method nameparameterTypes - parameter types or null if there are no parameters.public JavaClass getParentClass()
public void setParentClass(JavaClass parentClass)
public boolean isPublic()
isPublic in class AbstractJavaEntitypublic boolean isPropertyAccessor()
public boolean isPropertyMutator()
public Type getPropertyType()
public String getPropertyName()
public DocletTag[] getTagsByName(String name, boolean inherited)
getTagsByName in class AbstractInheritableJavaEntitypublic int compareTo(Object o)
compareTo in interface Comparablepublic String getSourceCode()
public void setSourceCode(String sourceCode)
Copyright © 2002-2013. All Rights Reserved.