Examples of IReflectionManager


Examples of net.sourceforge.javautil.common.reflection.IReflectionManager

    synchronized (this.fields) {
      if (this.initializedFields == Boolean.TRUE) return;
      this.initializedFields = Boolean.FALSE;
     
      Class sc = clazz;
      IReflectionManager manager = ReflectionContext.getReflectionManager();
      while (sc != null) {
        for (Field field : manager.getDeclaredFields(sc)) {
          if (!this.fields.containsKey(field.getName())) this.fields.put(field.getName(), new ArrayList<ClassField>());
          this.fields.get(field.getName()).add( new ClassField(field, this) );
        }
        sc = sc.getSuperclass();
      }
View Full Code Here

Examples of net.sourceforge.javautil.common.reflection.IReflectionManager

    synchronized (this.methods) {
      if (this.initializedMethods == Boolean.TRUE) return;
      this.initializedMethods = Boolean.FALSE;
     
      try {
        IReflectionManager manager = ReflectionContext.getReflectionManager();
        Set<Class<?>> supers = clazz.isInterface() ? ReflectionUtil.extractInterfaces(clazz) : ReflectionUtil.extractSuperclasses(clazz);
        for (Class<?> sc : supers) {
          for (Method method : manager.getDeclaredMethods(sc)) {
            String name = method.getName();
            ClassMethod cmethod = null;
           
            if (!methods.containsKey(name)) methods.put(name, new ArrayList<ClassMethod>());
            else {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.