java.lang.Object
org.jhotdraw8.css.parser.ListCssTokenizer
- All Implemented Interfaces:
CssTokenizer
-
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionintcurrent()Returns the current token type.Returns the current string value.intintintGets the current position.intgetToken()intnext()Gets the next token skipping whitespaces and comments.intGets the next token without skipping whitespaces and comments.voidpushBack()Pushes the current token back.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jhotdraw8.css.parser.CssTokenizer
createParseException, currentIsIdentNone, currentNumberNonNull, currentStringNonNull, currentValue, nextIsIdentNone, requireNextNoSkip, requireNextToken, skipIfPresent, toTokenList
-
Constructor Details
-
ListCssTokenizer
-
ListCssTokenizer
-
-
Method Details
-
currentNumber
- Specified by:
currentNumberin interfaceCssTokenizer
-
currentString
Description copied from interface:CssTokenizerReturns the current string value.- Specified by:
currentStringin interfaceCssTokenizer- Returns:
- the current string value
-
current
public int current()Description copied from interface:CssTokenizerReturns the current token type.- Specified by:
currentin interfaceCssTokenizer- Returns:
- the current token type
-
getLineNumber
public int getLineNumber()- Specified by:
getLineNumberin interfaceCssTokenizer
-
getSourceLocator
- Specified by:
getSourceLocatorin interfaceCssTokenizer
-
getStartPosition
public int getStartPosition()- Specified by:
getStartPositionin interfaceCssTokenizer
-
getEndPosition
public int getEndPosition()- Specified by:
getEndPositionin interfaceCssTokenizer
-
getNextPosition
public int getNextPosition()Description copied from interface:CssTokenizerGets the current position.- Specified by:
getNextPositionin interfaceCssTokenizer- Returns:
- the start position of the token if a token has been pushed back, the end position of the token otherwise
-
next
public int next()Description copied from interface:CssTokenizerGets the next token skipping whitespaces and comments.- Specified by:
nextin interfaceCssTokenizer- Returns:
- the next non-whitespace token
-
nextNoSkip
public int nextNoSkip()Description copied from interface:CssTokenizerGets the next token without skipping whitespaces and comments.- Specified by:
nextNoSkipin interfaceCssTokenizer- Returns:
- the next token
-
pushBack
public void pushBack()Description copied from interface:CssTokenizerPushes the current token back.- Specified by:
pushBackin interfaceCssTokenizer
-
getToken
- Specified by:
getTokenin interfaceCssTokenizer
-