Examples of Statement


Examples of anvil.script.statements.Statement

  }


  public void endDocument()
  {
    Statement stmt = _current;
    while(stmt != null && stmt != this) {
      error(stmt.getLocation(), "Unexpected end of file, " + stmt.name() + " open");
      stmt = stmt.getParentStatement();
    }
  }
View Full Code Here

Examples of at.bestsolution.efxclipse.tooling.decora.decoraDsl.statement

   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetA(statement newA, NotificationChain msgs)
  {
    statement oldA = a;
    a = newA;
    if (eNotificationRequired())
    {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, DecoraDslPackage.SELECTION_STATEMENT__A, oldA, newA);
      if (msgs == null) msgs = notification; else msgs.add(notification);
View Full Code Here

Examples of ch.njol.skript.lang.Statement

      if (n instanceof SimpleNode) {
        final SimpleNode e = (SimpleNode) n;
        final String s = replaceOptions("" + e.getKey());
        if (!SkriptParser.validateLine(s))
          continue;
        final Statement stmt = Statement.parse(s, "Can't understand this condition/effect: " + s);
        if (stmt == null)
          continue;
        if (Skript.debug() || n.debug())
          Skript.debug(indentation + stmt.toString(null, true));
        items.add(stmt);
        if (stmt instanceof Delay)
          hasDelayBefore = Kleenean.TRUE;
      } else if (n instanceof SectionNode) {
        String name = replaceOptions("" + n.getKey());
View Full Code Here

Examples of com.amazonaws.auth.policy.Statement

        JsonNode effect = jStatement.get(JsonDocumentFields.STATEMENT_EFFECT);
        if (!isNotNull(effect))
            return null;

        Statement statement = new Statement(Effect.valueOf(effect.asText()));

        JsonNode id = jStatement.get(JsonDocumentFields.STATEMENT_ID);
        if (isNotNull(id)) {
            statement.setId(id.asText());
        }

        JsonNode actionNodes = jStatement.get(JsonDocumentFields.ACTION);
        if (isNotNull(actionNodes))
            statement.setActions(actionsOf(actionNodes));

        JsonNode resourceNodes = jStatement.get(JsonDocumentFields.RESOURCE);
        if (isNotNull(resourceNodes))
            statement.setResources(resourcesOf(resourceNodes));

        JsonNode conditionNodes = jStatement.get(JsonDocumentFields.CONDITION);
        if (isNotNull(conditionNodes))
            statement.setConditions(conditionsOf(conditionNodes));

        JsonNode principalNodes = jStatement.get(JsonDocumentFields.PRINCIPAL);
        if (isNotNull(principalNodes))
            statement.setPrincipals(principalOf(principalNodes));

        return statement;
    }
View Full Code Here

Examples of com.asakusafw.utils.java.model.syntax.Statement

                    factory.newSimpleName(SEGMENT_ID_FIELD_NAME),
                    v(-1));
        }

        private TypeBodyDeclaration createSegmentIdGetter() {
            Statement body = new ExpressionBuilder(factory, factory.newThis())
                .field(SEGMENT_ID_FIELD_NAME)
                .toReturnStatement();
            return factory.newMethodDeclaration(
                    null,
                    new AttributeBuilder(factory)
View Full Code Here

Examples of com.bacoder.parser.java.api.Statement

        if (context.children.size() > 1
            && context.children.get(1) instanceof TerminalNode
            && ((TerminalNode) context.children.get(1)).getSymbol().getType() == JavaParser.COLON) {
          StatementContext statementContext = getChild(context, StatementContext.class);
          if (statementContext != null) {
            Statement statement = adapt(statementContext);
            statement.setLabel(getAdapter(IdentifierAdapter.class).adapt(firstTerminal));
            setNodeAttributes(statement, firstTerminal, statementContext);
            return statement;
          }
        }
        break;
View Full Code Here

Examples of com.datastax.driver.core.Statement

        whereCQL);
    return CQLStatement.make(query, makeTableName(def,index), values.toArray());
  }

  public static Statement makeCQLforDeleteUUIDFromIndex_WorkaroundForUnpreparableTimestamp(String keyspace, CDefinition def, CIndex index, UUID uuid, Map<String,Object> indexValues, Long timestamp){
    Statement ret = QueryBuilder.delete()
        .from(keyspace,makeIndexTableName(def,index))
        .using(QueryBuilder.timestamp(timestamp))
        .where(QueryBuilder.eq("id",uuid))
        .and(QueryBuilder.eq("shardid", Long.valueOf(index.getShardingStrategy().getShardKey(uuid))));
    for(String key : indexValues.keySet()){
View Full Code Here

Examples of com.facebook.presto.sql.parser.StatementSplitter.Statement

    private static List<Statement> statements(String... args)
    {
        checkArgument(args.length % 2 == 0, "arguments not paired");
        ImmutableList.Builder<Statement> list = ImmutableList.builder();
        for (int i = 0; i < args.length; i += 2) {
            list.add(new Statement(args[i], args[i + 1]));
        }
        return list.build();
    }
View Full Code Here

Examples of com.facebook.presto.sql.tree.Statement

        analyzer = new Analyzer(new Session("user", "test", "tpch", "default", null, null), metadata, Optional.<QueryExplainer>absent());
    }

    private void analyze(@Language("SQL") String query)
    {
        Statement statement = SqlParser.createStatement(query);
        analyzer.analyze(statement);
    }
View Full Code Here

Examples of com.google.api.ads.dfp.axis.v201208.Statement

   * builder.
   *
   * @return the {@link Statement}
   */
  public Statement toStatement() {
    Statement statement = new Statement();
    statement.setQuery(queryBuilder.buildQuery());
    statement.setValues(Maps.toList(queryBuilder.getBindVariableMap(), String_ValueMapEntry.class)
        .toArray(new String_ValueMapEntry[] {}));
    return statement;
  }
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.