com.thoughtworks.qdox.model
Class JavaMethod
java.lang.Object
com.thoughtworks.qdox.model.AbstractJavaEntity
com.thoughtworks.qdox.model.AbstractInheritableJavaEntity
com.thoughtworks.qdox.model.JavaMethod
- All Implemented Interfaces:
- Serializable
- public class JavaMethod
- extends AbstractInheritableJavaEntity
- See Also:
- Serialized Form
Methods inherited from class com.thoughtworks.qdox.model.AbstractJavaEntity |
getComment, getModifiers, getName, getNamedParameter, getTagByName, getTags, getTagsByName, isAbstract, isFinal, isPrivate, isProtected, isStatic, isSynchronized, isTransient, setComment, setModifiers, setName, setTags, toString, write, writeAccessibilityModifier, writeAllModifiers, writeNonAccessibilityModifiers |
returns
protected Type returns
JavaMethod
public JavaMethod()
getReturns
public Type getReturns()
getParameters
public JavaParameter[] getParameters()
getParameterByName
public JavaParameter getParameterByName(String name)
getExceptions
public Type[] getExceptions()
isConstructor
public boolean isConstructor()
writeBody
protected void writeBody(IndentBuffer result)
- Specified by:
writeBody
in class AbstractJavaEntity
writeBody
protected void writeBody(IndentBuffer result,
boolean withModifiers,
boolean isDeclaration,
boolean isPrettyPrint)
- Since:
- 1.3
getDeclarationSignature
public String getDeclarationSignature(boolean withModifiers)
- Since:
- 1.3
getCallSignature
public String getCallSignature()
- Since:
- 1.3
setReturns
public void setReturns(Type returns)
setParameters
public void setParameters(JavaParameter[] parameters)
setExceptions
public void setExceptions(Type[] exceptions)
setConstructor
public void setConstructor(boolean constructor)
equals
public boolean equals(Object obj)
signatureMatches
public boolean signatureMatches(String name,
Type[] parameterTypes)
- Parameters:
name
- method nameparameterTypes
- parameter types or null if there are no parameters.
- Returns:
- true if the signature and parameters match.
hashCode
public int hashCode()
getParentClass
public JavaClass getParentClass()
setParentClass
public void setParentClass(JavaClass parentClass)
isPublic
public boolean isPublic()
- Overrides:
isPublic
in class AbstractJavaEntity
isPropertyAccessor
public boolean isPropertyAccessor()
- Returns:
- true if this method is a Java Bean accessor
- Since:
- 1.3
isPropertyMutator
public boolean isPropertyMutator()
- Returns:
- true if this method is a Java Bean accessor
- Since:
- 1.3
getPropertyType
public Type getPropertyType()
- 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
getPropertyName
public String getPropertyName()
- 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
getTagsByName
public DocletTag[] getTagsByName(String name,
boolean inherited)
- Specified by:
getTagsByName
in class AbstractInheritableJavaEntity
Copyright © 2002-2003 ThoughtWorks, Inc. All Rights Reserved.