Package dk.brics.xact.analysis.flowgraph.statements

Examples of dk.brics.xact.analysis.flowgraph.statements.InsertStm


  /**
   * Generates an InsertStm.
   */
  private void putInsert(InsertStm.Kind kind, Value base, Value xpath, ValueBox source, boolean convertObjects) {
    Statement stm;
    cfg.addStatement(stm = new InsertStm(kind, hardcodeResult = makevar(), translateExpr(base),
        xpath!=null ? context.getConstantString(xpath) : null,
        convertObjects ? null : Automaton.makeEmpty(),
        convertObjects ? getVariableFromObjectExp(source) : translateExpr(source.getValue()),
        context.getCurrentOrigin()));
    if (convertObjects) {
View Full Code Here


          context.getCurrentOrigin()));
      for (int i=0; i<info.contents.length; i++) {
        Variable var2 = makevar();
        Variable val = translateExpr(info.contents[i].getValue());
        Statement stm;
        cfg.addStatement(stm = new InsertStm(InsertStm.Kind.APPEND,
            var2,
            var,
            null,
            Automaton.makeEmpty(),
            val,
View Full Code Here

TOP

Related Classes of dk.brics.xact.analysis.flowgraph.statements.InsertStm

Copyright © 2018 www.massapicom. 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.