public interface Outline
This object also provides access to various utilities, such as error reporting etc, for the convenience of code that builds the outline.
Modifier and Type | Method and Description |
---|---|
JClass |
addRuntime(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 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.
|
JCodeModel |
getCodeModel()
Short for
getModel().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) |
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(JPackage _Package)
Gets per-package context information.
|
JType |
resolve(CTypeRef ref,
Aspect aspect)
Resolves a type reference to the actual (possibly generated) type.
|
Model getModel()
JCodeModel getCodeModel()
getModel().codeModel
.FieldOutline getField(CPropertyInfo fu)
CPropertyInfo
.PackageOutline getPackageContext(JPackage _Package)
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)
Collection<EnumOutline> getEnums()
EnumOutline
s.Iterable<? extends PackageOutline> getAllPackageContexts()
CodeModelClassFactory getClassFactory()
new CodeModelClassFactory(getErrorHandler())
.ErrorReceiver getErrorReceiver()
JClassContainer getContainer(CClassInfoParent parent, Aspect aspect)
JType resolve(CTypeRef ref, Aspect aspect)
resolve(ref.getType(),aspect)
.Copyright © 2021 JBoss by Red Hat. All rights reserved.