Examples of newClass()


Examples of EDU.purdue.cs.bloat.context.PersistentBloatContext.newClass()

  }

  public ClassEditor createClass(int modifiers, String className,
      Type superType, Type[] Interfaces) {
    EditorContext context = new PersistentBloatContext(_loader);
    return context.newClass(modifiers, className, superType, Interfaces);
  }

  public MethodEditor createMethod(ClassEditor ce, int modiefiers,
      Class type, String methodName, Class[] params, Class[] exeptions) {
    return new MethodEditor(ce, modiefiers, type, methodName, params,
View Full Code Here

Examples of alt.jiapi.reflect.InstructionFactory.newClass()

        }
        else if ("double".equals(type)) {
            cName = "java.lang.Double";
        }

         il.add(f.newClass(cName));
         il.add(f.dup());
         Instruction ins = f.invoke(Modifier.PUBLIC, cName, "<init>", s);
         return ins;
    }
View Full Code Here

Examples of alt.jiapi.reflect.InstructionFactory.newClass()

        }
        else if ("double".equals(type)) {
            cName = "java.lang.Double";
        }

         il.add(f.newClass(cName));
         il.add(f.dup());
         Instruction ins = f.invoke(Modifier.PUBLIC, cName, "<init>", s);
         return ins;
    }
}
View Full Code Here

Examples of org.apache.hivemind.service.ClassFactory.newClass()

                .getMock();

        fp.getServiceInterface();
        fpc.setReturnValue(ToStringStrategy.class);

        factory.newClass("NewClass", Object.class);
        factoryControl.setReturnValue(cf);

        cf.addInterface(ToStringStrategy.class);
        cf.addField("_registry", StrategyRegistry.class);
View Full Code Here

Examples of org.apache.hivemind.service.ClassFactory.newClass()

        ErrorLog log = (ErrorLog) newMock(ErrorLog.class);

        fp.getServiceInterface();
        fpc.setReturnValue(Runnable.class);

        factory.newClass("NewClass", Object.class);
        factoryControl.setReturnValue(cf);

        cf.addInterface(Runnable.class);
        cf.addField("_registry", StrategyRegistry.class);
View Full Code Here

Examples of org.apache.hivemind.service.ClassFactory.newClass()

                .getMock();

        fp.getServiceInterface();
        fpc.setReturnValue(ToStringStrategy.class);

        factory.newClass("NewClass", Object.class);
        factoryControl.setReturnValue(cf);

        cf.addInterface(ToStringStrategy.class);
        cf.addField("_registry", StrategyRegistry.class);
View Full Code Here

Examples of org.apache.hivemind.service.ClassFactory.newClass()

        ErrorLog log = (ErrorLog) newMock(ErrorLog.class);

        fp.getServiceInterface();
        fpc.setReturnValue(Runnable.class);

        factory.newClass("NewClass", Object.class);
        factoryControl.setReturnValue(cf);

        cf.addInterface(Runnable.class);
        cf.addField("_registry", StrategyRegistry.class);
View Full Code Here

Examples of org.apache.hivemind.service.ClassFactory.newClass()

                ClassFactory.class);

        boolean extendBeanClass = outerProxy && !declaredInterface.isInterface();
        Class baseClass = extendBeanClass ? declaredInterface : Object.class;

        _classFab = factory.newClass(ClassFabUtils.generateClassName(_serviceInterface), baseClass);

        _classFab.addField("_extensionPointId", String.class);
       
        _classFab.addConstructor(new Class[] { String.class }, null, "{ _extensionPointId = $1; }");
       
View Full Code Here

Examples of org.apache.hivemind.service.ClassFactory.newClass()

                ClassFactory.class);

        boolean extendBeanClass = outerProxy && !declaredInterface.isInterface();
        Class baseClass = extendBeanClass ? declaredInterface : Object.class;

        _classFab = factory.newClass(ClassFabUtils.generateClassName(_serviceInterface), baseClass);

        if (!extendBeanClass)
            _classFab.addInterface(_serviceInterface);

        // Not exactly certain this will work with non-interface beans that already
View Full Code Here

Examples of org.apache.hivemind.service.ClassFactory.newClass()

        Module module = point.getModule();
        ClassFactory factory =
            (ClassFactory) module.getService("hivemind.ClassFactory", ClassFactory.class);

        _classFab = factory.newClass(ClassFabUtils.generateClassName(type), Object.class, module);

        _classFab.addInterface(_serviceInterface);
    }

    public ClassFab getClassFab()
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.