return result;
}
- public boolean peekIsOneOf(String [] ... possibilities){
+ public boolean peekIsOneOf(String ... possibilities){
TokenizerMatch nextToken = peekNextToken();
- for (String[] possibility : possibilities)
+ for (String possibility : possibilities)
if (possibility.equals(nextToken))
return true;
return false;
}
- public void peekExpectNoneOf(String [] ... possibilities) throws InvalidSyntaxException {
+ public void peekExpectNoneOf(String ... possibilities) throws InvalidSyntaxException {
TokenizerMatch nextToken = peekNextToken();
- for (String[] possibility : possibilities)
+ for (String possibility : possibilities)
if (possibility.equals(nextToken))
throw new InvalidSyntaxException("Not expected \"" + nextToken + "\" here.");
}