Class CssToken.TokenBuilder
java.lang.Object
org.idpf.epubcheck.util.css.CssToken.TokenBuilder
- Enclosing class:
CssToken
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringBuilder(package private) final intprivate final booleanprivate final CssErrorHandler(package private) final List<CssExceptions.CssScannerException> (package private) final intprivate final Locale(package private) final int(package private) final String(package private) CssToken.Type -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateTokenBuilder(String systemID, int line, int col, int offset, CssErrorHandler errorListener, Locale locale) (package private)TokenBuilder(CssReader reader, CssErrorHandler errorListener, Locale locale) -
Method Summary
Modifier and TypeMethodDescription(package private) CssToken.TokenBuilderappend(int ch) (package private) CssToken.TokenBuilderappend(int[] chrs) (package private) CssToken.TokenBuilderappend(CharSequence str) (package private) CssTokenasToken()(package private) voiderror(CssExceptions.CssErrorCode errorCode, CssReader reader, Object... arguments) All lexer-time errors are funnelled through this method.(package private) chargetLast()(package private) int(package private) int[]toArray()Return the chars appended so far to this builder.toString()Return the chars appended so far to this builder.
-
Field Details
-
type
CssToken.Type type -
line
final int line -
col
final int col -
offset
final int offset -
systemID
-
chars
-
errors
-
debug
private final boolean debug- See Also:
-
errorListener
-
locale
-
-
Constructor Details
-
TokenBuilder
private TokenBuilder(String systemID, int line, int col, int offset, CssErrorHandler errorListener, Locale locale) -
TokenBuilder
TokenBuilder(CssReader reader, CssErrorHandler errorListener, Locale locale)
-
-
Method Details
-
append
-
append
-
getLength
int getLength() -
getLast
char getLast() -
append
-
error
void error(CssExceptions.CssErrorCode errorCode, CssReader reader, Object... arguments) throws CssExceptions.CssException All lexer-time errors are funnelled through this method. Reported errors are stored in the resulting CssToken. This method also passes the error on to a CssErrorHandler, which can opt to rethrow to terminate the scanning.- Throws:
CssExceptions.CssException
-
asToken
CssToken asToken() -
toArray
int[] toArray()Return the chars appended so far to this builder. -
toString
-