Class DefaultASTValidateableHelper

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultASTValidateableHelper

        public DefaultASTValidateableHelper()
    • Method Detail

      • addConstraintsField

        protected void addConstraintsField​(org.codehaus.groovy.ast.ClassNode classNode)
      • addGetConstraintsMethod

        protected void addGetConstraintsMethod​(org.codehaus.groovy.ast.ClassNode classNode,
                                               boolean defaultNullable)
      • getPropertiesToEnsureConstraintsFor

        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. The keys in the Map will be property names and the values are the type of the corresponding property.
        Parameters:
        classNode - the class to inspect
        Returns:
        a Map describing all of the properties which need to be constrained
      • addValidateMethod

        protected void addValidateMethod​(org.codehaus.groovy.ast.ClassNode classNode)