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 Details

    • processed

      protected boolean processed
    • invalid

      protected boolean invalid
    • parser

      protected com.github.javaparser.JavaParser parser
    • compiled

      protected Class<?> compiled
    • prototypeFileName

      protected String prototypeFileName
    • prototypeClassName

      protected String prototypeClassName
    • properties

      protected Structures.PrototypeDataHandler properties
    • parsedName

      protected String parsedName
    • parsedFullName

      protected String parsedFullName
    • interfaceName

      protected String interfaceName
    • interfaceFullName

      protected String interfaceFullName
    • declaration

      protected com.github.javaparser.ast.body.TypeDeclaration<T extends com.github.javaparser.ast.body.TypeDeclaration<T>> declaration
    • declarationUnit

      protected com.github.javaparser.ast.CompilationUnit declarationUnit
    • files

      protected List<com.github.javaparser.ast.CompilationUnit> files
    • custom

    • base

      protected Structures.Parsed<T extends com.github.javaparser.ast.body.TypeDeclaration<T>> base
    • mixIn

      protected Structures.Parsed<T extends com.github.javaparser.ast.body.TypeDeclaration<T>> mixIn
    • nested

      protected boolean nested
    • codeEnum

      protected boolean codeEnum
    • parentClassName

      protected String parentClassName
    • parent

      protected com.github.javaparser.ast.body.ClassOrInterfaceDeclaration parent
    • embeddedModifierType

      protected net.binis.codegen.annotation.type.EmbeddedModifierType embeddedModifierType
    • classes

      protected Map<String,com.github.javaparser.ast.body.ClassOrInterfaceDeclaration> classes
    • fields

      protected List<PrototypeField> 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
    • element

      protected Element element
    • initializers

      protected 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>>> initializers
    • customInitializers

      protected List<Consumer<com.github.javaparser.ast.stmt.BlockStmt>> customInitializers
    • postProcessActions

      protected List<Runnable> postProcessActions
  • Constructor Details

    • Parsed

      public Parsed()
  • Method Details

    • getImplementorFullName

      public String getImplementorFullName()
      Specified by:
      getImplementorFullName in interface PrototypeDescription<T extends com.github.javaparser.ast.body.TypeDeclaration<T>>
    • getImplementation

      public com.github.javaparser.ast.body.ClassOrInterfaceDeclaration getImplementation()
      Specified by:
      getImplementation in interface PrototypeDescription<T extends com.github.javaparser.ast.body.TypeDeclaration<T>>
    • getInterface

      public com.github.javaparser.ast.body.ClassOrInterfaceDeclaration getInterface()
      Specified by:
      getInterface in interface PrototypeDescription<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:
      registerClass in interface PrototypeDescription<T extends com.github.javaparser.ast.body.TypeDeclaration<T>>
    • getRegisteredClass

      public com.github.javaparser.ast.body.ClassOrInterfaceDeclaration getRegisteredClass(String key)
      Specified by:
      getRegisteredClass in interface PrototypeDescription<T extends com.github.javaparser.ast.body.TypeDeclaration<T>>
    • registerPostProcessAction

      public void registerPostProcessAction(Runnable task)
      Specified by:
      registerPostProcessAction in interface PrototypeDescription<T extends com.github.javaparser.ast.body.TypeDeclaration<T>>
    • processActions

      public void processActions()
      Specified by:
      processActions in interface PrototypeDescription<T extends com.github.javaparser.ast.body.TypeDeclaration<T>>
    • isValid

      public boolean isValid()
      Specified by:
      isValid in interface PrototypeDescription<T extends com.github.javaparser.ast.body.TypeDeclaration<T>>
    • findField

      public Optional<PrototypeField> findField(String name)
      Specified by:
      findField in interface PrototypeDescription<T extends com.github.javaparser.ast.body.TypeDeclaration<T>>
    • addEmbeddedModifier

      public void addEmbeddedModifier(net.binis.codegen.annotation.type.EmbeddedModifierType type)
      Specified by:
      addEmbeddedModifier in interface PrototypeDescription<T extends com.github.javaparser.ast.body.TypeDeclaration<T>>
    • setEmbeddedModifier

      public void setEmbeddedModifier(net.binis.codegen.annotation.type.EmbeddedModifierType type)
      Specified by:
      setEmbeddedModifier in interface PrototypeDescription<T extends com.github.javaparser.ast.body.TypeDeclaration<T>>
    • hasOption

      public boolean hasOption(Class<? extends net.binis.codegen.options.CodeOption> option)
      Specified by:
      hasOption in interface PrototypeDescription<T extends com.github.javaparser.ast.body.TypeDeclaration<T>>
    • hasEnricher

      public boolean hasEnricher(Class<? extends net.binis.codegen.enrich.Enricher> enricher)
      Specified by:
      hasEnricher in interface PrototypeDescription<T extends com.github.javaparser.ast.body.TypeDeclaration<T>>
    • addCustomFile

      public Structures.GeneratedFileHandler addCustomFile(String id)
    • getCustomFile

      public Structures.GeneratedFileHandler getCustomFile(String id)
    • initFiles

      protected static List<com.github.javaparser.ast.CompilationUnit> initFiles()