org.jibx.custom.classes
Class ClassSourceWrapper

java.lang.Object
  extended by org.jibx.binding.model.ClassWrapper
      extended by 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
ClassSourceWrapper(IClassSourceLocator loc, ClassFile clas)
          Constructor.
 
Method Summary
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 class ClassWrapper
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 interface IClass
Overrides:
getJavaDoc in class ClassWrapper
Returns:
comment text, or null if none or no source available


Project Web Site