public void setParams(String params) {super.setParams(params);final StreamTokenizer stok = new StreamTokenizer(new StringReader(params));stok.quoteChar('"');stok.quoteChar('\'');stok.eolIsSignificant(false);stok.ordinaryChar(',');try {while (stok.nextToken() != StreamTokenizer.TT_EOF) {switch (stok.ttype) {case ',': {break;}case '\'':case '\"':case StreamTokenizer.TT_WORD: {analyzerNames.add(stok.sval);break;}default: {throw new RuntimeException("Unexpected token: " + stok.toString());}}}} catch (RuntimeException e) {if (e.getMessage().startsWith("Line #")) {throw e;} else {throw new RuntimeException("Line #" + (stok.lineno() + getAlgLineNum()) + ": ", e);}} catch (Throwable t) {throw new RuntimeException("Line #" + (stok.lineno() + getAlgLineNum()) + ": ", t);}}
public override void SetParams(string @params){base.SetParams(@params);StreamTokenizer stok = new StreamTokenizer(new StringReader(@params));stok.QuoteChar('"');stok.QuoteChar('\'');stok.EndOfLineIsSignificant = false;stok.OrdinaryChar(',');try{while (stok.NextToken() != StreamTokenizer.TokenType_EndOfStream){switch (stok.TokenType){case ',':{break;}case '\'':case '\"':case StreamTokenizer.TokenType_Word:{analyzerNames.Add(stok.StringValue);break;}default:{throw new Exception("Unexpected token: " + stok.ToString());}}}}catch (Exception e){if (e.Message.StartsWith("Line #", StringComparison.Ordinal)){throw; }else{throw new Exception("Line #" + (stok.LineNumber + AlgLineNum) + ": ", e);}}}