Package ariba.util.fieldtype

Examples of ariba.util.fieldtype.MethodInfo


    private void setMethodReturnType (TypeInfo type,
                                      String methodName,
                                      Node node)
    {
        MethodInfo method = null;

        // prepare the parameter list
        List parameters = ListUtil.list();
        int numOfChild = node.jjtGetNumChildren();
        for (int i=0; i < numOfChild; i++) {
View Full Code Here


       
        if (targetType instanceof JavaTypeProvider.JavaTypeInfo) {
            JavaTypeProvider.JavaTypeInfo javaType =
                    (JavaTypeProvider.JavaTypeInfo)targetType;

             MethodInfo methodInfo = javaType.getMethod(
                     retriever, methodName, argTypes, isStatic);
            if (methodInfo != null &&
                methodInfo instanceof JavaTypeProvider.JavaMethodInfo)
            {
                return ListUtil.list(((JavaTypeProvider.JavaMethodInfo)methodInfo).getMethod());
View Full Code Here

    protected Object getValueBody( ExprContext context, Object source ) throws ExprException
    {
        SymbolTable table = context.getSymbolTable();
        SemanticRecord record = (table != null ?
                                (SemanticRecord)table.getSymbolRecord(this) : null);
        MethodInfo methodInfo = (record != null?
                                 (MethodInfo)record.getPropertyInfo() : null);
        boolean isStatic = (methodInfo != null ? methodInfo.isStatic() : false);

        // Wrap the source as well as to provide proper evaluation context
        // for method invocation.
        source = ExprRuntime.convert(source);

        Object value;
        if (!isStatic) {
            value = _getValueBody(context, source);
        }
        else {
            String typeName = methodInfo.getParentType().getName();
            Object[]    args = ExprRuntime.getObjectArrayPool().create(jjtGetNumChildren());
            Object      root = context.getRoot();

            try {
                for ( int i=0, icount = args.length; i < icount; ++i ) {
View Full Code Here

TOP

Related Classes of ariba.util.fieldtype.MethodInfo

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.