public class DelegateMethodGenerator extends Object
Modifier and Type | Method and Description |
---|---|
static TypeSpecDataHolder |
generateDelegates(SpecModel specModel,
Map<Class<? extends Annotation>,DelegateMethodDescription> delegateMethodsMap,
EnumSet<RunMode> runMode)
Generate all delegates defined on this
SpecModel . |
static CodeBlock |
getDelegationCode(SpecModel specModel,
SpecMethodModel<DelegateMethod,Void> delegateMethod,
DelegateMethodDescription methodDescription,
EnumSet<RunMode> runMode) |
public static TypeSpecDataHolder generateDelegates(SpecModel specModel, Map<Class<? extends Annotation>,DelegateMethodDescription> delegateMethodsMap, EnumSet<RunMode> runMode)
SpecModel
.public static CodeBlock getDelegationCode(SpecModel specModel, SpecMethodModel<DelegateMethod,Void> delegateMethod, DelegateMethodDescription methodDescription, EnumSet<RunMode> runMode)