Package lupos.rif.generated.syntaxtree

Examples of lupos.rif.generated.syntaxtree.INode.accept()


  private List<INode> list(INode... nodes) {
    List<INode> ret = new ArrayList<INode>();
    for (int i = 0; i < nodes.length; i++) {
      INode node = nodes[i];
      if (node instanceof INodeList)
        ret.addAll(list(node.accept(this, null).toArray(new INode[] {})));
      else if (node instanceof NodeOptional)
        ret.addAll(list(node.accept(this, null).toArray(new INode[] {})));
      else if (node instanceof NodeChoice)
        ret.addAll(list(((NodeChoice) node).choice));
      else if (node != null)
View Full Code Here


    for (int i = 0; i < nodes.length; i++) {
      INode node = nodes[i];
      if (node instanceof INodeList)
        ret.addAll(list(node.accept(this, null).toArray(new INode[] {})));
      else if (node instanceof NodeOptional)
        ret.addAll(list(node.accept(this, null).toArray(new INode[] {})));
      else if (node instanceof NodeChoice)
        ret.addAll(list(((NodeChoice) node).choice));
      else if (node != null)
        ret.add(node);
    }
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.