Package org.drools.ide.common.client.modeldriven

Examples of org.drools.ide.common.client.modeldriven.MethodInfo


                    expression.appendPart(new ExpressionCollection(attrib, fieldClassName, fieldGenericType, fieldParametricType));
                } else {
                    expression.appendPart(new ExpressionField(attrib, fieldClassName, fieldGenericType));
                }
            } else if (METHOD_VALUE_PREFIX.equals(prefix)) {
                MethodInfo mi = getCompletionEngine().getMethodinfo(prevFactName, attrib);
                if (SuggestionCompletionEngine.TYPE_COLLECTION.equals(mi.getGenericType())) {
                    expression.appendPart(new ExpressionCollection(attrib, mi.getReturnClassType(), mi.getGenericType(), mi.getParametricReturnType()));
                } else {
                    expression.appendPart(new ExpressionMethod(mi.getName(), mi.getReturnClassType(), mi.getGenericType()));
                }
            }
        }
        Widget w = getWidgetForCurrentType();
View Full Code Here


            if ( isNotGetterOrSetter(aMethod) && isReasonableMethod( clazz,
                methodName ) && Modifier.isPublic( modifiers ) ) {

                Class<?>[] listParam = aMethod.getParameterTypes();
               
        MethodInfo info = new MethodInfo(methodName,
            solveParams(listParam),
            aMethod.getReturnType(),
            SuggestionCompletionEngineBuilder
                .obtainGenericType(aMethod.getGenericReturnType()),
            converter.translateClassToGenericType(clazz));
View Full Code Here

            if ( isNotGetterOrSetter(aMethod) && isReasonableMethod( clazz,
                methodName ) && Modifier.isPublic( modifiers ) ) {

                Class<?>[] listParam = aMethod.getParameterTypes();
               
        MethodInfo info = new MethodInfo(methodName,
            solveParams(listParam),
            aMethod.getReturnType(),
            SuggestionCompletionEngineBuilder
                .obtainGenericType(aMethod.getGenericReturnType()),
            converter.translateClassToGenericType(clazz));
View Full Code Here

import org.drools.ide.common.client.modeldriven.MethodInfo;
import org.drools.ide.common.client.modeldriven.SuggestionCompletionEngine;

public class ExpressionPartHelper {
  public static ExpressionPart getExpressionPartForMethod(SuggestionCompletionEngine sce, String factName, String methodName) {
    MethodInfo mi = sce.getMethodinfo(factName, methodName);
    if (SuggestionCompletionEngine.TYPE_COLLECTION.equals(mi.getGenericType())) {
      return new ExpressionCollection(methodName, mi.getReturnClassType(),
          mi.getGenericType(), mi.getParametricReturnType());
    }
    return new ExpressionMethod(mi.getName(), mi.getReturnClassType(), mi.getGenericType());
  }
View Full Code Here

import org.drools.ide.common.client.modeldriven.MethodInfo;
import org.drools.ide.common.client.modeldriven.SuggestionCompletionEngine;

public class ExpressionPartHelper {
    public static ExpressionPart getExpressionPartForMethod(SuggestionCompletionEngine sce, String factName, String methodName) {
        MethodInfo mi = sce.getMethodinfo(factName, methodName);
        if (SuggestionCompletionEngine.TYPE_COLLECTION.equals(mi.getGenericType())) {
            return new ExpressionCollection(methodName, mi.getReturnClassType(),
                    mi.getGenericType(), mi.getParametricReturnType());
        }
        return new ExpressionMethod(mi.getName(), mi.getReturnClassType(), mi.getGenericType());
    }
View Full Code Here

            if ( isNotGetterOrSetter(aMethod) && isReasonableMethod( clazz,
                    methodName ) && Modifier.isPublic( modifiers ) ) {

                Class<?>[] listParam = aMethod.getParameterTypes();
               
                MethodInfo info = new MethodInfo(methodName,
                        solveParams(listParam),
                        aMethod.getReturnType(),
                        SuggestionCompletionEngineBuilder
                                .obtainGenericType(aMethod.getGenericReturnType()),
                        converter.translateClassToGenericType(clazz));
View Full Code Here

TOP

Related Classes of org.drools.ide.common.client.modeldriven.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.