Examples of NodeListOptional


Examples of lupos.rif.generated.syntaxtree.NodeListOptional

  }

  public Object visit(final RIFFormula n, final IRuleNode argu) {
    switch (n.f0.which) {
    case 0:
      final NodeListOptional andFormulas = (NodeListOptional) ((List<INode>) n.f0.choice
          .accept(this, argu)).get(2);
      final Conjunction conj = new Conjunction();
      conj.setParent(argu);
      for (final INode node : (List<INode>) andFormulas
          .accept(this, conj))
        conj.addExpr((IExpression) node.accept(this, conj));
      return conj;
    case 1:
      final NodeListOptional orFormulas = (NodeListOptional) ((List<INode>) n.f0.choice
          .accept(this, argu)).get(2);
      final Disjunction disj = new Disjunction();
      disj.setParent(argu);
      for (final INode node : (List<INode>) orFormulas.accept(this, disj))
        disj.addExpr((IExpression) node.accept(this, disj));
      return disj;
    case 2:
      final List<INode> existINodes = (List<INode>) n.f0.choice.accept(
          this, argu);
View Full Code Here

Examples of org.jboss.seam.remoting.annotationparser.syntaxtree.NodeListOptional

                  {
                     annotations.add((org.jboss.seam.remoting.annotationparser.syntaxtree.Annotation) nsNode);
                  }
                  else if (nsNode instanceof NodeListOptional)
                  {
                     NodeListOptional nlo = (NodeListOptional) nsNode;
                     if (nlo.present())
                     {
                        for (Node nloNode : nlo.nodes)
                        {
                           if (nloNode instanceof NodeSequence)
                           {
View Full Code Here

Examples of org.jboss.seam.remoting.annotationparser.syntaxtree.NodeListOptional

   {
      StringBuilder sb = new StringBuilder();
     
      sb.append(name.f0.tokenImage);
     
      NodeListOptional nodeList = ((NodeListOptional) name.f1);
      if (nodeList.present())
      {
         for (Node node : nodeList.nodes)
         {
            if (node instanceof NodeSequence)
            {
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.