Examples of parameterTypes()


Examples of com.gwtent.reflection.client.HasReflect.parameterTypes()

            addClassIfNotExists(type, reflectable);
          }
        }
       
       
        if (need || (hasReflect != null && hasReflect.parameterTypes())){
          for (JParameter parameter :method.getParameters()){
            if (parameter.getType() != null && parameter.getType().isClassOrInterface() != null){
              type = parameter.getType().isClassOrInterface();
             
              if (! type.isAssignableTo(classType))
View Full Code Here

Examples of org.glassfish.gmbal.typelib.EvaluatedMethodDeclaration.parameterTypes()

        AttributeType atype = null ;
        if (decl instanceof EvaluatedMethodDeclaration) {
            EvaluatedMethodDeclaration method =
                (EvaluatedMethodDeclaration)decl ;

            final List<EvaluatedType> atypes = method.parameterTypes() ;

            if (method.returnType().equals( EvaluatedType.EVOID )) {
                if (atypes.size() != 1) {
                    return null ;
                }
View Full Code Here

Examples of org.glassfish.gmbal.typelib.EvaluatedMethodDeclaration.parameterTypes()

        EvaluatedMethodDeclaration meth = findMethod( eca, mname ) ;

        if (meth == null) {
            return null ;
        } else {
            if (pindex < meth.parameterTypes().size()) {
                return meth.parameterTypes().get( pindex ) ;
            } else {
                throw new IndexOutOfBoundsException(
                    "Parameter index is out of bounds" ) ;
            }
View Full Code Here

Examples of org.glassfish.gmbal.typelib.EvaluatedMethodDeclaration.parameterTypes()

        if (meth == null) {
            return null ;
        } else {
            if (pindex < meth.parameterTypes().size()) {
                return meth.parameterTypes().get( pindex ) ;
            } else {
                throw new IndexOutOfBoundsException(
                    "Parameter index is out of bounds" ) ;
            }
        }
View Full Code Here

Examples of org.mojavemvc.core.ActionSignature.parameterTypes()

    public void noParameters() {

        ActionSignature sig = new BaseActionSignature(1, "testAction", new Class[] {},
                new Annotation[][] {}, new Annotation[]{});

        assertEquals(0, sig.parameterTypes().length);
        assertEquals(0, sig.getArgs(new HashMap<String, Object>(), null).length);
    }

    @Test
    public void getArgsWithStringArrayParameters() {
View Full Code Here

Examples of org.mojavemvc.core.ActionSignature.parameterTypes()

        parameterMap.put("p2", new String[] { "123" });
        parameterMap.put("p3", new String[] { "1.23" });
        parameterMap.put("p4", new String[] { "2011-03-01" });
        parameterMap.put("p5", new String[] { "123456" });

        Class<?>[] paramTypes = sig.parameterTypes();
        assertEquals(6, paramTypes.length);
        assertEquals(String.class, paramTypes[0]);
        assertEquals(Integer.class, paramTypes[1]);
        assertEquals(Double.class, paramTypes[2]);
        assertEquals(Date.class, paramTypes[3]);
View Full Code Here

Examples of org.mojavemvc.core.ActionSignature.parameterTypes()

        parameterMap.put("p3", 1.23);
        parameterMap.put("p4", Date.valueOf("2011-03-01"));
        parameterMap.put("p5", userDefinedType);
        parameterMap.put("p6", 123456L);

        Class<?>[] paramTypes = sig.parameterTypes();
        assertEquals(6, paramTypes.length);
        assertEquals(String.class, paramTypes[0]);
        assertEquals(Integer.class, paramTypes[1]);
        assertEquals(Double.class, paramTypes[2]);
        assertEquals(Date.class, paramTypes[3]);
View Full Code Here

Examples of org.mojavemvc.core.ActionSignature.parameterTypes()

        FastClass fastClass = FastClass.create(clazz);
        int fastIndex = fastClass.getIndex(methodName, new Class<?>[] {});
        ActionSignature sig = mock(ActionSignature.class);
        when(sig.fastIndex()).thenReturn(fastIndex);
        when(sig.parameterTypes()).thenReturn(new Class<?>[] {});
        when(sig.methodName()).thenReturn(methodName);
        when(sig.getArgs(parametersMap, req.getInputStream())).thenReturn(new Object[] {});
       
        if (action == null) {
            when(sig.getInterceptorClasses(db, cntrl.getClass(), "")).thenReturn(
View Full Code Here

Examples of org.mojavemvc.core.BaseActionSignature.parameterTypes()

    public void noParameters() {

        ActionSignature sig = new BaseActionSignature(1, "testAction", new Class[] {},
                new Annotation[][] {}, new Annotation[]{});

        assertEquals(0, sig.parameterTypes().length);
        assertEquals(0, sig.getArgs(new HashMap<String, Object>(), null).length);
    }

    @Test
    public void getArgsWithStringArrayParameters() {
View Full Code Here

Examples of org.mojavemvc.core.BaseActionSignature.parameterTypes()

        parameterMap.put("p2", new String[] { "123" });
        parameterMap.put("p3", new String[] { "1.23" });
        parameterMap.put("p4", new String[] { "2011-03-01" });
        parameterMap.put("p5", new String[] { "123456" });

        Class<?>[] paramTypes = sig.parameterTypes();
        assertEquals(6, paramTypes.length);
        assertEquals(String.class, paramTypes[0]);
        assertEquals(Integer.class, paramTypes[1]);
        assertEquals(Double.class, paramTypes[2]);
        assertEquals(Date.class, paramTypes[3]);
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.