Package net.sf.laja.parser.template

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


      valstmt.generate(phase, baseDecl, genDecl, genStat, not, cs, name, var1, var2, var2b, data, statementList);
    } else {
      if (genDecl) {
        String output = data.getOutput(phase, var1, var2, var2b, null, not);
        if (statementList != null) {
          NewStatement newStatement = new NewStatement("FollowedBy", name);
          newStatement.setData(not, cs, output);
          statementList.add(new Statement(phase, baseDecl, "FollowedBy", name, newStatement));
        }
      }
      if (genStat) {
        generateStatement(valstmt, "setElement", phase, not, name, var1, data, statementList);
View Full Code Here


      element.generate(phase, baseDecl, genDecl, genStat, not, cs, name, var1, var2, var2b, data, statementList);
    } else {
      if (genDecl) {
        String output = data.getOutput(phase, var1, var2, var2b, null, not);
        if (statementList != null) {
          NewStatement newStatement = new NewStatement("Repeat", name);
          newStatement.setData(not, cs, output, repeats);
          statementList.add(new Statement(phase, baseDecl, "Repeat", name, newStatement));
        }
      }
      if (genStat) {
        AddStatement addStatement = element.getStatement(phase, name, this.not, null, var1, refname, refname, data);
View Full Code Here

      var2 = refname;
    }
    if (genDecl) {
      String output = data.getOutput(phase, var1, var2, var2b, null, not);
      if (statementList != null) {
        NewStatement newStatement = new NewStatement("Str", strval);
        newStatement.setData(not, cs, output);
        statementList.add(new Statement(phase, baseDecl, "Str", name, newStatement));
      }
    }
  }
View Full Code Here

  public AddStatement getStatement(int phase, String name, boolean not, Boolean cs, String var1, String var2, String var2b, GrammarData data) {
    if (refname != null) {
      var2 = refname;
    }
    String output = data.getOutput(phase, var1, var2, var2b, null, not);
    NewStatement newStatement = new NewStatement("Str", name);
    newStatement.setData(not, cs, output);
    return new AddStatement(strval, newStatement);
  }
View Full Code Here

      var2 = varname;
    }
    if (genDecl) {
      String output = data.getOutput(phase, var1, var2, var2b, null, not);
      if (statementList != null) {
        NewStatement newStatement = new NewStatement("Optional", name);
        newStatement.setData(false, cs, output);
        statementList.add(new Statement(phase, baseDecl, "Optional", name, newStatement));
      }
    }
    if (genStat) {
      var2 = "";
View Full Code Here

    Outputvar ov = data.getOutputvar(this.name);

    if (ov != null) {
      String output = data.getOutput(phase, var1, var2, var2b, null, not);
      if (statementList != null) {
        NewStatement newStatement = new NewStatement("Variable", name);
        newStatement.setData(not, cs, output);
        statementList.add(new Statement(phase, baseDecl, "Variable", name, newStatement));
      }
    }
  }
View Full Code Here

  public AddStatement getStatement(int phase, String name, boolean not, Boolean cs, String var1, String var2, String var2b, GrammarData data) {
    Outputvar ov = data.getOutputvar(this.name);
    if (ov != null) {
      String output = data.getOutput(phase, var1, var2, var2b, null, not);
      NewStatement newStatement = new NewStatement("Variable", name, ov.getClassVariableName());
      newStatement.setData(not, cs, output);
      return new AddStatement(name, newStatement);
    }
    return null;
  }
View Full Code Here

      element.generate(phase, baseDecl, genDecl, genStat, not, cs, name, var1, var2, var2b, data, statementList);
    } else {
      if (genDecl) {
        String output = data.getOutput(phase, var1, var2, var2b, null, not);
        if (statementList != null) {
          NewStatement newStatement = new NewStatement("OrList", name);
          newStatement.setData(not, cs, output);
          statementList.add(new Statement(phase, baseDecl, "OrList", name, newStatement));
        }
      }
      if (genStat) {
        for (Iterator i = elementList.iterator(); i.hasNext();) {
View Full Code Here

      element.generate(phase, baseDecl, genDecl, genStat, not, cs, name, var1, var2, var2b, data, statementList);
    } else {
      if (genDecl) {
        String output = data.getOutput(phase, var1, var2, var2b, null, not);
        if (statementList != null) {
          NewStatement newStatement = new NewStatement("ElementList", name);
          newStatement.setData(not, cs, output);
          statementList.add(new Statement(phase, baseDecl, "ElementList", name, newStatement));
        }
      }
      if (genStat) {
        for (Iterator i = elementList.iterator(); i.hasNext();) {
View Full Code Here

      var2 = refname;
    }
    if (genDecl) {
      String output = data.getOutput(phase, var1, var2, var2b, null, not);
      if (statementList != null) {
        NewStatement newStatement = new NewStatement("End", name);
        newStatement.setData(not, cs, output);
        statementList.add(new Statement(phase, baseDecl, "End", name, newStatement));
      }
    }
  }
View Full Code Here

TOP

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

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.