public class AnnotationMetaEntity extends Object implements MetaEntity
Class used to collect meta information about an annotated type (entity, embeddable or mapped superclass).
| Constructor and Description |
|---|
AnnotationMetaEntity(TypeElement element,
Context context,
boolean lazilyInitialised) |
| Modifier and Type | Method and Description |
|---|---|
String |
generateImports() |
Context |
getContext() |
protected TypeElement |
getElement() |
AccessTypeInformation |
getEntityAccessTypeInfo() |
List<MetaAttribute> |
getMembers() |
String |
getPackageName() |
String |
getQualifiedName() |
String |
getSimpleName() |
TypeElement |
getTypeElement() |
String |
importType(String fqcn)
Add fqcn to the import list.
|
protected void |
init() |
boolean |
isMetaComplete() |
void |
mergeInMembers(MetaEntity other) |
String |
staticImport(String fqcn,
String member) |
String |
toString() |
public AnnotationMetaEntity(TypeElement element, Context context, boolean lazilyInitialised)
public AccessTypeInformation getEntityAccessTypeInfo()
public final Context getContext()
public final String getSimpleName()
getSimpleName in interface MetaEntitypublic final String getQualifiedName()
getQualifiedName in interface MetaEntitypublic final String getPackageName()
getPackageName in interface MetaEntitypublic List<MetaAttribute> getMembers()
getMembers in interface MetaEntitypublic boolean isMetaComplete()
isMetaComplete in interface MetaEntitypublic void mergeInMembers(MetaEntity other)
public final String generateImports()
generateImports in interface ImportContextgenerateImports in interface MetaEntitypublic final String importType(String fqcn)
ImportContextAdd fqcn to the import list. Returns fqcn as needed in source code. Attempts to handle fqcn with array and generics references. <p/> e.g. java.util.Collection<org.marvel.Hulk> imports java.util.Collection and returns Collection org.marvel.Hulk[] imports org.marvel.Hulk and returns Hulk
importType in interface ImportContextimportType in interface MetaEntityfqcn - Fully qualified class name of the type to import.public final String staticImport(String fqcn, String member)
staticImport in interface ImportContextstaticImport in interface MetaEntitypublic final TypeElement getTypeElement()
getTypeElement in interface MetaEntityprotected TypeElement getElement()
protected final void init()
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.