public static class EventCaseGenerator.Builder extends Object
Modifier and Type | Method and Description |
---|---|
EventCaseGenerator.Builder |
contextClass(ClassName contextClass) |
EventCaseGenerator.Builder |
eventMethodModels(ImmutableList<SpecMethodModel<EventMethod,EventDeclarationModel>> eventMethodModels) |
EventCaseGenerator.Builder |
withErrorPropagation(boolean withErrorPropagation) |
void |
writeTo(MethodSpec.Builder methodBuilder) |
public EventCaseGenerator.Builder contextClass(ClassName contextClass)
public EventCaseGenerator.Builder eventMethodModels(ImmutableList<SpecMethodModel<EventMethod,EventDeclarationModel>> eventMethodModels)
public EventCaseGenerator.Builder withErrorPropagation(boolean withErrorPropagation)
public void writeTo(MethodSpec.Builder methodBuilder)