Examples of MethodInfo


Examples of org.kie.workbench.common.services.datamodel.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.reflext.api.MethodInfo

    // Build the dispatcher map
    Map<Method, MethodInvoker> dispatchers = new HashMap<Method, MethodInvoker>();
    for (PropertyMapper propertyMapper : propertyMappers) {
      PropertyInfo info = propertyMapper.getInfo();
      MethodInfo getter = info.getGetter();
      if (getter != null) {
        dispatchers.put((Method)getter.getMethod(), propertyMapper);
      }
      MethodInfo setter = info.getSetter();
      if (setter != null) {
        dispatchers.put((Method)setter.getMethod(), propertyMapper);
      }
    }
    for (MethodMapper methodMapper : methodMappers) {
      dispatchers.put(methodMapper.getMethod(), methodMapper);
    }
View Full Code Here

Examples of org.spockframework.runtime.model.MethodInfo

   }

   @Override
   public boolean shouldRun(Description description)
   {
      final MethodInfo featureMethod = findCorrespondingFeatureMethod(description.getMethodName());
      if (NOT_FOUND.equals(featureMethod))
      {
         return false;
      }
      return methodName.equals(featureMethod.getReflection().getName());
   }
View Full Code Here

Examples of org.tod.meta.MethodInfo

        if (result.live) {
            // Work with live callstack instead.
            int n = result.liveStack.size();
            for (int i = 0; i < n; i++) {
                StackFrame sf = result.liveStack.get(i);
                MethodInfo method = getTODSession().getClassInformationProvider().getMethodInfo(sf.location().method());
                method.setLineNumber(sf.location().lineNumber());
                stack.add(method);
            }
        }else if(result.lastEvent != null && result.lastEvent instanceof IMethodCallEvent && isStepInto){
            stack = this.getTODSession().getTODHandler().getCallStack(result.lastEvent, isStepInto, isForward, false);
        }else if(result.lastEvent != null && result.afterLastEvent != null && isForward){
View Full Code Here

Examples of tv.porst.swfretools.parser.structures.MethodInfo

      if (methodIndex >= methodInfos.size()) {
        errors.add(String.format("Can not find method header for method %d because method header ID is out of bounds", methodIndex));
      }
      else {
        final MethodInfo methodInfo = data.getMethodInfos().get(methodIndex);

        final AS3Code code = methodBody.getCode();

        final ResolvedMethod resolvedMethod = resolveMethod(methodInfo, code, constantStrings, multiNames, namespaces, errors);
        methodMapping.put(methodInfo, resolvedMethod);
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.