compareTo
public int compareTo(Object o)
equals
public boolean equals(Object obj)
getExceptions
public Type[] getExceptions()
getParameterByName
public JavaParameter getParameterByName(String name)
getParentClass
public JavaClass getParentClass()
getPropertyName
public String getPropertyName()
- the name of the property this method represents, or null if this method
is not a property mutator or property accessor.
getPropertyType
public Type getPropertyType()
- the type of the property this method represents, or null if this method
is not a property mutator or property accessor.
getReturns
public Type getReturns()
getSourceCode
public String getSourceCode()
Get the original source code of the body of this method.
hashCode
public int hashCode()
isConstructor
public boolean isConstructor()
isPropertyAccessor
public boolean isPropertyAccessor()
- true if this method is a Java Bean accessor
isPropertyMutator
public boolean isPropertyMutator()
- true if this method is a Java Bean accessor
setConstructor
public void setConstructor(boolean constructor)
setExceptions
public void setExceptions(Type[] exceptions)
setParameters
public void setParameters(JavaParameter[] parameters)
setParentClass
public void setParentClass(JavaClass parentClass)
setReturns
public void setReturns(Type returns)
setSourceCode
public void setSourceCode(String sourceCode)
signatureMatches
public boolean signatureMatches(String name,
Type[] parameterTypes)
name
- method nameparameterTypes
- parameter types or null if there are no parameters.
- true if the signature and parameters match.
writeBody
protected void writeBody(IndentBuffer result,
boolean withModifiers,
boolean isDeclaration,
boolean isPrettyPrint)