Package com.sun.tools.xjc.outline
Interface Outline
-
- All Known Implementing Classes:
BeanGenerator
public interface OutlineRoot of the outline. Captures which code is generated for which model component.This object also provides access to various utilities, such as error reporting etc, for the convenience of code that builds the outline.
- Author:
- Kohsuke Kawaguchi
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description JClassaddRuntime(Class clazz)Copies the specified class into the user's package and returns a reference to it.Iterable<? extends PackageOutline>getAllPackageContexts()Gets all package-wise contexts at once.Collection<? extends ClassOutline>getClasses()Returns all theClassOutlines known to this object.CodeModelClassFactorygetClassFactory()Gets a reference tonew CodeModelClassFactory(getErrorHandler()).ClassOutlinegetClazz(CClassInfo clazz)Obtains per-class context information.JCodeModelgetCodeModel()Short forgetModel().codeModel.JClassContainergetContainer(CClassInfoParent parent, Aspect aspect)ElementOutlinegetElement(CElementInfo ei)If theCElementInfogenerates a class, returns such a class.EnumOutlinegetEnum(CEnumLeafInfo eli)Collection<EnumOutline>getEnums()Gets all theEnumOutlines.ErrorReceivergetErrorReceiver()Any error during the back-end proccessing should be sent to this object.FieldOutlinegetField(CPropertyInfo fu)Gets the object that wraps the generated field for a givenCPropertyInfo.ModelgetModel()This outline is for this model.PackageOutlinegetPackageContext(JPackage _Package)Gets per-package context information.JTyperesolve(CTypeRef ref, Aspect aspect)Resolves a type reference to the actual (possibly generated) type.
-
-
-
Method Detail
-
getModel
Model getModel()
This outline is for this model.
-
getCodeModel
JCodeModel getCodeModel()
Short forgetModel().codeModel.
-
getField
FieldOutline getField(CPropertyInfo fu)
Gets the object that wraps the generated field for a givenCPropertyInfo.
-
getPackageContext
PackageOutline getPackageContext(JPackage _Package)
Gets per-package context information. This method works for every visible package (those packages which are supposed to be used by client applications.)- Returns:
- If this grammar doesn't produce anything in the specified package, return null.
-
getClasses
Collection<? extends ClassOutline> getClasses()
Returns all theClassOutlines known to this object.
-
getClazz
ClassOutline getClazz(CClassInfo clazz)
Obtains per-class context information.
-
getElement
ElementOutline getElement(CElementInfo ei)
If theCElementInfogenerates a class, returns such a class. Otherwise return null.
-
getEnum
EnumOutline getEnum(CEnumLeafInfo eli)
-
getEnums
Collection<EnumOutline> getEnums()
Gets all theEnumOutlines.
-
getAllPackageContexts
Iterable<? extends PackageOutline> getAllPackageContexts()
Gets all package-wise contexts at once.
-
getClassFactory
CodeModelClassFactory getClassFactory()
Gets a reference tonew CodeModelClassFactory(getErrorHandler()).
-
getErrorReceiver
ErrorReceiver getErrorReceiver()
Any error during the back-end proccessing should be sent to this object.
-
getContainer
JClassContainer getContainer(CClassInfoParent parent, Aspect aspect)
-
resolve
JType resolve(CTypeRef ref, Aspect aspect)
Resolves a type reference to the actual (possibly generated) type. Short forresolve(ref.getType(),aspect).
-
-