Package org.apache.velocity.util.introspection

Examples of org.apache.velocity.util.introspection.Info


        uberspect.init();
    }

    @Test
    public void get() throws Exception {
        VelPropertyGet getMethod = uberspect.getPropertyGet(new MyClass1(), "object", new Info("test.vm", 1, 1));
        assertEquals("get", getMethod.getMethodName());
    }
View Full Code Here


        assertEquals("get", getMethod.getMethodName());
    }

    @Test
    public void map_get() throws Exception {
        VelPropertyGet getMethod = uberspect.getPropertyGet(new MyClass1_1(), "object", new Info("test.vm", 1, 1));
        assertEquals("get", getMethod.getMethodName());
    }
View Full Code Here

        assertEquals("get", getMethod.getMethodName());
    }

    @Test
    public void isObject() throws Exception {
        VelPropertyGet getMethod = uberspect.getPropertyGet(new MyClass2(), "object", new Info("test.vm", 1, 1));
        assertEquals("isObject", getMethod.getMethodName());
    }
View Full Code Here

        assertEquals("isObject", getMethod.getMethodName());
    }

    @Test
    public void isobject() throws Exception {
        VelPropertyGet getMethod = uberspect.getPropertyGet(new MyClass2_1(), "object", new Info("test.vm", 1, 1));
        assertEquals("isobject", getMethod.getMethodName());
    }
View Full Code Here

        assertEquals("isobject", getMethod.getMethodName());
    }

    @Test
    public void getObject() throws Exception {
        VelPropertyGet getMethod = uberspect.getPropertyGet(new MyClass3(), "object", new Info("test.vm", 1, 1));
        assertEquals("getObject", getMethod.getMethodName());
    }
View Full Code Here

        assertEquals("getObject", getMethod.getMethodName());
    }

    @Test
    public void getobject() throws Exception {
        VelPropertyGet getMethod = uberspect.getPropertyGet(new MyClass3_1(), "object", new Info("test.vm", 1, 1));
        assertEquals("getobject", getMethod.getMethodName());
    }
View Full Code Here

        throws Exception
    {
        super.init(context, data);

        if(uberInfo == null) {
          uberInfo = new Info(context.getCurrentTemplateName(),
                  getLine(), getColumn());
        }

        return data;
    }
View Full Code Here

                 */

                for (int j = 0; j < paramCount; j++)
                    params[j] = jjtGetChild(j + 1).value(context);

                method = rsvc.getUberspect().getMethod(o, methodName, params, new Info("",1,1));

                if (method != null)
                {   
                    icd = new IntrospectionCacheData();
                    icd.contextData = c;
View Full Code Here

        /*
         * make an uberinfo - saves new's later on
         */
        if(uberInfo == null) {
        uberInfo = new Info(context.getCurrentTemplateName(),
                getLine(),getColumn());
        }

        return data;
    }
View Full Code Here

        /*
         * make an uberinfo - saves new's later on
         */

        uberInfo = new Info(context.getCurrentTemplateName(),
                getLine(),getColumn());
    }
View Full Code Here

TOP

Related Classes of org.apache.velocity.util.introspection.Info

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.