|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectorg.jibx.binding.model.ClassItemWrapper
public class ClassItemWrapper
Wrapper for class field or method item information. This wraps the BCEL-based class handling implementation to support the interface defined for use with the binding model.
| Field Summary | |
|---|---|
private IClass |
m_class
|
private ClassItem |
m_item
|
| Constructor Summary | |
|---|---|
protected |
ClassItemWrapper(IClass clas,
ClassItem item)
Constructor. |
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final IClass m_class
private final ClassItem m_item
| Constructor Detail |
|---|
protected ClassItemWrapper(IClass clas,
ClassItem item)
clas - item - | Method Detail |
|---|
protected IClass getContainingClass()
protected ClassItem getClassItem()
public IClass getOwningClass()
IClassItem
getOwningClass in interface IClassItempublic java.lang.String getName()
IClassItem
getName in interface IClassItempublic java.lang.String getJavaDoc()
IClassItem
getJavaDoc in interface IClassItemnull if not available)public java.lang.String getTypeName()
IClassItem
getTypeName in interface IClassItempublic java.lang.String getReturnJavaDoc()
IClassItem
getReturnJavaDoc in interface IClassItemnull 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 IClassItemindex - argument number
public java.lang.String getParameterJavaDoc(int index)
IClassItem
getParameterJavaDoc in interface IClassItemindex - parameter number
null if not available)public java.lang.String getParameterName(int index)
IClassItem
getParameterName in interface IClassItemindex - parameter number
null if not available)public int getAccessFlags()
IClassItem
getAccessFlags in interface IClassItempublic java.lang.String getSignature()
IClassItem
getSignature in interface IClassItempublic boolean isMethod()
IClassItem
isMethod in interface IClassItemtrue if a method, false if a fieldpublic boolean isInitializer()
IClassItem
isInitializer in interface IClassItemtrue if an initializer, false if a
field or normal methodpublic java.lang.String[] getExceptions()
IClassItem
getExceptions in interface IClassItemnull if
a fieldpublic java.lang.String getExceptionJavaDoc(int index)
IClassItem
getExceptionJavaDoc in interface IClassItemindex - exception index (into array returned by
IClassItem.getExceptions()
null if not available)public java.lang.String getGenericsSignature()
IClassItem
getGenericsSignature in interface IClassItemnull if none)
|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||