Class Structures.Parsed<T extends com.github.javaparser.ast.body.TypeDeclaration<T>>
java.lang.Object
net.binis.codegen.generation.core.Structures.Parsed<T>
- All Implemented Interfaces:
PrototypeDescription<T>
- Direct Known Subclasses:
Structures.CustomParsed
- Enclosing class:
Structures
public static class Structures.Parsed<T extends com.github.javaparser.ast.body.TypeDeclaration<T>>
extends Object
implements PrototypeDescription<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<Structures.PrototypeDataHandler> protected Structures.Parsed<T> protected booleanprotected Class<?> protected Map<String, Structures.GeneratedFileHandler> protected com.github.javaparser.ast.body.TypeDeclaration<T> protected com.github.javaparser.ast.CompilationUnitprotected Elementprotected Map<String, List<ElementDescription>> protected net.binis.codegen.annotation.type.EmbeddedModifierTypeprotected List<PrototypeField> protected List<com.github.javaparser.ast.CompilationUnit> protected com.github.javaparser.ast.CompilationUnitprotected List<org.apache.commons.lang3.tuple.Triple<com.github.javaparser.ast.body.ClassOrInterfaceDeclaration, com.github.javaparser.ast.Node, PrototypeDescription<com.github.javaparser.ast.body.ClassOrInterfaceDeclaration>>> protected Stringprotected Stringprotected com.github.javaparser.ast.CompilationUnitprotected com.github.javaparser.ast.body.ClassOrInterfaceDeclarationprotected booleanprotected Structures.Parsed<T> protected booleanprotected com.github.javaparser.ast.body.ClassOrInterfaceDeclarationprotected Stringprotected Stringprotected Stringprotected Stringprotected com.github.javaparser.JavaParserprotected booleanprotected Structures.PrototypeDataHandlerprotected Stringprotected Stringprotected List<Parsables.Entry.Bag> protected com.github.javaparser.ast.body.ClassOrInterfaceDeclaration -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddCustomFile(String id) voidaddEmbeddedModifier(net.binis.codegen.annotation.type.EmbeddedModifierType type) voidaddProperties(Structures.PrototypeDataHandler properties) findElement(String name, ElementKind... kind) findElement(Element parent, String name, ElementKind kind) getCustomFile(String id) com.github.javaparser.ast.body.ClassOrInterfaceDeclarationcom.github.javaparser.ast.body.ClassOrInterfaceDeclarationcom.github.javaparser.ast.body.ClassOrInterfaceDeclarationgetRegisteredClass(String key) booleanhasEnricher(Class<? extends net.binis.codegen.enrich.Enricher> enricher) booleanprotected static List<com.github.javaparser.ast.CompilationUnit> booleanisValid()voidvoidregisterClass(String key, com.github.javaparser.ast.body.ClassOrInterfaceDeclaration declaration) voidvoidsetEmbeddedModifier(net.binis.codegen.annotation.type.EmbeddedModifierType type) voidsetImplementation(com.github.javaparser.ast.body.ClassOrInterfaceDeclaration spec) voidsetInterface(com.github.javaparser.ast.body.ClassOrInterfaceDeclaration intf) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.binis.codegen.generation.core.interfaces.PrototypeDescription
getBase, getCompiled, getConstants, getCustomInitializers, getDeclaration, getDeclarationUnit, getElements, getEmbeddedModifierType, getFields, getFiles, getImplementationUnit, getInitializers, getInterfaceFullName, getInterfaceName, getInterfaceUnit, getMixIn, getParent, getParentClassName, getParentPackage, getParsedFullName, getParsedName, getParser, getProperties, getPrototypeClassName, getPrototypeFileName, getRawElements, isCodeEnum, isInvalid, isNested, isProcessed
-
Field Details
-
processed
protected boolean processed -
invalid
protected boolean invalid -
parser
protected com.github.javaparser.JavaParser parser -
compiled
-
prototypeFileName
-
prototypeClassName
-
properties
-
additionalProperties
-
parsedName
-
parsedFullName
-
interfaceName
-
interfaceFullName
-
declaration
-
declarationUnit
protected com.github.javaparser.ast.CompilationUnit declarationUnit -
files
-
custom
-
base
-
mixIn
-
nested
protected boolean nested -
codeEnum
protected boolean codeEnum -
parentClassName
-
parent
protected com.github.javaparser.ast.body.ClassOrInterfaceDeclaration parent -
parentPackage
-
embeddedModifierType
protected net.binis.codegen.annotation.type.EmbeddedModifierType embeddedModifierType -
classes
-
fields
-
spec
protected com.github.javaparser.ast.body.ClassOrInterfaceDeclaration spec -
intf
protected com.github.javaparser.ast.body.ClassOrInterfaceDeclaration intf -
interfaceUnit
protected com.github.javaparser.ast.CompilationUnit interfaceUnit -
implementationUnit
protected com.github.javaparser.ast.CompilationUnit implementationUnit -
elements
-
rawElements
-
element
-
initializers
protected List<org.apache.commons.lang3.tuple.Triple<com.github.javaparser.ast.body.ClassOrInterfaceDeclaration,com.github.javaparser.ast.Node, initializersPrototypeDescription<com.github.javaparser.ast.body.ClassOrInterfaceDeclaration>>> -
customInitializers
-
postProcessActions
-
-
Constructor Details
-
Parsed
public Parsed()
-
-
Method Details
-
getAdditionalProperties
- Specified by:
getAdditionalPropertiesin interfacePrototypeDescription<T extends com.github.javaparser.ast.body.TypeDeclaration<T>>
-
getImplementorFullName
- Specified by:
getImplementorFullNamein interfacePrototypeDescription<T extends com.github.javaparser.ast.body.TypeDeclaration<T>>
-
getImplementation
public com.github.javaparser.ast.body.ClassOrInterfaceDeclaration getImplementation()- Specified by:
getImplementationin interfacePrototypeDescription<T extends com.github.javaparser.ast.body.TypeDeclaration<T>>
-
getInterface
public com.github.javaparser.ast.body.ClassOrInterfaceDeclaration getInterface()- Specified by:
getInterfacein interfacePrototypeDescription<T extends com.github.javaparser.ast.body.TypeDeclaration<T>>
-
getElement
- Specified by:
getElementin interfacePrototypeDescription<T extends com.github.javaparser.ast.body.TypeDeclaration<T>>
-
getPrototypeElement
- Specified by:
getPrototypeElementin interfacePrototypeDescription<T extends com.github.javaparser.ast.body.TypeDeclaration<T>>
-
findElement
- Specified by:
findElementin interfacePrototypeDescription<T extends com.github.javaparser.ast.body.TypeDeclaration<T>>
-
findElement
- Specified by:
findElementin interfacePrototypeDescription<T extends com.github.javaparser.ast.body.TypeDeclaration<T>>
-
setInterface
public void setInterface(com.github.javaparser.ast.body.ClassOrInterfaceDeclaration intf) -
setImplementation
public void setImplementation(com.github.javaparser.ast.body.ClassOrInterfaceDeclaration spec) -
registerClass
public void registerClass(String key, com.github.javaparser.ast.body.ClassOrInterfaceDeclaration declaration) - Specified by:
registerClassin interfacePrototypeDescription<T extends com.github.javaparser.ast.body.TypeDeclaration<T>>
-
getRegisteredClass
- Specified by:
getRegisteredClassin interfacePrototypeDescription<T extends com.github.javaparser.ast.body.TypeDeclaration<T>>
-
registerPostProcessAction
- Specified by:
registerPostProcessActionin interfacePrototypeDescription<T extends com.github.javaparser.ast.body.TypeDeclaration<T>>
-
processActions
public void processActions()- Specified by:
processActionsin interfacePrototypeDescription<T extends com.github.javaparser.ast.body.TypeDeclaration<T>>
-
isValid
public boolean isValid()- Specified by:
isValidin interfacePrototypeDescription<T extends com.github.javaparser.ast.body.TypeDeclaration<T>>
-
findField
- Specified by:
findFieldin interfacePrototypeDescription<T extends com.github.javaparser.ast.body.TypeDeclaration<T>>
-
addEmbeddedModifier
public void addEmbeddedModifier(net.binis.codegen.annotation.type.EmbeddedModifierType type) - Specified by:
addEmbeddedModifierin interfacePrototypeDescription<T extends com.github.javaparser.ast.body.TypeDeclaration<T>>
-
setEmbeddedModifier
public void setEmbeddedModifier(net.binis.codegen.annotation.type.EmbeddedModifierType type) - Specified by:
setEmbeddedModifierin interfacePrototypeDescription<T extends com.github.javaparser.ast.body.TypeDeclaration<T>>
-
hasOption
- Specified by:
hasOptionin interfacePrototypeDescription<T extends com.github.javaparser.ast.body.TypeDeclaration<T>>
-
hasEnricher
- Specified by:
hasEnricherin interfacePrototypeDescription<T extends com.github.javaparser.ast.body.TypeDeclaration<T>>
-
addCustomFile
- Specified by:
addCustomFilein interfacePrototypeDescription<T extends com.github.javaparser.ast.body.TypeDeclaration<T>>
-
getCustomFile
- Specified by:
getCustomFilein interfacePrototypeDescription<T extends com.github.javaparser.ast.body.TypeDeclaration<T>>
-
getCustomFiles
- Specified by:
getCustomFilesin interfacePrototypeDescription<T extends com.github.javaparser.ast.body.TypeDeclaration<T>>
-
addProperties
- Specified by:
addPropertiesin interfacePrototypeDescription<T extends com.github.javaparser.ast.body.TypeDeclaration<T>>
-
initFiles
-