public class DefaultASTValidateableHelper extends java.lang.Object implements ASTValidateableHelper
| Constructor and Description |
|---|
DefaultASTValidateableHelper() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addConstraintsField(org.codehaus.groovy.ast.ClassNode classNode) |
protected void |
addGetConstraintsMethod(org.codehaus.groovy.ast.ClassNode classNode,
boolean defaultNullable) |
protected void |
addValidateMethod(org.codehaus.groovy.ast.ClassNode classNode) |
protected java.util.Map<java.lang.String,org.codehaus.groovy.ast.ClassNode> |
getPropertiesToEnsureConstraintsFor(org.codehaus.groovy.ast.ClassNode classNode)
Retrieves a Map describing all of the properties which need to be constrained for the class
represented by classNode.
|
void |
injectValidateableCode(org.codehaus.groovy.ast.ClassNode classNode,
boolean defaultNullable) |
public void injectValidateableCode(org.codehaus.groovy.ast.ClassNode classNode,
boolean defaultNullable)
injectValidateableCode in interface ASTValidateableHelperprotected void addConstraintsField(org.codehaus.groovy.ast.ClassNode classNode)
protected void addGetConstraintsMethod(org.codehaus.groovy.ast.ClassNode classNode,
boolean defaultNullable)
protected java.util.Map<java.lang.String,org.codehaus.groovy.ast.ClassNode> getPropertiesToEnsureConstraintsFor(org.codehaus.groovy.ast.ClassNode classNode)
classNode - the class to inspectprotected void addValidateMethod(org.codehaus.groovy.ast.ClassNode classNode)