Package net.sf.laja.parser.template

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


      }
    } else {
      String elementName = data.addNewVarname(name);
      element.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


          valpar.generate(phase, false, false, true, false, null, name, var1, var2, var2b, data, statementList);
        } else {
          String elementName = data.addNewVarname(name);
          valpar.generate(phase, false, true, true, false, null, elementName, var1, null, null, data, statementList);
          if (statementList != null) {
            addStatement = new AddStatement(elementName, new RefStatement(elementName));
            statementList.add(new Statement(phase, false, name, addStatement));
          }
        }
      }
    }
View Full Code Here

            }
          } else {
            String elementName = data.addNewVarname(name);
            grammarElement.generate(phase, false, true, true, false, null, elementName, var1, null, null, data, statementList);
            if (statementList != null) {
              addStatement = new AddStatement(elementName, new RefStatement(elementName));
              statementList.add(new Statement(phase, false, name, addStatement));
            }
          }
        }
      }
View Full Code Here

            }
          } else {
            String elementName = data.addNewVarname(name);
            grammarElement.generate(phase, false, true, true, false, null, elementName, var1, null, null, data, statementList);
            if (statementList != null) {
              statementList.add(new Statement(phase, false, name, new AddStatement(elementName, new RefStatement(elementName))));
            }
          }
        }
      }
    }
View Full Code Here

            }
          } else {
            String elementName = data.addNewVarname(name);
            element.generate(phase, false, true, true, not2, null, elementName, var1, null, null, data, statementList);
            if (statementList != null) {
              statementList.add(new Statement(phase, false, name, new AddStatement(elementName, new RefStatement(elementName))));
            }
          }
        }
      }
    } 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) {
        String output = data.getOutput(phase, var1, var2, varname, null, this.not);
        boolean decoratable = element.decoratable(phase, this.not, null, output, var1, varname, var2b, data);

        AddStatement addStatement = element.getStatement(phase, name, this.not, null, var1, varname, "", data);

        if (decoratable && addStatement != null) {
          if (statementList != null) {
            statementList.add(new Statement(phase, false, name, addStatement));
          }
        } else if (decoratable && element.isElementList()) {
          element.generate(phase, false, false, true, this.not, null, name, var1, varname, "", data, statementList);
        } else {
          String newName = data.addNewVarname(name);
          output = data.getOutput(phase, var1, varname, "", null, this.not);
          element.generate(phase, false, true, true, false, null, newName, var1, null, "", data, statementList);
          if (statementList != null) {
            RefStatement refStatement = new RefStatement(newName);
            refStatement.setData(this.not, cs, output);
            statementList.add(new Statement(phase, false, name, new AddStatement(newName, refStatement)));
          }
        }
      }
    }
View Full Code Here

      }
    } 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

      String output = data.getOutput(phase, var1, var2, var2b, elementName, not);
      if (output.length() == 0) {
        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

    if (output.length() == 0) {
      output = data.getOutput(phase, var1, refname, var2b, elementName, not);
    }
    data.addLocalVariable(elementName, row);

    RefStatement refStatement = new RefStatement(elementName);

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

TOP

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

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.