Package com.mattinsler.guiceymongo.data.generator.option

Examples of com.mattinsler.guiceymongo.data.generator.option.Option.addParameter()


    assert GuiceyDataParser.OPTION == tree.getToken().getType();
   
    List<CommonTree> children = tree.getChildren();
    Option option = new Option(children.get(0).getText());
    if (children.size() == 2 && GuiceyDataParser.PAIR != children.get(1).getToken().getType())
      option.addParameter("value", parseLiteral(children.get(1)));
    else {
      for (int x = 1; x < children.size(); ++x) {
        if (GuiceyDataParser.PAIR == children.get(x).getToken().getType() && children.get(x).getChildCount() == 2)
          option.addParameter(children.get(x).getChild(0).getText(), parseLiteral(children.get(x).getChild(1)));
      }
View Full Code Here


    if (children.size() == 2 && GuiceyDataParser.PAIR != children.get(1).getToken().getType())
      option.addParameter("value", parseLiteral(children.get(1)));
    else {
      for (int x = 1; x < children.size(); ++x) {
        if (GuiceyDataParser.PAIR == children.get(x).getToken().getType() && children.get(x).getChildCount() == 2)
          option.addParameter(children.get(x).getChild(0).getText(), parseLiteral(children.get(x).getChild(1)));
      }
    }
    return option;
  }
 
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.