xjavadoc

Class MethodImpl

final class MethodImpl extends AbstractExecutableMember implements XMethod

Describe what this class does

Author: Aslak Hellesxy

UNKNOWN: 25. februar 2003

Field Summary
static intinstanceCount
StringmethodNameWithSignatureAndModifiers
StringmethodNameWithSignatureWithoutModifiers
ReturnType_returnType
Constructor Summary
MethodImpl(AbstractClass containingClass, XTagFactory tagFactory)
Method Summary
protected StringbuildStringId()
booleanequals(Object o)
Two methods are equal if they have the same return type, name and signature, regardless of the enclosing class and modifiers.
XMethodgetAccessor()
StringgetMethodNameWithSignatureAndModifiers()
StringgetMethodNameWithSignatureWithoutModifiers()
XMethodgetMutator()
StringgetNameWithoutPrefix()
StringgetPropertyName()
TypegetPropertyType()
TypegetReturnType()
XProgramElementgetSuperElement()
ListgetSuperInterfaceElements()
inthashCode()
booleanisConstructor()
Gets the Constructor attribute of the SourceMethod object
booleanisPropertyAccessor()
booleanisPropertyMutator()
voidsetReturnDimension(int d)
Sets the ReturnDimension attribute of the SourceMethod object
voidsetReturnType(String returnType)
Sets the ReturnType attribute of the SourceMethod object
StringtoString()
StringtoString(boolean modifiers)
Builds a String uniquely describing this method

Field Detail

instanceCount

public static int instanceCount

methodNameWithSignatureAndModifiers

private String methodNameWithSignatureAndModifiers

methodNameWithSignatureWithoutModifiers

private String methodNameWithSignatureWithoutModifiers

_returnType

private ReturnType _returnType

Constructor Detail

MethodImpl

public MethodImpl(AbstractClass containingClass, XTagFactory tagFactory)

Method Detail

buildStringId

protected String buildStringId()

equals

public boolean equals(Object o)
Two methods are equal if they have the same return type, name and signature, regardless of the enclosing class and modifiers. Methods are compared for equality when calling XClass.getMethods(true)

Parameters: o

Returns:

getAccessor

public XMethod getAccessor()

getMethodNameWithSignatureAndModifiers

private String getMethodNameWithSignatureAndModifiers()

getMethodNameWithSignatureWithoutModifiers

private String getMethodNameWithSignatureWithoutModifiers()

getMutator

public XMethod getMutator()

getNameWithoutPrefix

public String getNameWithoutPrefix()

getPropertyName

public String getPropertyName()

getPropertyType

public Type getPropertyType()

getReturnType

public final Type getReturnType()

getSuperElement

public XProgramElement getSuperElement()

getSuperInterfaceElements

public List getSuperInterfaceElements()

hashCode

public int hashCode()

isConstructor

public final boolean isConstructor()
Gets the Constructor attribute of the SourceMethod object

Returns: The Constructor value

isPropertyAccessor

public boolean isPropertyAccessor()

isPropertyMutator

public boolean isPropertyMutator()

setReturnDimension

public final void setReturnDimension(int d)
Sets the ReturnDimension attribute of the SourceMethod object

Parameters: d The new ReturnDimension value

setReturnType

public final void setReturnType(String returnType)
Sets the ReturnType attribute of the SourceMethod object

Parameters: returnType The new ReturnType value

toString

public String toString()

toString

private String toString(boolean modifiers)
Builds a String uniquely describing this method

Parameters: modifiers

Returns: a String uniquely describing this method