Package net.sf.laja.parser.template

Examples of net.sf.laja.parser.template.AddStatement


      var2 = refname;
    }
    String output = data.getOutput(phase, var1, var2, var2, null, not);
    NewStatement newStatement = new NewStatement("Complete", name);
    newStatement.setData(not, cs, output);
    return new AddStatement(name, newStatement);
  }
View Full Code Here


      var2 = refname;
    }
    String output = data.getOutput(phase, var1, var2, var2b, null, not);
    NewStatement newStatement = new NewStatement("Chr", name, new ChrData(intval));
    newStatement.setData(not, cs, output);
    return new AddStatement(String.valueOf(intval), newStatement);
  }
View Full Code Here

      }
    }
  }

  private void generateStatement(GrammarElement pipeElement, String method, int phase, boolean not, String name, String var1, GrammarData data, StatementList statementList) {
    AddStatement addStatement = pipeElement.getStatement(phase, name, not, null, var1, null, null, data);
    if (addStatement != null) {
      addStatement.setMehtod(method);
      if (statementList != null) {
        statementList.add(new Statement(phase, false, name, addStatement));
      }
    } else {
      String elementName = data.addNewVarname(name);
      pipeElement.generate(phase, false, true, true, not, null, elementName, var1, null, null, data, statementList);
      if (statementList != null) {
        addStatement = new AddStatement(elementName, new RefStatement(elementName));
        addStatement.setMehtod(method);
        statementList.add(new Statement(phase, false, name, addStatement));
      }
    }
  }
View Full Code Here

        output = data.getOutput(phase, var1, refname, var2b, elementName, not);
      }
      if (statementList != null) {
        RefStatement refStatement = new RefStatement(elementName);
        refStatement.setData(not, cs, output);
        AddStatement addStatement = new AddStatement(elementName, refStatement);
        statementList.add(new Statement(phase, false, name, addStatement));
      }
    }
  }
View Full Code Here

    data.addLocalVariable(elementName, row);

    RefStatement refStatement = new RefStatement(elementName);

    refStatement.setData(not, cs, output);
    return new AddStatement(elementName, refStatement);
  }
View Full Code Here

    }
    String output = data.getOutput(phase, var1, var2, var2b, null, not);
    RangeData rangeData = new RangeData(new RangeLimit(range1), new RangeLimit(range2));
    NewStatement newStatement = new NewStatement("Range", name, rangeData);
    newStatement.setData(not, cs, output);
    return new AddStatement(name, newStatement);
  }
View Full Code Here

TOP

Related Classes of net.sf.laja.parser.template.AddStatement

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.