ro.isdc.wro.extensions.model.factory
Class GroovyModelParser

java.lang.Object
  extended by ro.isdc.wro.extensions.model.factory.GroovyModelParser
All Implemented Interfaces:
groovy.lang.GroovyObject

public class GroovyModelParser
extends Object
implements groovy.lang.GroovyObject

Parse a Groovy DSL String into a WroModel.

Since:
1.4.0
Author:
Romain Philibert

Constructor Summary
GroovyModelParser()
           
 
Method Summary
 groovy.lang.MetaClass getMetaClass()
           
 Object getProperty(String name)
           
 Object invokeMethod(String name, Object args)
           
static WroModel parse(groovy.lang.Script dslScript)
          Parse a groovy DSL into a WroModel
static WroModel parse(String dsl)
          Parse a groovy DSL into a WroModel
 void setMetaClass(groovy.lang.MetaClass metaClass)
           
 void setProperty(String name, Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroovyModelParser

public GroovyModelParser()
Method Detail

parse

public static WroModel parse(groovy.lang.Script dslScript)
Parse a groovy DSL into a WroModel


parse

public static WroModel parse(String dsl)
Parse a groovy DSL into a WroModel


getMetaClass

public groovy.lang.MetaClass getMetaClass()
Specified by:
getMetaClass in interface groovy.lang.GroovyObject

setMetaClass

public void setMetaClass(groovy.lang.MetaClass metaClass)
Specified by:
setMetaClass in interface groovy.lang.GroovyObject

invokeMethod

public Object invokeMethod(String name,
                           Object args)
Specified by:
invokeMethod in interface groovy.lang.GroovyObject

getProperty

public Object getProperty(String name)
Specified by:
getProperty in interface groovy.lang.GroovyObject

setProperty

public void setProperty(String name,
                        Object value)
Specified by:
setProperty in interface groovy.lang.GroovyObject


Copyright © 2008-2013. All Rights Reserved.