Examples of addStatement()


Examples of org.opensaml.SAMLAssertion.addStatement()

           
            //create an assertion
            SAMLAssertion authAssertion = new SAMLAssertion();
            authAssertion.setId(this.idProvider.getIdentifier());
            authAssertion.setIssuer(assertingParty);
            authAssertion.addStatement(authStatement);
           
            //create the SAMLResponse           
            authResponse.addAssertion(authAssertion);
         }
         else
View Full Code Here

Examples of org.picketlink.identity.federation.saml.v2.assertion.AssertionType.addStatement()

            AuthnStatementType authnStatement = StatementUtil.createAuthnStatement(XMLTimeUtil.getIssueInstant(),
                    authContextRef);

            authnStatement.setSessionIndex(assertion.getID());

            assertion.addStatement(authnStatement);
        }

        if (roles != null && !roles.isEmpty()) {
            AttributeStatementType attrStatement = StatementUtil.createAttributeStatementForRoles(roles, multiValuedRoles);
            assertion.addStatement(attrStatement);
View Full Code Here

Examples of org.renjin.compiler.cfg.BasicBlock.addStatement()

//    τ₈ ← primitive<+>(τ₆, τ₇)
//    xbar₄ ← primitive</>(τ₈, n₃)
   
    BasicBlock bb = new BasicBlock(null);
    LocalVariable lv1 = new LocalVariable("lambda", 1);
    bb.addStatement(
        new Assignment(
            var("n", 3),
            new ElementAccess(temp(4), lv1)));
    bb.addStatement(
        new Assignment(
View Full Code Here

Examples of org.renjin.compiler.ir.tac.functions.FunctionCallTranslator.addStatement()

 
  public void translateStatements(TranslationContext context, SEXP sexp) {
    if( isReservedFunction(sexp) ) {
      FunctionCallTranslator translator = builders.get( ((FunctionCall)sexp).getFunction() );
      if(translator != null) {
        translator.addStatement(this, context, (FunctionCall)sexp);
        return;
      }
    }
    Expression expr = translateExpression(context, sexp);
    if(!(expr instanceof Constant)) {
View Full Code Here

Examples of org.renjin.gcc.jimple.JimpleMethodBuilder.addStatement()

        call.append("p").append(paramIndex);
      }
      call.append(")");

      if (method.getReturnType().toString().equals("void")) {
        applyMethod.addStatement(call.toString());
        applyMethod.addStatement("return");
      } else {
        applyMethod.addVarDecl(method.getReturnType(), "_retval");
        applyMethod.addStatement("_retval = " + call.toString());
        applyMethod.addStatement("return _retval");
View Full Code Here

Examples of org.teiid.query.sql.proc.Block.addStatement()

        query.setCriteria(criteria);
       
        AssignmentStatement queryStmt = new AssignmentStatement(var1, query);
             
        Block ifBlock = new Block();     
        ifBlock.addStatement(queryStmt);
       
        //else block
        ElementSymbol var2 = new ElementSymbol("var2"); //$NON-NLS-1$
        Statement elseDeclStmt = new DeclareStatement(var2, shortType);    
       
View Full Code Here

Examples of org.teiid.query.sql.proc.Block.addStatement()

        hasSelector.setSelector(critSelector);
       
        IfStatement stmt = new IfStatement(hasSelector, ifBlock, elseBlock);
       
        Block block = new Block();       
        block.addStatement(declStmt);
        block.addStatement(stmt);
               
        CreateUpdateProcedureCommand cmd = new CreateUpdateProcedureCommand();
        cmd.setBlock(block);
      
View Full Code Here

Examples of org.teiid.query.sql.proc.Block.addStatement()

       
        IfStatement stmt = new IfStatement(hasSelector, ifBlock, elseBlock);
       
        Block block = new Block();       
        block.addStatement(declStmt);
        block.addStatement(stmt);
               
        CreateUpdateProcedureCommand cmd = new CreateUpdateProcedureCommand();
        cmd.setBlock(block);
      
        TestParser.helpTest("CREATE PROCEDURE BEGIN DECLARE short var1;"+ //$NON-NLS-1$
View Full Code Here

Examples of org.teiid.query.sql.proc.Block.addStatement()

   */
  private Command asLoopProcedure(GroupSymbol group, Query query,
      ProcedureContainer newUpdate) throws QueryResolverException,
      TeiidComponentException, TeiidProcessingException {
    Block b = new Block();
    b.addStatement(new CommandStatement(newUpdate));
    CreateUpdateProcedureCommand cupc = new CreateUpdateProcedureCommand();
    Block parent = new Block();
    LoopStatement ls = new LoopStatement(b, query, "X"); //$NON-NLS-1$
    parent.addStatement(ls);
    AssignmentStatement as = new AssignmentStatement();
View Full Code Here

Examples of org.teiid.query.sql.proc.Block.addStatement()

    Block b = new Block();
    b.addStatement(new CommandStatement(newUpdate));
    CreateUpdateProcedureCommand cupc = new CreateUpdateProcedureCommand();
    Block parent = new Block();
    LoopStatement ls = new LoopStatement(b, query, "X"); //$NON-NLS-1$
    parent.addStatement(ls);
    AssignmentStatement as = new AssignmentStatement();
    ElementSymbol rowsUpdate = new ElementSymbol(ProcedureReservedWords.VARIABLES+ElementSymbol.SEPARATOR+ProcedureReservedWords.ROWS_UPDATED);
    as.setVariable(rowsUpdate);
    as.setExpression(new Function("+", new Expression[] {rowsUpdate, new Constant(1)})); //$NON-NLS-1$
    b.addStatement(as);
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.