|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectxjavadoc.AbstractProgramElement
xjavadoc.MemberImpl
xjavadoc.AbstractExecutableMember
Baseclass for XExecutableMember.
Field Summary | |
private static java.lang.Integer[] |
_dimensions
|
private java.lang.String |
_nameWithSignature
|
private java.util.List |
_parameterData
|
private static ParameterImpl[] |
_parameterPool
|
private java.lang.String |
_signature
|
private java.lang.String |
_stringId
|
private java.util.List |
_thrownExceptions
|
private static int |
INITIAL_PARAMETER_POOL_SIZE
Initial size of ParameterImpl pool. |
private static int |
MAX_ARRAY_SIZE
Maximum dimension of a parameter. |
private static int |
PARAMETER_DATA_SIZE
Initial size of data to hold parameters. |
Fields inherited from class xjavadoc.AbstractProgramElement |
EMPTY_LIST |
Constructor Summary | |
protected |
AbstractExecutableMember(AbstractClass containingClass,
XTagFactory tagFactory)
|
Method Summary | |
void |
addParameterData(java.lang.String type,
java.lang.String name,
int dimension)
Adds a parameter |
void |
addThrownException(java.lang.String thrownException)
|
private java.lang.StringBuffer |
appendSignature(java.lang.StringBuffer sb,
boolean withParam)
|
protected abstract java.lang.String |
buildStringId()
|
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getName()
Get name |
java.lang.String |
getNameWithSignature(boolean withParam)
Gets the name and signature |
(package private) int |
getParameterDimension(int index)
|
(package private) java.lang.String |
getParameterName(int index)
|
java.util.List |
getParameters()
Returns the method parameters. |
(package private) java.lang.String |
getParameterType(int index)
|
java.lang.String |
getParameterTypes()
Returns the parameters as a comma separated list of classes. |
private java.util.List |
getQualifiedExceptions()
|
java.lang.String |
getSignature(boolean withParam)
Gets the signature |
XProgramElement |
getSuperElement(boolean forMethod)
|
java.util.List |
getSuperInterfaceElements()
|
java.util.List |
getThrownExceptions()
Returns the thrown exception classes. |
int |
hashCode()
|
boolean |
isNative()
Gets the Native attribute of the AbstractExecutableMember object |
boolean |
isSynchronized()
Gets the Synchronized attribute of the AbstractExecutableMember object |
void |
setName(java.lang.String name)
|
private java.lang.String |
stringId()
Gets the StringId attribute of the MethodImpl object |
boolean |
throwsException(java.lang.String exception_class_name)
Return true if the member throws the specified exception in its throws block. |
java.lang.String |
toString()
|
private static java.lang.String |
toString(XParameter parameter,
boolean withParam)
|
Methods inherited from class xjavadoc.AbstractProgramElement |
addModifier, compareTo, getContainingAbstractClass, getContainingClass, getContainingPackage, getDoc, getModifiers, getModifierSpecifier, getTagFactory, getXJavaDoc, isAbstract, isFinal, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, reset, setToken, updateDoc |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface xjavadoc.XExecutableMember |
isConstructor |
Methods inherited from interface xjavadoc.XProgramElement |
getContainingClass, getContainingPackage, getDoc, getModifiers, getModifierSpecifier, getSuperElement, getSuperInterfaceElements, getXJavaDoc, isAbstract, isFinal, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, updateDoc |
Methods inherited from interface java.lang.Comparable |
compareTo |
Methods inherited from interface xjavadoc.Named |
getName |
Field Detail |
private static final int MAX_ARRAY_SIZE
private static final java.lang.Integer[] _dimensions
private static final int PARAMETER_DATA_SIZE
private static final int INITIAL_PARAMETER_POOL_SIZE
private static ParameterImpl[] _parameterPool
private java.util.List _thrownExceptions
private java.util.List _parameterData
private java.lang.String _nameWithSignature
private java.lang.String _signature
private java.lang.String _stringId
Constructor Detail |
protected AbstractExecutableMember(AbstractClass containingClass, XTagFactory tagFactory)
Method Detail |
private static final java.lang.String toString(XParameter parameter, boolean withParam)
public final boolean isNative()
isNative
in interface XExecutableMember
public final boolean isSynchronized()
isSynchronized
in interface XExecutableMember
public final java.util.List getParameters()
getParameters
in interface XExecutableMember
public final java.lang.String getSignature(boolean withParam)
getSignature
in interface XExecutableMember
withParam
- if true, include the parameters in the signature.
Otherwise, only the types will be used.
public final java.lang.String getNameWithSignature(boolean withParam)
getNameWithSignature
in interface XExecutableMember
withParam
- if true, include the parameters in the signature.
Otherwise, only the types will be used.
public java.lang.String getParameterTypes()
XExecutableMember
(java.lang.String,int)
would return
java.lang.String.class, java.lang.Integer.TYPE
.
getParameterTypes
in interface XExecutableMember
public java.util.List getThrownExceptions()
XExecutableMember
getThrownExceptions
in interface XExecutableMember
XClass
.public XProgramElement getSuperElement(boolean forMethod)
public boolean throwsException(java.lang.String exception_class_name)
XExecutableMember
throwsException
in interface XExecutableMember
exception_class_name
-
public void addParameterData(java.lang.String type, java.lang.String name, int dimension)
type
- qualified nyme of parameter typename
- parameter namedimension
- parameter dimensionpublic void addThrownException(java.lang.String thrownException)
public boolean equals(java.lang.Object o)
public int hashCode()
public java.lang.String toString()
protected abstract java.lang.String buildStringId()
final java.lang.String getParameterType(int index)
final java.lang.String getParameterName(int index)
final int getParameterDimension(int index)
private java.util.List getQualifiedExceptions()
private final java.lang.String stringId()
private final java.lang.StringBuffer appendSignature(java.lang.StringBuffer sb, boolean withParam)
public java.lang.String getName()
Named
getName
in interface Named
public void setName(java.lang.String name)
public java.util.List getSuperInterfaceElements()
getSuperInterfaceElements
in interface XProgramElement
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |