Class JAbstractMethod
Common superclass for
JMethod and
JConstructor.
Methods
Method Detail
addMetaData
Adds additional metadata.
Parameters
- tagName
-
- values
-
addModifierBits
public void addModifierBits(int bits)
Parameters
- bits
-
addThrows
public void
addThrows(
JType type)
Parameters
- type
-
findParameter
Parameters
- name
-
getBodyEnd
public int getBodyEnd()
getBodyStart
public int getBodyStart()
getDeclEnd
public int getDeclEnd()
getDeclStart
public int getDeclStart()
getEnclosingType
Gets the type in which this method or constructor was declared.
getMetaData
Gets each list of metadata for the specified tag name.
Parameters
- tagName
-
getMetaDataTags
Gets the name of available metadata tags.
getModifierBits
protected int getModifierBits()
getName
getParameters
getReadableDeclaration
public abstract
String getReadableDeclaration()
getThrows
isConstructor
isDefaultAccess
public boolean isDefaultAccess()
isMethod
isPrivate
public boolean isPrivate()
isProtected
public boolean isProtected()
isPublic
public boolean isPublic()
toStringParamsAndThrows
Parameters
- sb
-