|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Outline
Root of the outline. Captures which code is generated for which model component.
This object also provides access to varioues utilities, such as error reporting etc, for the convenience of code that builds the outline.
Method Summary | |
---|---|
com.sun.codemodel.JClass |
addRuntime(java.lang.Class clazz)
Copies the specified class into the user's package and returns a reference to it. |
java.lang.Iterable<? extends PackageOutline> |
getAllPackageContexts()
Gets all package-wise contexts at once. |
java.util.Collection<? extends ClassOutline> |
getClasses()
Returns all the ClassOutline s known to this object. |
CodeModelClassFactory |
getClassFactory()
Gets a reference to new CodeModelClassFactory(getErrorHandler()) . |
ClassOutline |
getClazz(CClassInfo clazz)
Obtains per-class context information. |
com.sun.codemodel.JCodeModel |
getCodeModel()
Short for getModel().codeModel . |
com.sun.codemodel.JClassContainer |
getContainer(CClassInfoParent parent,
Aspect aspect)
|
ElementOutline |
getElement(CElementInfo ei)
If the CElementInfo generates a class,
returns such a class. |
EnumOutline |
getEnum(CEnumLeafInfo eli)
|
java.util.Collection<EnumOutline> |
getEnums()
Gets all the EnumOutline s. |
ErrorReceiver |
getErrorReceiver()
Any error during the back-end proccessing should be sent to this object. |
FieldOutline |
getField(CPropertyInfo fu)
Gets the object that wraps the generated field for a given CPropertyInfo . |
Model |
getModel()
This outline is for this model. |
PackageOutline |
getPackageContext(com.sun.codemodel.JPackage _Package)
Gets per-package context information. |
com.sun.codemodel.JType |
resolve(CTypeRef ref,
Aspect aspect)
Resolves a type reference to the actual (possibly generated) type. |
Method Detail |
---|
Model getModel()
com.sun.codemodel.JCodeModel getCodeModel()
getModel().codeModel
.
FieldOutline getField(CPropertyInfo fu)
CPropertyInfo
.
PackageOutline getPackageContext(com.sun.codemodel.JPackage _Package)
java.util.Collection<? extends ClassOutline> getClasses()
ClassOutline
s known to this object.
ClassOutline getClazz(CClassInfo clazz)
ElementOutline getElement(CElementInfo ei)
CElementInfo
generates a class,
returns such a class. Otherwise return null.
EnumOutline getEnum(CEnumLeafInfo eli)
java.util.Collection<EnumOutline> getEnums()
EnumOutline
s.
java.lang.Iterable<? extends PackageOutline> getAllPackageContexts()
CodeModelClassFactory getClassFactory()
new CodeModelClassFactory(getErrorHandler())
.
ErrorReceiver getErrorReceiver()
com.sun.codemodel.JClassContainer getContainer(CClassInfoParent parent, Aspect aspect)
com.sun.codemodel.JType resolve(CTypeRef ref, Aspect aspect)
resolve(ref.getType(),aspect)
.
com.sun.codemodel.JClass addRuntime(java.lang.Class clazz)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |