Package org.jibx.custom.classes
Class ClassSourceWrapper
- java.lang.Object
-
- org.jibx.binding.model.ClassWrapper
-
- org.jibx.custom.classes.ClassSourceWrapper
-
- All Implemented Interfaces:
IClass
public class ClassSourceWrapper extends ClassWrapper
Wrapper for class with added source information. This wraps the basic class handling implementation with added support for retrieving information from source files.- Author:
- Dennis M. Sosnoski
-
-
Constructor Summary
Constructors Constructor Description ClassSourceWrapper(IClassSourceLocator loc, ClassFile clas)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected IClassItem
buildItem(ClassItem item)
Build an item wrapper.java.lang.String
getJavaDoc()
Get the JavaDoc comment for this class.-
Methods inherited from class org.jibx.binding.model.ClassWrapper
getBestMethod, getClassFile, getDirectField, getField, getFields, getInitializerMethod, getInstanceSigs, getInterfaces, getLocator, getMethod, getMethod, getMethods, getName, getPackage, getSignature, getStaticMethod, getSuperClass, isAbstract, isAccessible, isAssignable, isImplements, isInterface, isModifiable, isSuperclass, loadClass
-
-
-
-
Constructor Detail
-
ClassSourceWrapper
public ClassSourceWrapper(IClassSourceLocator loc, ClassFile clas)
Constructor.- Parameters:
loc
-clas
-
-
-
Method Detail
-
buildItem
protected IClassItem buildItem(ClassItem item)
Build an item wrapper. This override of the base class implementation always creates a wrapper which will support source operations.- Overrides:
buildItem
in classClassWrapper
- Parameters:
item
-- Returns:
- wrapper
-
getJavaDoc
public java.lang.String getJavaDoc()
Description copied from interface:IClass
Get the JavaDoc comment for this class.- Specified by:
getJavaDoc
in interfaceIClass
- Overrides:
getJavaDoc
in classClassWrapper
- Returns:
- comment text, or
null
if none or no source available
-
-