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
Modifier and TypeFieldDescriptionprotected List<GeneratedBlock>
protected List<GeneratedConstructor>
protected List<GeneratedField>
protected Map<String,
GeneratedClass> protected final GeneratedPackage
protected List<GeneratedMethod>
protected List<GeneratedDeclaration>
fields, blocks and dirtprotected GeneratedSourceContext
(package private) static final Method
(package private) static final Class
(package private) static final Constructor
static final MetaClass
protected MetaType
Fields inherited from class eu.bandm.tools.metajava.GeneratedMember
enclosing, name
Fields inherited from interface eu.bandm.tools.metajava.MetaType
getRawType, refer
-
Constructor Summary
ConstructorDescriptionGeneratedClass
(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 void
addImport
(MetaImportable imp) final void
addInnerClass
(int modifiers, String name) addInnerClass
(int modifiers, String name, MetaType superClass) addInnerClass
(int modifiers, String name, Class superClass) addInnerEnum
(int modifiers, String name) void
addInterface
(MetaType metaInterface) void
addInterface
(Class metaInterface) void
format()
Returns a pretty-printable representation of this object.final Collection<GeneratedClass>
final Set<MetaImportable>
getInnerClass
(Iterable<? extends String> name) getInnerClass
(String name) protected Collection<GeneratedDeclaration>
final GeneratedPackage
final GeneratedContext
final GeneratedSourceContext
final MetaClass
final GeneratedSourceFile
boolean
isArray()
boolean
refer()
static Format
static Format
void
setSuperClass
(MetaType newSuperClass) void
setSuperClass
(Class newSuperClass) Methods inherited from class eu.bandm.tools.metajava.GeneratedMember
addTypeVariable, addTypeVariable, getName, getTypeVariables
Methods inherited from class eu.bandm.tools.metajava.GeneratedDeclaration
getModifiers, setModifiers
Methods inherited from class eu.bandm.tools.metajava.GeneratedAnnotationTarget
addAnnotation, addAnnotation, addAnnotation, addComment, getAnnotations, getComments, getRawComments, hasMetadata
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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
-
reducerClass
-
reducerCons
-
reduceMeth
-
-
Constructor Details
-
GeneratedClass
GeneratedClass(GeneratedPackage metaPackage, GeneratedSourceContext parentSource, int modifiers, String name, MetaType superClass)
-
-
Method Details
-
getParentContext
- Specified by:
getParentContext
in interfaceGeneratedContext
-
getParentSourceContext
- Specified by:
getParentSourceContext
in interfaceGeneratedSourceContext
-
getImports
- Specified by:
getImports
in interfaceGeneratedSourceContext
-
addImport
-
addImport
-
getPackage
- Specified by:
getPackage
in interfaceGeneratedSourceContext
- Specified by:
getPackage
in interfaceMetaClass
-
getSourceFile
- Specified by:
getSourceFile
in interfaceGeneratedSourceContext
-
getImportPattern
- Specified by:
getImportPattern
in interfaceMetaImportable
-
getSimpleName
- Specified by:
getSimpleName
in interfaceGeneratedSourceContext
- Specified by:
getSimpleName
in interfaceMetaClass
-
getQualifiedName
- Specified by:
getQualifiedName
in interfaceGeneratedSourceContext
- Specified by:
getQualifiedName
in interfaceMetaClass
-
getClassForNameName
-
getPackageName
- Specified by:
getPackageName
in interfaceMetaClass
-
getSuperClass
- Specified by:
getSuperClass
in interfaceMetaClass
-
setSuperClass
-
setSuperClass
-
getInterfaces
- Specified by:
getInterfaces
in interfaceMetaClass
-
getEnclosingClass
- Specified by:
getEnclosingClass
in interfaceMetaClass
- Overrides:
getEnclosingClass
in classGeneratedMember
-
addTypeParameter
-
getTypeParameters
-
getClasses
- Specified by:
getClasses
in interfaceGeneratedContext
-
getInnerClasses
- Specified by:
getInnerClasses
in interfaceMetaClass
-
getOrderedMembers
-
getFields
-
getConstructors
- Specified by:
getConstructors
in interfaceMetaClass
-
getMethods
- Specified by:
getMethods
in interfaceMetaClass
-
addInterface
-
addInterface
-
addInnerClass
-
addEnum
- Specified by:
addEnum
in interfaceGeneratedContext
-
addInnerEnum
-
addClass
- Specified by:
addClass
in 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:
isPrimitive
in interfaceMetaClass
-
getElementClass
- Specified by:
getElementClass
in interfaceMetaClass
-
refer
-
format
Description copied from interface:Formattable
Returns a pretty-printable representation of this object.- Specified by:
format
in interfaceFormattable
- Returns:
- a format that represents this object in a pretty-printable way
-
getInnerClass
- Specified by:
getInnerClass
in interfaceMetaClass
-
getInnerClass
- Specified by:
getInnerClass
in interfaceMetaClass
-
getRawType
- Specified by:
getRawType
in interfaceMetaType
-
referTo
-
referTo
-