Examples of Statement


Examples of org.xvr.s3D.statement

   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetHead(statement newHead, NotificationChain msgs)
  {
    statement oldHead = head;
    head = newHead;
    if (eNotificationRequired())
    {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, S3DPackage.STATEMENT_LIST__HEAD, oldHead, newHead);
      if (msgs == null) msgs = notification; else msgs.add(notification);
View Full Code Here

Examples of railo.transformer.bytecode.Statement

  }
  private boolean statement(ExprData data,Body parent,short context) throws TemplateException {
    short prior=data.context;
    data.context=context;
    comments(data);
    Statement child=null;
    if(data.cfml.forwardIfCurrent(';')){return true;}
    else if((child=ifStatement(data))!=null)         parent.addStatement(child);
    else if((child=propertyStatement(data,parent))!=nullparent.addStatement(child);
    else if((child=paramStatement(data,parent))!=nullparent.addStatement(child);
    else if((child=funcStatement(data,parent))!=null)    parent.addStatement(child);
View Full Code Here

Examples of st.gravel.support.compiler.ast.Statement

  }

  public SequenceNode parseSequenceNode_(final st.gravel.support.jvm.Block1<Object, PragmaNode[]> _extraPragmaBlock) {
    VariableDeclarationNode[] _temporaries;
    Statement[] _statements;
    Statement _statement;
    final int _start;
    final PragmaNode[] _pragmas;
    _start = st.gravel.support.jvm.ReadStreamExtensions.position(_stream);
    this.eatWhitespace();
    _temporaries = new VariableDeclarationNode[] {};
View Full Code Here

Examples of statement.StatementDocument.Statement

    /**
     * Out of order balance: the ease of stronly-typed XmlObjects!
     */
    public static float balanceOutOfOrder(StatementDocument stmtDoc)
    {
        Statement stmt = stmtDoc.getStatement();

        float balance = 0;

        Transaction[] deposits    = stmt.getDepositArray();
        Transaction[] withdrawals = stmt.getWithdrawalArray();

        for ( int i = 0 ; i < deposits.length ; i++ )
            balance += deposits[ i ].getAmount();

        for ( int i = 0 ; i < withdrawals.length ; i++ )
View Full Code Here

Examples of ubiware.integration.soprano.Statement

          Node predicate = new Node(new URI("http://P" + p));
          for (int o = 0; o < 10; o++) {
            Node object = new Node(new URI("http://O" + o));
            for (int c = 0; c < 1; c++) {
              Node context = new Node(new URI("http://C" + c));
              Statement statement = new Statement(subject,
                  predicate, object, context);
              statementList.add(statement);
            }
          }
        }

      }

      TCPClientModel model = new TCPClientModel(address, 5000, "test2");
      System.out.println("adding " + statementList.size()+ " statements");
      long startTime = System.currentTimeMillis();
      int counter = 0;
     
      for (Statement statement : statementList) {
        model.addStatement(statement);
        //counter++;
        //if (counter % 100 == 0)
        //  System.out.print(".");
          
          
      }
     
      long endTime = System.currentTimeMillis();
      double durationinseconds = (endTime - startTime) / 1000.0;
      System.out.println("done adding "+ statementList.size()+ " statements in " +durationinseconds+ " seconds");
     
      startTime = System.currentTimeMillis();
      for (Statement statement : statementList){
        SopranoStatementIterator it = model.listStatements(statement);
        while (it.hasNext()){
          it.next();
        }
      }
      endTime = System.currentTimeMillis();
      durationinseconds = (endTime - startTime) / 1000.0;
      System.out.println("done querying "+ statementList.size()+ " statements in " +durationinseconds+ " seconds");
     
      System.exit(0);
      Node subject = new Node(new URI("http://S2"));
      Node predicate = new Node(new URI("http://P3"));
      Node object = new Node(new URI("http://O2"));
      Node context = new Node(new URI("http://C6"));
      Statement partial = new Statement(subject, predicate, object,
          context);

      System.out.println("querying 1 specific");
      SopranoStatementIterator iterator = model.listStatements(partial);
      counter = 0;
      while (iterator.hasNext()) {
        Statement st = iterator.next();
        counter++;
        System.out.println(st);
      }
      System.out.println("Done querying " + counter);

      //System.out.println("querying 100 with only object set.");
      //subject = new Node();
      //predicate = new Node();
      //object = new Node(new URI("http://O2"));
      //context = new Node();
      //partial = new Statement(subject, predicate, object, context);
      //iterator = model.listStatements(partial);
      //counter = 0;
      //while (iterator.hasNext()) {
      //  Statement st = iterator.next();
      //  counter++;
      //  System.out.print(".");
      //}
      //System.out.println("Done querying " + counter);

      System.out.println("querying all with nothing set.");
      subject = new Node();
      predicate = new Node();
      object = new Node();
      context = new Node();
      partial = new Statement(subject, predicate, object, context);
      startTime = System.currentTimeMillis();
      iterator = model.listStatements(partial);
      counter = 0;
      while (iterator.hasNext()) {
        Statement st = iterator.next();

//        counter++;
//        if (counter % 100 == 0) {
//          System.out.print(".");
//        }
View Full Code Here

Examples of uk.co.badgersinfoil.metaas.dom.Statement

      LinkedListTree block = ASTBuilder.newBlock();
      elseClause.addChildWithTokens(block);
      ASTUtils.increaseIndentAfterFirstLine(block, indent);
      return new ASTStatementList(block);
    }
    Statement stmt = StatementBuilder.build(elseClause.getFirstChild());
    if (!(stmt instanceof ASBlock)) {
      throw new SyntaxException("Expected a block, got "+ASTUtils.tokenName(elseClause.getFirstChild()));
    }
    return (ASBlock)stmt;
  }
View Full Code Here

Examples of uk.co.brunella.osgi.bdt.junit.runner.statement.Statement

    } catch (Throwable e) {
      e.printStackTrace();
      return new FailStatement(e);
    }

    Statement statement = methodInvoker(testMethod, test);
    statement = possiblyExpectingExceptions(testMethod, test, statement);
    statement = withPotentialTimeout(testMethod, test, statement);
    statement = withBefores(testMethod, test, statement);
    statement = withAfters(testMethod, test, statement);
    statement = withServiceInjection(testMethod, test, statement);
View Full Code Here

Examples of webit.script.core.ast.Statement

        return statementStack;
    }

    @Override
    protected void printBody(PrintStreamOrWriter out, String prefix) {
        Statement statement;
        for (int i = statementStack.size() - 1; i >= 0; i--) {
            statement = statementStack.peek(i);
            out.print(prefix)
                    .print("\tat ")
                    .print(statement.line)
                    .print(":")
                    .print(statement.column)
                    .print(" ")
                    .println(statement.getClass().getSimpleName());
        }
    }
View Full Code Here

Examples of wyvern.targets.Common.wyvernIL.IL.Stmt.Statement

   * @return
   *     the result of this single step
   */
  public BytecodeValue step() {
    finalValuesSet = false;
    Statement statement = statements.get(pc++);
    BytecodeStatementVisitor visitor;
    visitor = new BytecodeStatementVisitor(currentContext, this);
    currentContext = statement.accept(visitor);
    setFinalVals(emptyVal,"unit"); // if it wasn't set to something else
    return finalValue;
  }
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.