1 19 package org.netbeans.tax.decl.parser; 20 21 import org.netbeans.tax.TreeElementDecl; 22 import org.netbeans.tax.decl.*; 23 24 public class ChoiceParser extends ListParser { 25 26 27 TreeElementDecl.ContentType first; 28 29 30 34 public ChoiceParser (TreeElementDecl.ContentType first) { 35 this.first = first; 36 } 37 38 40 public TreeElementDecl.ContentType parseModel (ParserReader s) { 41 ChoiceType cht = (ChoiceType) super.parseModel (s); 42 if (first != null) 43 cht.addType (first); 44 return cht; 45 } 46 47 48 52 54 protected ChildrenType createType (ParserReader model) { 55 return new ChoiceType (); 56 } 57 58 60 public String getSeparator () { 61 return "|"; } 63 64 } 65 | Popular Tags |