/** * Checks whether there are any more tokens. * * @return true if there are more tokens */ public boolean hasNext() { checkTokenized(); return tokenPos < tokens.length; }
/** * Gets the number of tokens found in the String. * * @return the number of matched tokens */ public int size() { checkTokenized(); return tokens.length; }
/** * Checks whether there are any previous tokens that can be iterated to. * * @return true if there are previous tokens */ public boolean hasPrevious() { checkTokenized(); return tokenPos > 0; }
/** * Gets a copy of the full token list as an independent modifiable array. * * @return the tokens as a String array */ public String[] getTokenArray() { checkTokenized(); return (String[]) tokens.clone(); }
/** * Gets a copy of the full token list as an independent modifiable list. * * @return the tokens as a String array */ public List getTokenList() { checkTokenized(); List list = new ArrayList(tokens.length); for (int i = 0; i < tokens.length; i++) { list.add(tokens[i]); } return list; }
/** * Checks whether there are any previous tokens that can be iterated to. * * @return true if there are previous tokens */ public boolean hasPrevious() { checkTokenized(); return tokenPos > 0; }
/** * Checks whether there are any previous tokens that can be iterated to. * * @return true if there are previous tokens */ public boolean hasPrevious() { checkTokenized(); return tokenPos > 0; }
/** * Gets the number of tokens found in the String. * * @return the number of matched tokens */ public int size() { checkTokenized(); return tokens.length; }
/** * Checks whether there are any more tokens. * * @return true if there are more tokens */ public boolean hasNext() { checkTokenized(); return tokenPos < tokens.length; }
/** * Gets the number of tokens found in the String. * * @return the number of matched tokens */ public int size() { checkTokenized(); return tokens.length; }
/** * Gets the number of tokens found in the String. * * @return the number of matched tokens */ public int size() { checkTokenized(); return tokens.length; }
/** * Gets the number of tokens found in the String. * * @return the number of matched tokens */ public int size() { checkTokenized(); return tokens.length; }
/** * Gets the number of tokens found in the String. * * @return the number of matched tokens */ public int size() { checkTokenized(); return tokens.length; }
/** * Checks whether there are any previous tokens that can be iterated to. * * @return true if there are previous tokens */ public boolean hasPrevious() { checkTokenized(); return tokenPos > 0; }
/** * Checks whether there are any more tokens. * * @return true if there are more tokens */ public boolean hasNext() { checkTokenized(); return tokenPos < tokens.length; }
/** * Gets a copy of the full token list as an independent modifiable array. * * @return the tokens as a String array */ public String[] getTokenArray() { checkTokenized(); return (String[]) tokens.clone(); }
/** * Gets a copy of the full token list as an independent modifiable array. * * @return the tokens as a String array */ public String[] getTokenArray() { checkTokenized(); return (String[]) tokens.clone(); }
/** * Gets a copy of the full token list as an independent modifiable array. * * @return the tokens as a String array */ public String[] getTokenArray() { checkTokenized(); return (String[]) tokens.clone(); }
/** * Gets a copy of the full token list as an independent modifiable array. * * @return the tokens as a String array */ public String[] getTokenArray() { checkTokenized(); return (String[]) tokens.clone(); }
/** * Gets a copy of the full token list as an independent modifiable array. * * @return the tokens as a String array */ public String[] getTokenArray() { checkTokenized(); return (String[]) tokens.clone(); }