Package org.apache.tapestry5.plastic

Examples of org.apache.tapestry5.plastic.MethodDescription


    {
        check();

        assert method != null;

        MethodDescription description = method.getDescription();

        return invokeVirtual(method.getPlasticClass().getClassName(), description.returnType, description.methodName,
                description.argumentTypes);
    }
View Full Code Here


        for (int i = 0; i < exceptionClassNames.length; i++)
        {
            exceptionClassNames[i] = exceptions.get(i).replace('/', '.');
        }

        return new MethodDescription(node.access, returnType, node.name, arguments, node.signature, exceptionClassNames);
    }
View Full Code Here

        assert PlasticInternalUtils.isNonBlank(typeName);
        assert PlasticInternalUtils.isNonBlank(suggestedName);

        String name = makeUnique(methodNames, suggestedName);

        MethodDescription description = new MethodDescription(Modifier.PRIVATE, typeName, name, argumentTypes, null,
                exceptionTypes);

        return introduceMethod(description);
    }
View Full Code Here

                description.argumentTypes, description.checkedExceptionTypes);
    }

    private static MethodDescription toMethodDescription(TransformMethodSignature signature)
    {
        return new MethodDescription(signature.getModifiers(), signature.getReturnType(), signature.getMethodName(),
                signature.getParameterTypes(), signature.getSignature(), signature.getExceptionTypes());
    }
View Full Code Here

        return support.isRootTransformation();
    }

    public TransformMethod getOrCreateMethod(TransformMethodSignature signature)
    {
        MethodDescription md = toMethodDescription(signature);

        PlasticMethod plasticMethod = plasticClass.introduceMethod(md);

        return new BridgeTransformMethod(plasticMethod);
    }
View Full Code Here

        return new BridgeTransformMethod(plasticMethod);
    }

    public boolean isDeclaredMethod(TransformMethodSignature signature)
    {
        final MethodDescription md = toMethodDescription(signature);

        return !F.flow(plasticClass.getMethods()).filter(new Predicate<PlasticMethod>()
        {
            public boolean accept(PlasticMethod element)
            {
View Full Code Here

    private EventHandlerMethodInvoker toInvoker(final String componentClassName, PlasticMethod method)
    {
        OnEvent annotation = method.getAnnotation(OnEvent.class);

        final MethodDescription description = method.getDescription();

        String methodName = description.methodName;

        String eventType = extractEventType(methodName, annotation);
        String componentId = extractComponentId(methodName, annotation);
View Full Code Here

        }
    }

    private static MethodDescription getMethodDescription(Class containingClass, String name, Class... parameterTypes)
    {
        return new MethodDescription(getMethod(containingClass, name, parameterTypes));
    }
View Full Code Here

    public PlasticMethod introduceMethod(Method method)
    {
        check();

        return introduceMethod(new MethodDescription(method));
    }
View Full Code Here

        Set<PlasticMethod> introducedMethods = new HashSet<PlasticMethod>();

        for (Method m : interfaceType.getMethods())
        {
            MethodDescription description = new MethodDescription(m);

            if (!isMethodImplemented(description))
            {
                introducedMethods.add(introduceMethod(m));
            }
View Full Code Here

TOP

Related Classes of org.apache.tapestry5.plastic.MethodDescription

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.