Groovy Documentation

org.grails.plugin.platform.conventions
[Groovy] Class StandardDSLBuilder

java.lang.Object
  org.grails.plugin.platform.conventions.StandardDSLBuilder

class StandardDSLBuilder

Builder that evaluates a DSL Closure and produces a structure representing the method calls and property access, with child nodes for methods taking a closure Just instantiate this and call build() with the DSL closure. Iteratate over the List you get back, checking the type of nodes to see what calls were made. NOTE: DSLCommand is polymorphic so if using in if/switch statements be careful of ordering - put more specific types FIRST to avoid surprises


Property Summary
java.lang.Object grailsApplication

java.lang.Object log

 
Constructor Summary
StandardDSLBuilder()

 
Method Summary
java.util.List build(groovy.lang.Closure c, java.lang.Object args = null)

 
Methods inherited from class java.lang.Object
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), 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()
 

Property Detail

grailsApplication

java.lang.Object grailsApplication


log

final java.lang.Object log


 
Constructor Detail

StandardDSLBuilder

StandardDSLBuilder()


 
Method Detail

build

java.util.List build(groovy.lang.Closure c, java.lang.Object args = null)


 

Groovy Documentation