|
||||||||||
| 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.
| Constructor Summary | |
|---|---|
protected |
ClassItemWrapper(IClass clas,
ClassItem item)
Constructor. |
| Method Summary | |
|---|---|
int |
getAccessFlags()
Get access flags. |
int |
getArgumentCount()
Get number of arguments for method. |
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. |
String |
getExceptionJavaDoc(int index)
Get method throws JavaDoc description, if available. |
String[] |
getExceptions()
Get names of exceptions thrown by method. |
String |
getGenericsSignature()
Get the generics signature information for item. |
String |
getJavaDoc()
Get item JavaDoc description, if available. |
String |
getName()
Get item name. |
IClass |
getOwningClass()
Get owning class information. |
String |
getParameterJavaDoc(int index)
Get method parameter JavaDoc description, if available. |
String |
getParameterName(int index)
Get method parameter name, if available. |
String |
getReturnJavaDoc()
Get return JavaDoc description for method, if available. |
String |
getSignature()
Get field or method signature. |
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 |
| 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 String getName()
IClassItem
getName in interface IClassItempublic String getJavaDoc()
IClassItem
getJavaDoc in interface IClassItemnull if not available)public String getTypeName()
IClassItem
getTypeName in interface IClassItempublic String getReturnJavaDoc()
IClassItem
getReturnJavaDoc in interface IClassItemnull if not available)public int getArgumentCount()
IClassItem
getArgumentCount in interface IClassItem-1 if not a methodpublic String getArgumentType(int index)
IClassItem
getArgumentType in interface IClassItemindex - argument number
public String getParameterJavaDoc(int index)
IClassItem
getParameterJavaDoc in interface IClassItemindex - parameter number
null if not available)public String getParameterName(int index)
IClassItem
getParameterName in interface IClassItemindex - parameter number
null if not available)public int getAccessFlags()
IClassItem
getAccessFlags in interface IClassItempublic 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 String[] getExceptions()
IClassItem
getExceptions in interface IClassItemnull if
a fieldpublic String getExceptionJavaDoc(int index)
IClassItem
getExceptionJavaDoc in interface IClassItemindex - exception index (into array returned by
IClassItem.getExceptions()
null if not available)public 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 | |||||||||