Examples of MethodInfo


Examples of org.drools.guvnor.client.modeldriven.MethodInfo

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

                Class< ? >[] listParam = aMethod.getParameterTypes();

                MethodInfo info = new MethodInfo( methodName,
                                                  solveParams( listParam ) );
                this.methods.add( info );
            }
        }
    }
View Full Code Here

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

Examples of org.drools.workbench.models.commons.shared.oracle.model.MethodInfo

public class ExpressionPartHelper {

    public static ExpressionPart getExpressionPartForMethod( PackageDataModelOracle sce,
                                                             String factName,
                                                             String methodName ) {
        MethodInfo mi = sce.getMethodInfo( factName, methodName );
        if ( DataType.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

Examples of org.drools.workbench.models.datamodel.oracle.MethodInfo

    }

    private String getDataType( String param ) {
        String dataType;

        MethodInfo methodInfo = getMethodInfo();

        if ( methodInfo != null ) {
            dataType = methodInfo.getParams().get( index++ );
        } else {
            dataType = boundParams.get( param );
        }
        if ( dataType == null ) {
            dataType = inferDataType( param,
View Full Code Here

Examples of org.eclipse.dltk.compiler.IElementRequestor.MethodInfo

                            return false;
                        }

                        List<?> statements = block.getChilds();

                        MethodInfo info = new MethodInfo();
                        info.nameSourceStart = name.sourceStart();
                        info.nameSourceEnd = name.sourceEnd() - 1;
                        info.declarationStart = block.sourceStart();

                        info.name = name.getValue();
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.classfmt.MethodInfo

      // first reference all methods declarations and field declarations
      MethodInfo[] methods = (MethodInfo[]) reader.getMethods();
      boolean noConstructor = true;
      if (methods != null) {
        for (int i = 0, max = methods.length; i < max; i++) {
          MethodInfo method = methods[i];
          boolean isConstructor = method.isConstructor();
          char[] descriptor = method.getMethodDescriptor();
          char[][] parameterTypes = decodeParameterTypes(descriptor, isConstructor && isNestedType);
          char[] returnType = decodeReturnType(descriptor);
          char[][] exceptionTypes = replace('/', '.', method.getExceptionTypeNames());
          if (isConstructor) {
            noConstructor = false;
            char[] signature = method.getGenericSignature();
            if (signature == null) {
              if (reader.isNestedType() && ((modifiers & ClassFileConstants.AccStatic) == 0)) {
                signature = removeFirstSyntheticParameter(descriptor);
              } else {
                signature = descriptor;
              }
            }
            addConstructorDeclaration(
                name,
                parameterTypes == null ? 0 : parameterTypes.length,
                signature, 
                parameterTypes,
                method.getArgumentNames(),
                method.getModifiers(),
                packageName,
                modifiers,
                exceptionTypes,
                extraFlags);
          } else {
            if (!method.isClinit()) {
              addMethodDeclaration(method.getSelector(), parameterTypes, returnType, exceptionTypes);
            }
          }
          // look for references in method annotations
          annotations = method.getAnnotations();
          if (annotations != null) {
            for (int a=0, length=annotations.length; a<length; a++) {
              IBinaryAnnotation annotation = annotations[a];
              addBinaryAnnotation(annotation);
            }
          }
          tagBits = method.getTagBits() & TagBits.AllStandardAnnotationsMask;
          if (tagBits != 0) {
            addBinaryStandardAnnotations(tagBits);
          }
        }
      }
View Full Code Here

Examples of org.gjt.jclasslib.structures.MethodInfo

        int categoryNodeIndex = categoryNode.getIndex();
        if (category.equals(BrowserTreeNode.NODE_CONSTANT_POOL)) {
            --categoryNodeIndex;
        }
        if (category.equals(BrowserTreeNode.NODE_METHOD)) {
            MethodInfo methodInfo = services.getClassFile().getMethods()[categoryNodeIndex];
            addClassMemberPathComponent(methodInfo, browserPath, selectionPath);
        } else if (category.equals(BrowserTreeNode.NODE_FIELD)) {
            FieldInfo fieldInfo = services.getClassFile().getFields()[categoryNodeIndex];
            addClassMemberPathComponent(fieldInfo, browserPath, selectionPath);
        } else {
View Full Code Here

Examples of org.hotswap.agent.javassist.bytecode.MethodInfo

        if (ClassFile.MAJOR_VERSION < ClassFile.JAVA_6)
            return;

        Iterator methods = cf.getMethods().iterator();
        while (methods.hasNext()) {
            MethodInfo mi = (MethodInfo) methods.next();
            mi.rebuildStackMap(classPool);
        }
    }
View Full Code Here

Examples of org.jboss.aop.MethodInfo

   @Deprecated
   protected MethodInfo getMethodInfo(Method method)
   {
      long hash = MethodHashing.calculateHash(method);
      MethodInfo info = getAdvisor().getMethodInfo(hash);
      if (info == null)
      {
         throw new RuntimeException("Could not resolve beanClass method from proxy call: " + method.toString());
      }
      return info;
View Full Code Here

Examples of org.jboss.aop.MethodInfo

      ClassLoader oldLoader = Thread.currentThread().getContextClassLoader();
      pushEnc();
      try
      {
         long hash = MethodHashing.calculateHash(method);
         MethodInfo info = getAdvisor().getMethodInfo(hash);
         if (info == null)
         {
            throw new RuntimeException(
                    "Could not resolve beanClass method from proxy call: "
                            + method.toString());
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.