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()
getSignature
private String getSignature(boolean withModifiers,
boolean isDeclaration)
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)
Don't call this - the parent is set in the constructor.
setReturns
public void setReturns(Type returns)
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)