public abstract class GenerationRules extends Object
ClassModelBuilder
.
Uses the visitor pattern where a visitor is called a rule.Modifier and Type | Class and Description |
---|---|
protected class |
GenerationRules.InterfaceRule
A rule concerning the interface of a class which is processed.
|
protected class |
GenerationRules.MethodRule
A rule concerning a bean getter of a class which is processed.
|
Modifier and Type | Field and Description |
---|---|
protected io.sphere.sdk.annotations.processors.ClassModelBuilder |
builder |
protected LinkedList<GenerationRules.InterfaceRule> |
interfaceRules |
protected LinkedList<GenerationRules.MethodRule> |
methodRules |
protected TypeElement |
typeElement |
Constructor and Description |
---|
GenerationRules(TypeElement typeElement,
io.sphere.sdk.annotations.processors.ClassModelBuilder builder) |
Modifier and Type | Method and Description |
---|---|
protected void |
beforeExecute() |
protected abstract Stream<? extends Element> |
createMethodElementStream() |
void |
execute()
Applies the rules to the
ClassModelBuilder (side effects). |
protected final TypeElement typeElement
protected final io.sphere.sdk.annotations.processors.ClassModelBuilder builder
protected final LinkedList<GenerationRules.InterfaceRule> interfaceRules
protected final LinkedList<GenerationRules.MethodRule> methodRules
public GenerationRules(TypeElement typeElement, io.sphere.sdk.annotations.processors.ClassModelBuilder builder)