P
- The parameter type processed by this processorR
- The return type created by this processorpublic interface ModelElementProcessor<P,R>
TypeElement
, performing validity checks or
generating the output source file.Modifier and Type | Interface and Description |
---|---|
static interface |
ModelElementProcessor.ProcessorContext
Context object passed to
process(ProcessorContext, TypeElement, Object)
providing access to common infrastructure objects such as Types
etc. |
Modifier and Type | Method and Description |
---|---|
int |
getPriority()
Returns the priority value of this processor which must be between 1
(highest priority) and 10000 (lowest priority).
|
R |
process(ModelElementProcessor.ProcessorContext context,
TypeElement mapperTypeElement,
P sourceModel)
Processes the given source element, representing a Java bean mapper in
one form or another.
|
R process(ModelElementProcessor.ProcessorContext context, TypeElement mapperTypeElement, P sourceModel)
context
- Context providing common infrastructure objects.mapperTypeElement
- The original type element from which the given mapper object
is derived.sourceModel
- The current representation of the bean mapper. Never
null
(the very first processor receives the original
type element).null
except for the very last processor which
generates the resulting Java source file.int getPriority()
Mapper
model must have a priority > 1000.Copyright © 2012-2015 Gunnar Morling; All rights reserved. Released under the Apache Software License 2.0.