com.thoughtworks.qdox.model
public class JavaMethod extends AbstractInheritableJavaEntity implements Member
| Constructor Summary | |
|---|---|
| JavaMethod() | |
| JavaMethod(String name) | |
| JavaMethod(Type returns, String name) | |
| Method Summary | |
|---|---|
| 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) |
| TypeVariable[] | getTypeParameters() |
| 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) |
| void | setTypeParameters(TypeVariable[] typeParameters) |
| boolean | signatureMatches(String name, Type[] parameterTypes) |
| String | toString() |
| protected void | writeBody(IndentBuffer result) |
| protected void | writeBody(IndentBuffer result, boolean withModifiers, boolean isDeclaration, boolean isPrettyPrint) |
Since: 1.3
Since: 1.3
Returns: the name of the property this method represents, or null if this method is not a property mutator or property accessor.
Since: 1.3
Returns: the type of the property this method represents, or null if this method is not a property mutator or property accessor.
Since: 1.3
Returns: Code as string.
Returns: true if this method is a Java Bean accessor
Since: 1.3
Returns: true if this method is a Java Bean accessor
Since: 1.3
Parameters: name method name parameterTypes parameter types or null if there are no parameters.
Returns: true if the signature and parameters match.
Since: 1.3