Baseclass for XExecutableMember.
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
- 20
MAX_ARRAY_SIZE
private static final int MAX_ARRAY_SIZE
Maximum dimension of a parameter. We want to avoid exessive Integer object
creation.
- 6
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.
- 2
_dimensions
private static final Integer[] _dimensions
_nameWithSignature
private String _nameWithSignature
_parameterData
private List _parameterData
_signature
private String _signature
_stringId
private String _stringId
_thrownExceptions
private List _thrownExceptions
addParameterData
public void addParameterData(String type,
String name,
int dimension)
Adds a parameter
type
- qualified nyme of parameter typename
- parameter namedimension
- parameter dimension
addThrownException
public void addThrownException(String thrownException)
appendSignature
private final StringBuffer appendSignature(StringBuffer sb,
boolean withParam)
buildStringId
protected String buildStringId()
equals
public boolean equals(Object o)
getNameWithSignature
public final String getNameWithSignature(boolean withParam)
Gets the name and signature
- getNameWithSignature in interface XExecutableMember
withParam
- if true, include the parameters in the signature.
Otherwise, only the types will be used.
- the name and signature
getParameterDimension
(package private) final int getParameterDimension(int index)
getParameterName
(package private) final String getParameterName(int index)
getParameterType
(package private) final String getParameterType(int index)
getQualifiedExceptions
private List getQualifiedExceptions()
getSignature
public final String getSignature(boolean withParam)
Gets the signature
- getSignature in interface XExecutableMember
withParam
- if true, include the parameters in the signature.
Otherwise, only the types will be used.
- the signature
hashCode
public int hashCode()
isNative
public final boolean isNative()
Gets the Native attribute of the AbstractExecutableMember object
- isNative in interface XExecutableMember
- The Native value
isSynchronized
public final boolean isSynchronized()
Gets the Synchronized attribute of the AbstractExecutableMember object
- isSynchronized in interface XExecutableMember
- The Synchronized value
stringId
private final String stringId()
Gets the StringId attribute of the MethodImpl object
- The StringId value
toString
public String toString()
toString
private static final String toString(XParameter parameter,
boolean withParam)