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) |
getTagByName
getAnnotations, 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, writeNonAccessibilityModifiers
public 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 AbstractJavaEntity
protected void writeBody(IndentBuffer result, boolean withModifiers, boolean isDeclaration, boolean isPrettyPrint)
public String getDeclarationSignature(boolean withModifiers)
getDeclarationSignature
in interface Member
public String getCallSignature()
getCallSignature
in interface Member
public 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 AbstractJavaEntity
public boolean isPropertyAccessor()
public boolean isPropertyMutator()
public Type getPropertyType()
public String getPropertyName()
public DocletTag[] getTagsByName(String name, boolean inherited)
getTagsByName
in class AbstractInheritableJavaEntity
public int compareTo(Object o)
compareTo
in interface Comparable
public String getSourceCode()
public void setSourceCode(String sourceCode)
Copyright © 2002-2013. All Rights Reserved.