Class BaseMethodCmBuilder
-
- All Implemented Interfaces:
-
pl.metaprogramming.codegen.java.base.IMethodCmBuilder
public abstract class BaseMethodCmBuilder<T extends Object> extends MethodCmBuilder<T>
-
-
Field Summary
Fields Modifier and Type Field Description private ClassNameFormatter
classNameFormatter
private final CodeBuffer
codeBuf
private final JavaNameMapper
nameMapper
private final Dependencies
dependencies
private final CodegenParams
params
private BuildContext<?>
context
private ClassCm
classCm
private final MethodCm
methodCm
private final T
model
-
Constructor Summary
Constructors Constructor Description BaseMethodCmBuilder(T model)
-
Method Summary
-
Methods inherited from class pl.metaprogramming.codegen.java.base.MethodCmBuilder
getClassCm, getContext, getMethodCm, getModel, make, makeDeclaration, makeDeclaration, setClassCm, setContext
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
BaseMethodCmBuilder
BaseMethodCmBuilder(T model)
-
-
Method Detail
-
getClassNameFormatter
final ClassNameFormatter getClassNameFormatter()
-
setClassNameFormatter
final Unit setClassNameFormatter(ClassNameFormatter classNameFormatter)
-
getCodeBuf
final CodeBuffer getCodeBuf()
-
getNameMapper
final JavaNameMapper getNameMapper()
-
getDependencies
final Dependencies getDependencies()
-
getParams
final CodegenParams getParams()
-
makeImplBody
abstract String makeImplBody()
-
makeImplementation
Unit makeImplementation()
-
getClass
@JvmOverloads() final ClassCd getClass(Object typeOfCode, Object model)
-
getClass
@JvmOverloads() final ClassCd getClass(Object typeOfCode)
-
classLocator
final ClassLocator classLocator(Object typeOfCode)
-
mapping
@JvmOverloads() final MappingExpressionBuilder mapping(Object model)
-
mapping
@JvmOverloads() final MappingExpressionBuilder mapping()
-
injectDependency
final FieldCm injectDependency(ClassCd classCd)
-
componentRef
@JvmOverloads() final String componentRef(Object typeOfCode, String fieldName)
-
componentRef
@JvmOverloads() final String componentRef(Object typeOfCode)
-
callComponent
final String callComponent(Object typeOfCode, String callExp)
-
addVarDeclaration
final String addVarDeclaration(FieldCm field)
-
addVarDeclaration
final String addVarDeclaration(String varName, ClassCd varType, String varExp)
-
ofNullable
final String ofNullable(String expression)
-
-
-
-