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