Examples of Call


Examples of org.python.parser.ast.Call

        String tmp_append = "_[" + (++list_comprehension_count) + "]";

        set(new Name(tmp_append, Name.Store, node));

        stmtType n = new Expr(new Call(new Name(tmp_append, Name.Load, node), new exprType[] { node.elt },
                new keywordType[0], null, null, node), node);

        for (int i = node.generators.length - 1; i >= 0; i--) {
            listcompType lc = node.generators[i];
            for (int j = lc.ifs.length - 1; j >= 0; j--) {
View Full Code Here

Examples of org.python.pydev.parser.jython.ast.Call

                            }
                        }

                        exprType expr = assign.value;
                        if (expr instanceof Call) {
                            Call call = (Call) expr;
                            if (call.args.length == 1) {
                                String argRep = NodeUtils.getRepresentationString(call.args[0]);
                                if (argRep != null && argRep.equals(funcName)) {
                                    String funcCall = NodeUtils.getRepresentationString(call.func);
View Full Code Here

Examples of org.rascalmpl.library.experiments.Compiler.RVM.Interpreter.Instructions.Call

  public CodeBlock LOADINT(int n){
    return add(new LoadInt(this, n));
  }
 
  public CodeBlock CALL(String fuid, int arity){
    return add(new Call(this, fuid, arity));
  }
View Full Code Here

Examples of org.red5.server.service.Call

          if (scope.getContext().getApplicationContext().containsBean(IRtmpSampleAccess.BEAN_NAME)) {
            IRtmpSampleAccess sampleAccess = (IRtmpSampleAccess) scope.getContext().getApplicationContext().getBean(IRtmpSampleAccess.BEAN_NAME);
            boolean videoAccess = sampleAccess.isVideoAllowed(scope);
            boolean audioAccess = sampleAccess.isAudioAllowed(scope);
            if (videoAccess || audioAccess) {
              final Call call2 = new Call(null, "|RtmpSampleAccess", null);
              Notify notify = new Notify();
              notify.setCall(call2);
              notify.setData(IoBuffer.wrap(new byte[] { 0x01, (byte) (audioAccess ? 0x01 : 0x00), 0x01, (byte) (videoAccess ? 0x01 : 0x00) }));
              write(notify, connection.getStreamIdForChannel(id));
            }
          }
        }
        event.setCall(call);
      } else {
        final Call call = new Call(null, CALL_ON_STATUS, new Object[] { status });
        event.setCall(call);
      }
      // send directly to the corresponding stream as for some status codes, no stream has been created  and thus "getStreamByChannelId" will fail
      write(event, connection.getStreamIdForChannel(id));
    }
View Full Code Here

Examples of org.restlet.engine.adapter.Call

     * Returns a connector call.
     *
     * @return A connector call instance.
     */
    protected Call getCall() {
        return new Call() {

            @Override
            protected boolean isClientKeepAlive() {
                return false;
            }
View Full Code Here

Examples of org.tarantool.core.cmd.Call

    }
    throw new TarantoolException(2, String.format("Illegal parameters, %s", "Unknown operation " + op));
  }

  private Response executeCall(Request request) {
    Call call = (Call) request;
    CallStub callStub = calls.get(call.getProcName());
    if (callStub == null) {
      throw new TarantoolException(50, String.format("Procedure '%s' is not defined", call.getProcName()));
    }
    Tuple args = Tuple.create(ByteBuffer.wrap(call.getBody()).order(ByteOrder.LITTLE_ENDIAN), ByteOrder.LITTLE_ENDIAN);
    return packResult(request, callStub.call(this, call.getProcName(), call.getFlags(), args), Call.OP_CODE);
  }
View Full Code Here

Examples of org.teiid.language.Call

      return new int [] {0};
    }
   
    @Override
    public List<?> getOutputParameterValues() throws TranslatorException {
      Call proc = (Call)this.command;
      int count = proc.getReturnType() != null ? 1:0;
      for (Argument param : proc.getArguments()) {
      if (param.getDirection() == Direction.INOUT || param.getDirection() == Direction.OUT) {
        count++;
      }
    }
      return Arrays.asList(new Object[count]);
View Full Code Here

Examples of org.teiid.language.Call

        super(command, connection, context, env);
    }

    @Override
    public void execute() throws TranslatorException {
      Call procedure = (Call)command;
        columnDataTypes = procedure.getResultSetColumnTypes();

        //translate command
        TranslatedCommand translatedComm = translateCommand(procedure);
       
        //create statement or CallableStatement and execute
        String sql = translatedComm.getSql();
        try{
            //create parameter index map
            CallableStatement cstmt = getCallableStatement(sql);
            this.results = this.executionFactory.executeStoredProcedure(cstmt, translatedComm, procedure.getReturnType());
            addStatementWarnings();
        }catch(SQLException e){
            throw new TranslatorException(e, JDBCPlugin.Util.getString("JDBCQueryExecution.Error_executing_query__1", sql)); //$NON-NLS-1$
        }          
       
View Full Code Here

Examples of org.teiid.language.Call

    }
       
    @Override
    public List<?> getOutputParameterValues() throws TranslatorException {
        try {
          Call proc = (Call)this.command;
          List<Object> result = new ArrayList<Object>();
          int paramIndex = 1;
          if (proc.getReturnType() != null) {
            addParameterValue(result, paramIndex++, proc.getReturnType());
          }
          for (Argument parameter : proc.getArguments()) {
            switch (parameter.getDirection()) {
            case IN:
              paramIndex++;
              break;
            case INOUT:
View Full Code Here

Examples of org.teiid.language.Call

  }

  @Override
  public void execute(ProcedureExecutionParent procedureExecutionParent) throws TranslatorException {
    try {
      Call command = parent.getCommand();
      List<Argument> params = command.getArguments();
     
      Argument object = params.get(OBJECT);
      String objectName = (String) object.getArgumentValue().getValue();
     
      Argument start = params.get(STARTDATE);
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.