Examples of toClass()


Examples of org.apache.tapestry5.services.ClassTransformation.toClass()

        replay();

        ClassTransformation ct = createClassTransformation(AnnotatedPage.class, logger);

        assertSame(ct.toClass("java.util.Map"), Map.class);

        verify();
    }

    @Test
View Full Code Here

Examples of org.apache.tapestry5.services.ClassTransformation.toClass()

        replay();

        ClassTransformation ct = createClassTransformation(AnnotatedPage.class, logger);

        assertSame(ct.toClass("float"), Float.class);

        verify();
    }

    @Test
View Full Code Here

Examples of org.hibernate.annotations.common.reflection.ReflectionManager.toClass()

        searchConfig.getReflectionManager(),
        context
    );

    try {
      metadataProvider.getTypeMetadataFor( reflectionManager.toClass( xclass ) );
      fail();
    }
    catch (SearchException e) {
      assertTrue(
          "Wrong error message",
View Full Code Here

Examples of org.hotswap.agent.javassist.CtClass.toClass()

        ClassPool classPool = ClassPool.getDefault();
        classPool.appendSystemPath();

        CtClass clazz = classPool.makeClass("Test");
        clazz.addMethod(CtNewMethod.make("public void test() {" + s + "}", clazz));
        Class<?> testClass = clazz.toClass();


        Method testMethod = testClass.getDeclaredMethod("test");
        testMethod.invoke(testClass.newInstance());
View Full Code Here

Examples of org.more.classcode.aop.AopClassConfig.toClass()

        HasorBindInfoProviderAdapter<T> infoAdapter = (HasorBindInfoProviderAdapter<T>) bindInfo;
        try {
            AopClassConfig cc = infoAdapter.buildEngine(this.aopList);
            Class<?> newType = null;
            if (cc.hasChange() == true) {
                newType = cc.toClass();
            } else {
                newType = cc.getSuperClass();
            }
            return (T) createObject((Class<T>) newType, infoAdapter);
        } catch (Exception e) {
View Full Code Here

Examples of org.more.classcode.delegate.faces.MethodClassConfig.toClass()

        //
        write(aCC);
        write(pCC);
        write(mCC);
        //
        Class<?> ccType = mCC.toClass();
        Bean bean = (Bean) ccType.newInstance();
        //
        bean.print(0, 0);
        //
        PropertyDescriptor pd = new PropertyDescriptor("name", ccType);
View Full Code Here

Examples of org.more.classcode.delegate.property.PropertyClassConfig.toClass()

        aCC.addAopInterceptor(new TestAopInterceptor());
        //
        PropertyClassConfig pCC = new PropertyClassConfig(aCC.toClass());
        pCC.addProperty("name", new TestSimplePropertyDelegate(String.class));
        //
        MethodClassConfig mCC = new MethodClassConfig(pCC.toClass());
        mCC.addDelegate(List.class, new DefaultMethodDelegate());
        //
        write(aCC);
        write(pCC);
        write(mCC);
View Full Code Here

Examples of ptolemy.backtrack.eclipse.ast.Type.toClass()

        // Get the class of the owner and test the modifiers of the field.
        Class ownerClass;
        boolean isStatic;

        try {
            ownerClass = owner.toClass(state.getClassLoader());

            Field field = ownerClass.getDeclaredField(name.getIdentifier());
            int modifiers = field.getModifiers();

            if (!java.lang.reflect.Modifier.isPrivate(modifiers)) {
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.