public class DefaultASTValidateableHelper extends java.lang.Object implements ASTValidateableHelper
Modifiers | Name | Description |
---|---|---|
private static java.lang.String |
CONSTRAINED_PROPERTIES_PROPERTY_NAME |
|
private static java.lang.String |
VALIDATE_METHOD_NAME |
Type Params | Return Type | Name and description |
---|---|---|
|
protected void |
addConstraintsField(org.codehaus.groovy.ast.ClassNode classNode) |
|
protected void |
addGetConstraintsMethod(org.codehaus.groovy.ast.ClassNode classNode, boolean defaultNullable) |
|
private void |
addStaticInitializer(org.codehaus.groovy.ast.ClassNode classNode) |
|
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. |
|
public void |
injectValidateableCode(org.codehaus.groovy.ast.ClassNode classNode, boolean defaultNullable) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Retrieves a Map describing all of the properties which need to be constrained for the class represented by classNode. The keys in the Map will be property names and the values are the type of the corresponding property.
classNode
- the class to inspect