Examples of MethodCall


Examples of ch.bbv.fsm.dsl.MethodCall

    @Override
    public Object intercept(final Object object, final Method method, final Object[] args, final MethodProxy methodProxy) throws Throwable {
        if (!method.isAccessible()) {
            method.setAccessible(true);
        }
        final MethodCall methodCall = new MethodCallImpl(this.owner, method, args);
        MethodCallImpl.push(methodCall);
        return null;
    }
View Full Code Here

Examples of com.google.gwt.dev.generator.ast.MethodCall

      List<String> paramNames, Statements test) {
    Statements statements = new StatementsList();
    List<Statements> statementsList = statements.getStatements();

    if (beginMethod != null) {
      statementsList.add(new Statement(new MethodCall(beginMethod.getName(),
          paramNames)));
    }

    statementsList.add(test);

    if (endMethod != null) {
      statementsList.add(new Statement(
          new MethodCall(endMethod.getName(), null)));
    }

    return statements;
  }
View Full Code Here

Examples of com.gwtplatform.dispatch.rest.rebind.type.MethodCall

        methodCalls.addAll(getMethodCallsToAdd(formParams, ADD_FORM_PARAM));

        addContentTypeHeaderMethodCall(methodCalls);

        if (bodyParam != null) {
            methodCalls.add(new MethodCall(SET_BODY_PARAM, bodyParam.getName()));
        }

        return methodCalls;
    }
View Full Code Here

Examples of com.litecoding.smali2java.entity.java.MethodCall

      //maybe this() or super() call
      MethodRef methodRef = (MethodRef) args.get(args.size() - 1);
     
      if(methodRef.isConstructor()) {
        //this is this() or super() call
        MethodCall methodCall = new MethodCall(MethodCall.CALL_DIRECT,
            methodRef.getClassName(),
            methodRef.getName());
        Renderable entity = methodCall;
       
        methodCall.setConstructorCall(true);
        if(smaliClass.getSuperClassName().equals(methodRef.getClassName()))
          methodCall.setSuperCall(true);
        else
          methodCall.setThisCall(true);
       
        RegisterGroup regGroup = (RegisterGroup) args.get(0);
        boolean skipElement = true;
        for(SmaliCodeEntity regEntity : regGroup.getArguments()) {
          if(skipElement) {
            skipElement = false;
            continue;
          }
          Variable var = new Variable();
          var.setName(((Register)regEntity).getName());
          methodCall.getParams().add(var);
        }
       
        if(smaliClass.getSuperClassName().equals("Ljava/lang/Object;"))
          entity = new Comment(methodCall.render());
       
        entities.add(entity);
      }
    }
   
View Full Code Here

Examples of com.volantis.testtools.mock.method.MethodCall

            return mock == p0;
        } else {

            final Object[] _arguments = new Object[]{p0};

            MethodCall methodCall = _mockFactory.createMethodCall(
                    mock, MockObjectBase.EQUALS_METHOD, _arguments);

            try {
                Object _result = doMethodCall(mock, methodCall);
                return ((Boolean) _result).booleanValue();
View Full Code Here

Examples of eu.admire.dispel.references.MethodCall

    }
    ProcessingElementMethodDefinition modelElement = (ProcessingElementMethodDefinition) containerView
        .getElement();
    LinkedList<DispelNodeDescriptor> result = new LinkedList<DispelNodeDescriptor>();
    {
      MethodCall childElement = modelElement.getMethodCall();
      int visualID = DispelVisualIDRegistry.getNodeVisualID(view,
          childElement);
      if (visualID == MethodCallEditPart.VISUAL_ID) {
        result.add(new DispelNodeDescriptor(childElement, visualID));
      }
View Full Code Here

Examples of javassist.expr.MethodCall

    // is there just one?
    if( methodCalls.size() != 1 )
    {
      return null;
    }
    MethodCall call = methodCalls.get( 0 );
   
    try
    {
      // we have a bridge method!
      return call.getMethod();
    }
    catch( NotFoundException ex )
    {
      // can't find the type? not a bridge method
      return null;
View Full Code Here

Examples of org.apache.aries.unittest.mocks.MethodCall

  public void testUpdateWithIncorrectDepMf() throws Exception
  {
    AriesApplication app = createApplication(TEST_EBA);

    DeploymentMetadata depMf = Skeleton.newMock(DeploymentMetadata.class);
    Skeleton.getSkeleton(depMf).setReturnValue(new MethodCall(DeploymentMetadata.class, "getApplicationSymbolicName"), "random.app");
    Skeleton.getSkeleton(depMf).setReturnValue(new MethodCall(DeploymentMetadata.class, "getApplicationVersion"), new Version("1.0.0"));
   
    AriesApplicationContextManager ctxMgr = Skeleton.newMock(AriesApplicationContextManager.class);
    _appMgr.setApplicationContextManager(ctxMgr);

    _appMgr.update(app, depMf);   
View Full Code Here

Examples of org.freud.analysed.javasource.MethodCall

            methodCallByMethodNameMap = new HashMap<String, List<MethodCall>>();
            JXPathContext context = JXPathContext.newContext(codeBlockElement);
            List<Element> methodCallElementList =
                    context.selectNodes("//" + JavaSourceTokenType.METHOD_CALL.getName());
            for (Element methodCallElement : methodCallElementList) {
                final MethodCall methodCall = new MethodCallJdom(methodCallElement);
                List<MethodCall> methodCallList = methodCallByMethodNameMap.get(methodCall.getMethodName());
                if (methodCallList == null) {
                    methodCallList = new LinkedList<MethodCall>();
                    methodCallByMethodNameMap.put(methodCall.getMethodName(), methodCallList);
                }
                methodCallList.add(methodCall);
            }
        }
        return methodCallByMethodNameMap;
View Full Code Here

Examples of org.jboss.cache.marshall.MethodCall

   @SuppressWarnings("deprecation")
   private MethodCall createMethodCall()
   {
      if (command == null) return null;
      MethodCall call = new MethodCall();
      call.setMethodId(command.getCommandId());
      call.setArgs(command.getParameters());
      return call;
   }
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.