xjavadoc
Interface XExecutableMember
- Comparable, Named, XMember, XProgramElement
- XConstructor, XMethod
- AbstractExecutableMember, ConstructorImpl, MethodImpl
public interface XExecutableMember
Common functionality for methods and constructors.
- Ara Abrahamian
- Aslak Helles?y
getContainingClass, getContainingPackage, getDoc, getModifierSpecifier, getModifiers, getSuperElement, getSuperInterfaceElements, getXJavaDoc, isAbstract, isFinal, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, updateDoc |
getNameWithSignature
public String getNameWithSignature(boolean withParam)
Gets the name and signature
withParam - whether or not to include the parameter names in the
signature.
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.
- comma separated list of types for all parameters.
getParameters
public List getParameters()
Returns the parameters.
getSignature
public String getSignature(boolean withParam)
Returns the signature. E.g. (java.lang.String,int) or
(java.lang.String foo,int bar).
withParam - whether or not to include the parameter names in the
signature.
getThrownExceptions
public List getThrownExceptions()
Returns the thrown exception classes.
isConstructor
public boolean isConstructor()
Return true if this is a constructor.
- 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.
- true if the member throws the exception