Package eu.bandm.tools.metajava
Class GeneratedClass
java.lang.Object
eu.bandm.tools.metajava.GeneratedAnnotationTarget
eu.bandm.tools.metajava.GeneratedDeclaration
eu.bandm.tools.metajava.GeneratedMember
eu.bandm.tools.metajava.GeneratedClass
- All Implemented Interfaces:
Formattable,GeneratedContext,GeneratedSourceContext,MetaClass,MetaImportable,MetaModifiable,MetaType
- Direct Known Subclasses:
AnonymousClass,GeneratedEnum
public class GeneratedClass
extends GeneratedMember
implements MetaClass, GeneratedContext, GeneratedSourceContext
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<GeneratedBlock> protected List<GeneratedConstructor> protected List<GeneratedField> protected Map<String, GeneratedClass> protected final GeneratedPackageprotected List<GeneratedMethod> protected List<GeneratedDeclaration> fields, blocks and dirtprotected GeneratedSourceContextstatic final MetaClassprotected MetaTypeFields inherited from class eu.bandm.tools.metajava.GeneratedMember
enclosing, nameFields inherited from interface eu.bandm.tools.metajava.MetaType
getRawType, refer -
Constructor Summary
ConstructorsConstructorDescriptionGeneratedClass(GeneratedPackage metaPackage, GeneratedSourceContext parentSource, int modifiers, String name, MetaType superClass) -
Method Summary
Modifier and TypeMethodDescriptionaddAnonymousClass(MetaType superClass) addAnonymousClass(Class<?> superClass) addBlock()addBlock(int modifiers) addConstructor(int modifiers) addDeclarations(String text) Deprecated.final voidaddImport(MetaImportable imp) final voidaddInnerClass(int modifiers, String name) addInnerClass(int modifiers, String name, MetaType superClass) addInnerClass(int modifiers, String name, Class<?> superClass) addInnerEnum(int modifiers, String name) voidaddInterface(MetaType metaInterface) voidaddInterface(Class<?> metaInterface) voidformat()Returns a pretty-printable representation of this object.final Collection<GeneratedClass> final Set<MetaImportable> getInnerClass(Iterable<? extends String> name) getInnerClass(String name) final GeneratedPackagefinal GeneratedContextfinal GeneratedSourceContextfinal MetaClassfinal GeneratedSourceFilebooleanisArray()booleanrefer()static Formatstatic FormatvoidsetSuperClass(MetaType newSuperClass) voidsetSuperClass(Class<?> newSuperClass) Methods inherited from class eu.bandm.tools.metajava.GeneratedMember
addTypeVariable, addTypeVariable, getName, getTypeVariablesMethods inherited from class eu.bandm.tools.metajava.GeneratedDeclaration
getModifiers, setModifiersMethods inherited from class eu.bandm.tools.metajava.GeneratedAnnotationTarget
addAnnotation, addAnnotation, addAnnotation, addComment, getAnnotations, getComments, getRawComments, hasMetadataMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface eu.bandm.tools.metajava.MetaModifiable
getModifiers
-
Field Details
-
metaPackage
-
superClass
-
interfaces
-
parentSource
-
innerClasses
-
constructors
-
fields
-
methods
-
blocks
-
ordered
fields, blocks and dirt -
rootClass
-
-
Constructor Details
-
GeneratedClass
GeneratedClass(GeneratedPackage metaPackage, GeneratedSourceContext parentSource, int modifiers, String name, MetaType superClass)
-
-
Method Details
-
getParentContext
- Specified by:
getParentContextin interfaceGeneratedContext
-
getParentSourceContext
- Specified by:
getParentSourceContextin interfaceGeneratedSourceContext
-
getImports
- Specified by:
getImportsin interfaceGeneratedSourceContext
-
addImport
-
addImport
-
getPackage
- Specified by:
getPackagein interfaceGeneratedSourceContext- Specified by:
getPackagein interfaceMetaClass
-
getSourceFile
- Specified by:
getSourceFilein interfaceGeneratedSourceContext
-
getImportPattern
- Specified by:
getImportPatternin interfaceMetaImportable
-
getSimpleName
- Specified by:
getSimpleNamein interfaceGeneratedSourceContext- Specified by:
getSimpleNamein interfaceMetaClass
-
getQualifiedName
- Specified by:
getQualifiedNamein interfaceGeneratedSourceContext- Specified by:
getQualifiedNamein interfaceMetaClass
-
getClassForNameName
-
getPackageName
- Specified by:
getPackageNamein interfaceMetaClass
-
getSuperClass
- Specified by:
getSuperClassin interfaceMetaClass
-
setSuperClass
-
setSuperClass
-
getInterfaces
- Specified by:
getInterfacesin interfaceMetaClass
-
getEnclosingClass
- Specified by:
getEnclosingClassin interfaceMetaClass- Overrides:
getEnclosingClassin classGeneratedMember
-
addTypeParameter
-
getTypeParameters
-
getClasses
- Specified by:
getClassesin interfaceGeneratedContext
-
getInnerClasses
- Specified by:
getInnerClassesin interfaceMetaClass
-
getOrderedMembers
-
getFields
-
getConstructors
- Specified by:
getConstructorsin interfaceMetaClass
-
getMethods
- Specified by:
getMethodsin interfaceMetaClass
-
addInterface
-
addInterface
-
addInnerClass
-
addEnum
- Specified by:
addEnumin interfaceGeneratedContext
-
addInnerEnum
-
addClass
- Specified by:
addClassin interfaceGeneratedContext
-
addInnerClass
-
addInnerClass
-
addAnonymousClass
-
addAnonymousClass
-
addField
-
addField
-
addConstructor
-
addConstructor
-
addMethod
-
addMethod
-
addBlock
-
addBlock
-
addDirt
Deprecated. -
addDeclarations
-
isArray
public boolean isArray() -
isPrimitive
public boolean isPrimitive()- Specified by:
isPrimitivein interfaceMetaClass
-
getElementClass
- Specified by:
getElementClassin interfaceMetaClass
-
refer
-
format
Description copied from interface:FormattableReturns a pretty-printable representation of this object.- Specified by:
formatin interfaceFormattable- Returns:
- a format that represents this object in a pretty-printable way
-
getInnerClass
- Specified by:
getInnerClassin interfaceMetaClass
-
getInnerClass
- Specified by:
getInnerClassin interfaceMetaClass
-
getRawType
- Specified by:
getRawTypein interfaceMetaType
-
referTo
-
referTo
-