xjavadoc

Class AbstractExecutableMember

abstract class AbstractExecutableMember extends MemberImpl implements XExecutableMember

Baseclass for XExecutableMember.

Author: Aslak Hellesxy

UNKNOWN: 9. mars 2003

Field Summary
static intINITIAL_PARAMETER_POOL_SIZE
Initial size of ParameterImpl pool.
static intMAX_ARRAY_SIZE
Maximum dimension of a parameter.
static intPARAMETER_DATA_SIZE
Initial size of data to hold parameters.
static Integer[]_dimensions
String_nameWithSignature
List_parameterData
static ParameterImpl[]_parameterPool
String_signature
String_stringId
List_thrownExceptions
Constructor Summary
protected AbstractExecutableMember(AbstractClass containingClass, XTagFactory tagFactory)
Method Summary
voidaddParameterData(String type, String name, int dimension)
Adds a parameter
voidaddThrownException(String thrownException)
StringBufferappendSignature(StringBuffer sb, boolean withParam)
protected abstract StringbuildStringId()
booleanequals(Object o)
StringgetNameWithSignature(boolean withParam)
Gets the name and signature
intgetParameterDimension(int index)
StringgetParameterName(int index)
ListgetParameters()
Returns the method parameters.
StringgetParameterType(int index)
StringgetParameterTypes()
ListgetQualifiedExceptions()
StringgetSignature(boolean withParam)
Gets the signature
XProgramElementgetSuperElement(boolean forMethod)
ListgetThrownExceptions()
inthashCode()
booleanisNative()
Gets the Native attribute of the AbstractExecutableMember object
booleanisSynchronized()
Gets the Synchronized attribute of the AbstractExecutableMember object
StringstringId()
Gets the StringId attribute of the MethodImpl object
booleanthrowsException(String exception_class_name)
static StringtoString(XParameter parameter, boolean withParam)
StringtoString()

Field Detail

INITIAL_PARAMETER_POOL_SIZE

private static final int INITIAL_PARAMETER_POOL_SIZE
Initial size of ParameterImpl pool. Estimate of max number of params in a method

MAX_ARRAY_SIZE

private static final int MAX_ARRAY_SIZE
Maximum dimension of a parameter. We want to avoid exessive Integer object creation.

PARAMETER_DATA_SIZE

private static final int PARAMETER_DATA_SIZE
Initial size of data to hold parameters. Estimate of average number of params in a method.

_dimensions

private static final Integer[] _dimensions

_nameWithSignature

private String _nameWithSignature

_parameterData

private List _parameterData

_parameterPool

private static ParameterImpl[] _parameterPool

_signature

private String _signature

_stringId

private String _stringId

_thrownExceptions

private List _thrownExceptions

Constructor Detail

AbstractExecutableMember

protected AbstractExecutableMember(AbstractClass containingClass, XTagFactory tagFactory)

Method Detail

addParameterData

public void addParameterData(String type, String name, int dimension)
Adds a parameter

Parameters: type qualified nyme of parameter type name parameter name dimension parameter dimension

addThrownException

public void addThrownException(String thrownException)

appendSignature

private final StringBuffer appendSignature(StringBuffer sb, boolean withParam)

buildStringId

protected abstract String buildStringId()

equals

public boolean equals(Object o)

getNameWithSignature

public final String getNameWithSignature(boolean withParam)
Gets the name and signature

Parameters: withParam if true, include the parameters in the signature. Otherwise, only the types will be used.

Returns: the name and signature

getParameterDimension

final int getParameterDimension(int index)

getParameterName

final String getParameterName(int index)

getParameters

public final List getParameters()
Returns the method parameters.

Returns: the method parameters

getParameterType

final String getParameterType(int index)

getParameterTypes

public String getParameterTypes()

getQualifiedExceptions

private List getQualifiedExceptions()

getSignature

public final String getSignature(boolean withParam)
Gets the signature

Parameters: withParam if true, include the parameters in the signature. Otherwise, only the types will be used.

Returns: the signature

getSuperElement

public XProgramElement getSuperElement(boolean forMethod)

getThrownExceptions

public List getThrownExceptions()

hashCode

public int hashCode()

isNative

public final boolean isNative()
Gets the Native attribute of the AbstractExecutableMember object

Returns: The Native value

isSynchronized

public final boolean isSynchronized()
Gets the Synchronized attribute of the AbstractExecutableMember object

Returns: The Synchronized value

stringId

private final String stringId()
Gets the StringId attribute of the MethodImpl object

Returns: The StringId value

throwsException

public boolean throwsException(String exception_class_name)

toString

private static final String toString(XParameter parameter, boolean withParam)

toString

public String toString()