Examples of Statement


Examples of org.corrib.s3b.mbb.beans.rdf.Statement

    Collection<Statement> statements = new ArrayList<Statement>();
    for (Object statement : graph.getStatementCollection(resource, uri, value)) {
      Resource _subject = getResource(((org.openrdf.model.Statement)statement).getSubject());
      URI _predicate = getURI(((org.openrdf.model.Statement)statement).getPredicate());
      Value _object = getValue(((org.openrdf.model.Statement)statement).getObject());
      statements.add(new Statement(_subject, _predicate, _object));
    }
   
    return statements;
  }
View Full Code Here

Examples of org.crsh.util.Statement

            // 1/ cancel the process
            // 2/ wait a few milli seconds
            // 3/ if it's not ended then we end it

            final ClientProcessContext context = current;
            Statement statements = new Statement() {
              @Override
              protected void run() throws Throwable {
                context.end(ShellResponse.cancelled());
              }
            }.with(new Statement() {
              @Override
              protected void run() throws Throwable {
                context.process.cancel();
              }
            });
            statements.all();
          }
        } else if (msg instanceof ClientMessage.Close) {
          close();
        }
      }
View Full Code Here

Examples of org.eclipse.dltk.ast.statements.Statement

    if (varDecls.size() > level) {
      Declaration decl = varDecls.get(level);
      // The case that the node is inside another node
      if (decl != null) {
        if (level > 0) {
          Statement block = innerBlocks.get(level - 1);
          if (isInSameBlock(block, decl.getNode(), declNode)) {
            // replace existing declaration with a new one (leave
            // 'isGlobal' flag the same)
            decl.setNode(declNode);
            return;
View Full Code Here

Examples of org.eclipse.jdt.core.dom.Statement

  }
 
  public boolean visit(Block node) {
    IValueList statements = new IValueList(values);
    for (Iterator it = node.statements().iterator(); it.hasNext();) {
      Statement s = (Statement) it.next();
      statements.add(visitChild(s));
    }
   
    ownValue = constructStatementNode("block", statements.asList());
   
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.ast.Statement

      this.scribe.printComment(CodeFormatter.K_UNKNOWN, Scribe.UNMODIFIABLE_TRAILING_COMMENT);
  }
  private void formatStatements(BlockScope scope, final Statement[] statements, boolean insertNewLineAfterLastStatement) {
    int statementsLength = statements.length;
    for (int i = 0; i < statementsLength; i++) {
      final Statement statement = statements[i];
      if (i > 0 && (statements[i - 1] instanceof EmptyStatement) && !(statement instanceof EmptyStatement)) {
        this.scribe.printNewLine();
      }
      statement.traverse(this, scope);
      if (statement instanceof Expression) {
        this.scribe.printNextToken(TerminalTokens.TokenNameSEMICOLON, this.preferences.insert_space_before_semicolon);
        this.scribe.printComment(CodeFormatter.K_UNKNOWN, Scribe.BASIC_TRAILING_COMMENT);
        if (i != statementsLength - 1) {
          if (!(statement instanceof EmptyStatement) && !(statements[i + 1] instanceof EmptyStatement)) {
View Full Code Here

Examples of org.eclipse.php.internal.core.ast.nodes.Statement

  public void testClassRemove() throws Exception {
    String str = "<?php $a = 5; class A { } ?>";
    String expected = "<?php $a = 5; ?>";
    parseAndCompare(str, expected, new ICodeManiplator() {
      public void manipulate(Program program) {
        Statement statement = program.statements().get(1);
        statement.delete();
      }
    });
  }
View Full Code Here

Examples of org.hibernate.hql.ast.tree.Statement

      }
    }
  }

  private StatementExecutor buildAppropriateStatementExecutor(HqlSqlWalker walker) {
    Statement statement = ( Statement ) walker.getAST();
    if ( walker.getStatementType() == HqlSqlTokenTypes.DELETE ) {
      FromElement fromElement = walker.getFinalFromClause().getFromElement();
      Queryable persister = fromElement.getQueryable();
      if ( persister.isMultiTable() ) {
        return new MultiTableDeleteExecutor( walker );
View Full Code Here

Examples of org.hibernate.hql.internal.ast.tree.Statement

      }
    }
  }

  private StatementExecutor buildAppropriateStatementExecutor(HqlSqlWalker walker) {
    final Statement statement = (Statement) walker.getAST();
    if ( walker.getStatementType() == HqlSqlTokenTypes.DELETE ) {
      final FromElement fromElement = walker.getFinalFromClause().getFromElement();
      final Queryable persister = fromElement.getQueryable();
      if ( persister.isMultiTable() ) {
        return new MultiTableDeleteExecutor( walker );
View Full Code Here

Examples of org.hsqldb.Statement

        HashMappedList   map        = lg.getAsMap();

        lg.close();

        String sql = (String) map.get("/*lob_schema_definition*/");
        Statement statement = sysLobSession.compileStatement(sql,
            ResultProperties.defaultPropsValue);
        Result result = statement.execute(sysLobSession);

        if (result.isError()) {
            throw result.getException();
        }

View Full Code Here

Examples of org.hsqldb_voltpatches.Statement

    }

    protected void readDDL(Session session) throws IOException {

        for (; readLoggedStatement(session); ) {
            Statement cs     = null;
            Result    result = null;

            if (rowIn.getStatementType() == INSERT_STATEMENT) {
                isInsert = true;

                break;
            }

            try {
                cs = session.compileStatement(statement);
                result = session.executeCompiledStatement(cs,
                        ValuePool.emptyObjectArray);

                if (cs.getType() == StatementTypes.CREATE_SCHEMA) {
                    HsqlName name = cs.getSchemalName();

                    session.setSchema(name.name);
                }
            } catch (HsqlException e) {
                result = Result.newErrorResult(e);
            }

            if (result.isError()) {

                // handle grants on math and library routines in old versions
                if (cs == null) {}
                else {
                    if (cs.getType() == StatementTypes.GRANT) {
                        continue;
                    }
                }

                //
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.