public abstract class AbstractTransformerGenerator extends AbstractMuleGenerator implements ModuleGenerator
AbstractMuleGenerator.FieldVariableElement
Modifier and Type | Field and Description |
---|---|
protected GeneratedField |
weightingField |
privateFieldnames
MULE_CONTEXT_FIELD_NAME
context
Constructor and Description |
---|
AbstractTransformerGenerator() |
Modifier and Type | Method and Description |
---|---|
List<Product> |
consumes() |
protected abstract void |
doTransformImplementation(GeneratedMethod doTransformMethod,
GeneratedVariable srcParam,
GeneratedVariable encodingParam,
Map<String,GeneratedField> additionalFields)
Generate the method body of the doTransform method.
|
void |
generate(Module module) |
protected abstract Map<String,GeneratedField> |
generateAdditionalFields(GeneratedClass transformerClass)
Generate any additional fields necessary which will be made available to the
doTransformImplementation method
|
protected abstract Class<?> |
getDestionationClass()
Returns the destination class of the Transformer class to generate
|
protected abstract Class<?> |
getSourceClass()
Returns the source class of the Transformer class to generate
|
protected abstract String |
getTransformerClassName()
Returns the name of the Transformer class to generate
|
List<Product> |
produces() |
boolean |
shouldGenerate(Module module) |
declareNestedProcessorParameter, declareTransformedVariable, declareTransformedVariable, generateCustomConstructor, generateFieldForEachParameter, generateFieldForModuleObject, generateInitialiseMethod, generateProcessorFieldForEachParameter, generateSetFlowConstructMethod, generateSetMuleContextMethod, generateStandardFieldForEachParameter, generateStandardFieldForEachParameter, generateThrow, generateThrow, getModuleObject, getModuleObject, getModuleObject, getModuleObject, getPrivateFieldnames
generateIsCapableOfMethod
generateLoggerField, ref, ref, ref, ref
ctx, setCtx
protected GeneratedField weightingField
protected abstract String getTransformerClassName()
protected abstract Class<?> getSourceClass()
protected abstract Class<?> getDestionationClass()
protected abstract Map<String,GeneratedField> generateAdditionalFields(GeneratedClass transformerClass)
protected abstract void doTransformImplementation(GeneratedMethod doTransformMethod, GeneratedVariable srcParam, GeneratedVariable encodingParam, Map<String,GeneratedField> additionalFields)
public boolean shouldGenerate(Module module)
shouldGenerate
in interface ModuleGenerator
public void generate(Module module)
generate
in interface ModuleGenerator
Copyright © 2010–2015 MuleSoft, Inc.. All rights reserved.