public class ClassItemWrapper extends java.lang.Object implements IClassItem
Modifier and Type | Field and Description |
---|---|
private IClass |
m_class |
private ClassItem |
m_item |
Modifier | Constructor and Description |
---|---|
protected |
ClassItemWrapper(IClass clas,
ClassItem item)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getAccessFlags()
Get access flags.
|
int |
getArgumentCount()
Get number of arguments for method.
|
java.lang.String |
getArgumentType(int index)
Get argument type as fully qualified class name.
|
protected ClassItem |
getClassItem()
Get class item information.
|
protected IClass |
getContainingClass()
Get containing class information.
|
java.lang.String |
getExceptionJavaDoc(int index)
Get method throws JavaDoc description, if available.
|
java.lang.String[] |
getExceptions()
Get names of exceptions thrown by method.
|
java.lang.String |
getGenericsSignature()
Get the generics signature information for item.
|
java.lang.String |
getJavaDoc()
Get item JavaDoc description, if available.
|
java.lang.String |
getName()
Get item name.
|
IClass |
getOwningClass()
Get owning class information.
|
java.lang.String |
getParameterJavaDoc(int index)
Get method parameter JavaDoc description, if available.
|
java.lang.String |
getParameterName(int index)
Get method parameter name, if available.
|
java.lang.String |
getReturnJavaDoc()
Get return JavaDoc description for method, if available.
|
java.lang.String |
getSignature()
Get field or method signature.
|
java.lang.String |
getTypeName()
Get item type as fully qualified class name.
|
boolean |
isInitializer()
Check if item is an initializer.
|
boolean |
isMethod()
Check if item is a method.
|
protected IClass getContainingClass()
protected ClassItem getClassItem()
public IClass getOwningClass()
IClassItem
getOwningClass
in interface IClassItem
public java.lang.String getName()
IClassItem
getName
in interface IClassItem
public java.lang.String getJavaDoc()
IClassItem
getJavaDoc
in interface IClassItem
null
if not available)public java.lang.String getTypeName()
IClassItem
getTypeName
in interface IClassItem
public java.lang.String getReturnJavaDoc()
IClassItem
getReturnJavaDoc
in interface IClassItem
null
if not available)public int getArgumentCount()
IClassItem
getArgumentCount
in interface IClassItem
-1
if not a methodpublic java.lang.String getArgumentType(int index)
IClassItem
getArgumentType
in interface IClassItem
index
- argument numberpublic java.lang.String getParameterJavaDoc(int index)
IClassItem
getParameterJavaDoc
in interface IClassItem
index
- parameter numbernull
if not available)public java.lang.String getParameterName(int index)
IClassItem
getParameterName
in interface IClassItem
index
- parameter numbernull
if not available)public int getAccessFlags()
IClassItem
getAccessFlags
in interface IClassItem
public java.lang.String getSignature()
IClassItem
getSignature
in interface IClassItem
public boolean isMethod()
IClassItem
isMethod
in interface IClassItem
true
if a method, false
if a fieldpublic boolean isInitializer()
IClassItem
isInitializer
in interface IClassItem
true
if an initializer, false
if a
field or normal methodpublic java.lang.String[] getExceptions()
IClassItem
getExceptions
in interface IClassItem
null
if
a fieldpublic java.lang.String getExceptionJavaDoc(int index)
IClassItem
getExceptionJavaDoc
in interface IClassItem
index
- exception index (into array returned by
IClassItem.getExceptions()
null
if not available)public java.lang.String getGenericsSignature()
IClassItem
getGenericsSignature
in interface IClassItem
null
if none)