Package io.automatiko.engine.codegen
Class AbstractGenerator
- java.lang.Object
-
- io.automatiko.engine.codegen.AbstractGenerator
-
- All Implemented Interfaces:
Generator
- Direct Known Subclasses:
DecisionCodegen,PersistenceGenerator,ProcessCodegen
public abstract class AbstractGenerator extends java.lang.Object implements Generator
-
-
Field Summary
Fields Modifier and Type Field Description protected GeneratorContextcontextprotected java.nio.file.PathprojectDirectory
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GeneratorContextcontext()java.util.Map<java.lang.String,java.lang.String>getLabels()booleanisFunctionFlowProject()booleanisFunctionProject()booleanisServiceProject()protected booleanonClasspath(java.lang.String clazz)voidsetContext(GeneratorContext context)voidsetProjectDirectory(java.nio.file.Path projectDirectory)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.automatiko.engine.codegen.Generator
generate, section, setDependencyInjection, setPackageName, updateConfig
-
-
-
-
Field Detail
-
projectDirectory
protected java.nio.file.Path projectDirectory
-
context
protected GeneratorContext context
-
-
Method Detail
-
setProjectDirectory
public void setProjectDirectory(java.nio.file.Path projectDirectory)
- Specified by:
setProjectDirectoryin interfaceGenerator
-
setContext
public void setContext(GeneratorContext context)
- Specified by:
setContextin interfaceGenerator
-
context
public GeneratorContext context()
-
getLabels
public final java.util.Map<java.lang.String,java.lang.String> getLabels()
-
isServiceProject
public boolean isServiceProject()
-
isFunctionProject
public boolean isFunctionProject()
-
isFunctionFlowProject
public boolean isFunctionFlowProject()
-
onClasspath
protected boolean onClasspath(java.lang.String clazz)
-
-