Package net.sourceforge.javautil.groovy.dsl

Examples of net.sourceforge.javautil.groovy.dsl.GroovyDSL


  public GroovyDSLMethod findMethod(MetaClass clazz, Object instance, String name, Object... arguments) {
    List<GroovyDSL> dsls = this.lookup.get(instance instanceof Class ? "java.lang.Class" : clazz.getTheClass().getName());
    if (dsls != null) {
      Iterator<GroovyDSL> dsli = dsls.iterator();
      while (dsli.hasNext()) {
        GroovyDSL dsl = dsli.next();
        GroovyDSLMethod method = dsl.getMethod(clazz, instance, name, arguments);
        if (method != null) return method;
      }
    }
    return null;
  }
View Full Code Here


  public GroovyDSLProperty findProperty(MetaClass clazz, Object instance, String name) {
    List<GroovyDSL> dsls = this.lookup.get(instance instanceof Class ? "java.lang.Class" : clazz.getTheClass().getName());
    if (dsls != null) {
      Iterator<GroovyDSL> dsli = dsls.iterator();
      while (dsli.hasNext()) {
        GroovyDSL dsl = dsli.next();
        GroovyDSLProperty property = dsl.getProperty(clazz, instance, name);
        if (property != null) return property;
      }
    }
    return null;
  }
View Full Code Here

TOP

Related Classes of net.sourceforge.javautil.groovy.dsl.GroovyDSL

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.