xjavadoc

Interface XExecutableMember

public interface XExecutableMember extends XMember

Common functionality for methods and constructors.

Author: Ara Abrahamian Aslak Hellesxy

UNKNOWN: 9. mars 2003

Method Summary
StringgetNameWithSignature(boolean withParam)
Gets the name and signature
ListgetParameters()
Returns the parameters.
StringgetParameterTypes()
Returns the parameters as a comma separated list of classes.
StringgetSignature(boolean withParam)
Returns the signature.
ListgetThrownExceptions()
Returns the thrown exception classes.
booleanisConstructor()
Return true if this is a constructor.
booleanisNative()
booleanisSynchronized()
booleanthrowsException(String exception_class_name)
Return true if the member throws the specified exception in its throws block.

Method Detail

getNameWithSignature

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

Parameters: withParam whether or not to include the parameter names in the signature.

Returns: the name and signature

getParameters

public List getParameters()
Returns the parameters.

Returns: a Collection of XParameter.

getParameterTypes

public String getParameterTypes()
Returns the parameters as a comma separated list of classes. E.g. a method with signature (java.lang.String,int) would return java.lang.String.class, java.lang.Integer.TYPE.

Returns: comma separated list of types for all parameters.

getSignature

public String getSignature(boolean withParam)
Returns the signature. E.g. (java.lang.String,int) or (java.lang.String foo,int bar).

Parameters: withParam whether or not to include the parameter names in the signature.

Returns: the signature.

getThrownExceptions

public List getThrownExceptions()
Returns the thrown exception classes.

Returns: a Collection of XClass.

isConstructor

public boolean isConstructor()
Return true if this is a constructor.

Returns: true if this is a constructor.

isNative

public boolean isNative()

isSynchronized

public boolean isSynchronized()

throwsException

public boolean throwsException(String exception_class_name)
Return true if the member throws the specified exception in its throws block.

Parameters: exception_class_name

Returns: true if the member throws the exception