1 19 package org.netbeans.tax.decl.parser; 20 21 import java.io.*; 22 23 import org.netbeans.tax.decl.*; 24 25 26 public class MultiplicityParser { 27 28 31 public String parseMultiplicity (ParserReader model) { 32 33 int ch = model.peek (); 34 switch (ch) { 35 case '?': case '+': case '*': 36 37 try { 38 model.read (); } catch (IOException ex) { 40 ex.printStackTrace (); 41 } 42 43 return new String ( new char[] {(char) ch}); 44 45 default: 46 return ""; } 48 } 49 50 } 51 | Popular Tags |