public class ControllerMethodSignatureRule extends Object implements Rule<com.sun.codemodel.JDefinedClass,com.sun.codemodel.JMethod,ApiActionMetadata>
| Constructor and Description |
|---|
ControllerMethodSignatureRule(Rule<com.sun.codemodel.JDefinedClass,com.sun.codemodel.JType,ApiActionMetadata> responseTypeRule,
Rule<CodeModelHelper.JExtMethod,com.sun.codemodel.JMethod,ApiActionMetadata> paramsRule) |
| Modifier and Type | Method and Description |
|---|---|
com.sun.codemodel.JMethod |
apply(ApiActionMetadata endpointMetadata,
com.sun.codemodel.JDefinedClass generatableType)
Add whatever Java source is required to the given generatable to
represent this rule.
|
public ControllerMethodSignatureRule(Rule<com.sun.codemodel.JDefinedClass,com.sun.codemodel.JType,ApiActionMetadata> responseTypeRule, Rule<CodeModelHelper.JExtMethod,com.sun.codemodel.JMethod,ApiActionMetadata> paramsRule)
public com.sun.codemodel.JMethod apply(ApiActionMetadata endpointMetadata, com.sun.codemodel.JDefinedClass generatableType)
Ruleapply in interface Rule<com.sun.codemodel.JDefinedClass,com.sun.codemodel.JMethod,ApiActionMetadata>endpointMetadata - The meta data from which the code is build.generatableType - A code generation construct to which this rule should be appliedCopyright © 2017. All rights reserved.