Class PrototypeLookupHandler
java.lang.Object
net.binis.codegen.generation.core.PrototypeLookupHandler
- All Implemented Interfaces:
PrototypeLookup
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPrototypeMap(PrototypeDescription<com.github.javaparser.ast.body.ClassOrInterfaceDeclaration> parsed, Map<String, PrototypeDescription<com.github.javaparser.ast.body.ClassOrInterfaceDeclaration>> prototypeMap) voidvoidclean()custom()voidPrototypeDescription<com.github.javaparser.ast.body.ClassOrInterfaceDeclaration>findByInterfaceName(String name) PrototypeDescription<com.github.javaparser.ast.body.ClassOrInterfaceDeclaration>PrototypeDescription<com.github.javaparser.ast.body.ClassOrInterfaceDeclaration>findExternal(String prototype) PrototypeDescription<com.github.javaparser.ast.body.ClassOrInterfaceDeclaration>findGenerated(String prototype) List<PrototypeDescription<com.github.javaparser.ast.body.ClassOrInterfaceDeclaration>>findGeneratedByFileName(String fileName) com.github.javaparser.ast.body.TypeDeclarationfindGeneratedClass(String name) PrototypeDescription<com.github.javaparser.ast.body.ClassOrInterfaceDeclaration>findParsed(String prototype) Collection<PrototypeDescription<com.github.javaparser.ast.body.ClassOrInterfaceDeclaration>>booleanisExternal(String prototype) booleanisGenerated(String prototype) booleanvoidCollection<PrototypeDescription<com.github.javaparser.ast.body.ClassOrInterfaceDeclaration>>parsed()voidregisterExternalLookup(UnaryOperator<String> lookup) voidregisterGenerated(String prototype, PrototypeDescription<com.github.javaparser.ast.body.ClassOrInterfaceDeclaration> generated) voidregisterGeneratedClass(String prototype, com.github.javaparser.ast.body.TypeDeclaration generated) voidregisterParsed(String prototype, PrototypeDescription<?> parsed) voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.binis.codegen.enrich.PrototypeLookup
getParser, getProcessingEnvironment, getRoundEnvironment, setProcessingEnvironment, setRoundEnvironment
-
Constructor Details
-
PrototypeLookupHandler
public PrototypeLookupHandler()
-
-
Method Details
-
registerParsed
- Specified by:
registerParsedin interfacePrototypeLookup
-
registerGenerated
public void registerGenerated(String prototype, PrototypeDescription<com.github.javaparser.ast.body.ClassOrInterfaceDeclaration> generated) - Specified by:
registerGeneratedin interfacePrototypeLookup
-
registerGeneratedClass
public void registerGeneratedClass(String prototype, com.github.javaparser.ast.body.TypeDeclaration generated) - Specified by:
registerGeneratedClassin interfacePrototypeLookup
-
registerExternalLookup
- Specified by:
registerExternalLookupin interfacePrototypeLookup
-
createCustomDescription
- Specified by:
createCustomDescriptionin interfacePrototypeLookup
-
getCustomDescription
- Specified by:
getCustomDescriptionin interfacePrototypeLookup
-
custom
- Specified by:
customin interfacePrototypeLookup
-
findParsed
public PrototypeDescription<com.github.javaparser.ast.body.ClassOrInterfaceDeclaration> findParsed(String prototype) - Specified by:
findParsedin interfacePrototypeLookup
-
findGenerated
public PrototypeDescription<com.github.javaparser.ast.body.ClassOrInterfaceDeclaration> findGenerated(String prototype) - Specified by:
findGeneratedin interfacePrototypeLookup
-
findGeneratedClass
- Specified by:
findGeneratedClassin interfacePrototypeLookup
-
findExternal
public PrototypeDescription<com.github.javaparser.ast.body.ClassOrInterfaceDeclaration> findExternal(String prototype) - Specified by:
findExternalin interfacePrototypeLookup
-
findByInterfaceName
public PrototypeDescription<com.github.javaparser.ast.body.ClassOrInterfaceDeclaration> findByInterfaceName(String name) - Specified by:
findByInterfaceNamein interfacePrototypeLookup
-
findEnum
public PrototypeDescription<com.github.javaparser.ast.body.ClassOrInterfaceDeclaration> findEnum(String generated) - Specified by:
findEnumin interfacePrototypeLookup
-
findField
- Specified by:
findFieldin interfacePrototypeLookup
-
isParsed
- Specified by:
isParsedin interfacePrototypeLookup
-
isGenerated
- Specified by:
isGeneratedin interfacePrototypeLookup
-
isExternal
- Specified by:
isExternalin interfacePrototypeLookup
-
parsed
public Collection<PrototypeDescription<com.github.javaparser.ast.body.ClassOrInterfaceDeclaration>> parsed()- Specified by:
parsedin interfacePrototypeLookup
-
generated
public Collection<PrototypeDescription<com.github.javaparser.ast.body.ClassOrInterfaceDeclaration>> generated()- Specified by:
generatedin interfacePrototypeLookup
-
addPrototypeMap
public void addPrototypeMap(PrototypeDescription<com.github.javaparser.ast.body.ClassOrInterfaceDeclaration> parsed, Map<String, PrototypeDescription<com.github.javaparser.ast.body.ClassOrInterfaceDeclaration>> prototypeMap) - Specified by:
addPrototypeMapin interfacePrototypeLookup
-
calcPrototypeMaps
public void calcPrototypeMaps()- Specified by:
calcPrototypeMapsin interfacePrototypeLookup
-
findGeneratedByFileName
public List<PrototypeDescription<com.github.javaparser.ast.body.ClassOrInterfaceDeclaration>> findGeneratedByFileName(String fileName) - Specified by:
findGeneratedByFileNamein interfacePrototypeLookup
-
clean
public void clean() -
error
- Specified by:
errorin interfacePrototypeLookup
-
warn
- Specified by:
warnin interfacePrototypeLookup
-
note
- Specified by:
notein interfacePrototypeLookup
-