Package com.helger.css.parser
Class ParserCSSCharsetDetector
- java.lang.Object
-
- com.helger.css.parser.ParserCSSCharsetDetector
-
- All Implemented Interfaces:
ParserCSSCharsetDetectorConstants
,ParserCSSCharsetDetectorTreeConstants
public class ParserCSSCharsetDetector extends Object implements ParserCSSCharsetDetectorTreeConstants, ParserCSSCharsetDetectorConstants
-
-
Field Summary
Fields Modifier and Type Field Description Token
jj_nt
Next token.protected JJTParserCSSCharsetDetectorState
jjtree
Token
token
Current token.ParserCSSCharsetDetectorTokenManager
token_source
Generated Token Manager.-
Fields inherited from interface com.helger.css.parser.ParserCSSCharsetDetectorConstants
CDC, CDO, CHARSET_SYM, DEFAULT, EOF, ESCAPE, ESCAPE_OTHER, ESCAPE_UNICODE, H, HNUM, IN_COMMENT, REST, S, SEMICOLON, STRING_EOL, STRING1, STRING2, tokenImage
-
Fields inherited from interface com.helger.css.parser.ParserCSSCharsetDetectorTreeConstants
jjtNodeName, JJTROOT
-
-
Constructor Summary
Constructors Constructor Description ParserCSSCharsetDetector(CharStream stream)
Constructor with user supplied CharStream.ParserCSSCharsetDetector(ParserCSSCharsetDetectorTokenManager tm)
Constructor with generated Token Manager.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
disable_tracing()
Disable tracing.void
enable_tracing()
Enable tracing.ParseException
generateParseException()
Generate ParseException.Token
getNextToken()
Token
getToken(int index)
void
ReInit(CharStream stream)
Reinitialise.void
ReInit(ParserCSSCharsetDetectorTokenManager tm)
ReinitialiseCSSNode
styleSheetCharset()
boolean
trace_enabled()
-
-
-
Field Detail
-
jjtree
protected JJTParserCSSCharsetDetectorState jjtree
-
token_source
public ParserCSSCharsetDetectorTokenManager token_source
Generated Token Manager.
-
token
public Token token
Current token.
-
jj_nt
public Token jj_nt
Next token.
-
-
Constructor Detail
-
ParserCSSCharsetDetector
public ParserCSSCharsetDetector(CharStream stream)
Constructor with user supplied CharStream.- Parameters:
stream
- stream to init with
-
ParserCSSCharsetDetector
public ParserCSSCharsetDetector(ParserCSSCharsetDetectorTokenManager tm)
Constructor with generated Token Manager.- Parameters:
tm
- Token manager to use
-
-
Method Detail
-
styleSheetCharset
public final CSSNode styleSheetCharset() throws ParseException
- Throws:
ParseException
-
ReInit
public void ReInit(CharStream stream)
Reinitialise.- Parameters:
stream
- stream to init with
-
ReInit
public void ReInit(ParserCSSCharsetDetectorTokenManager tm)
Reinitialise- Parameters:
tm
- Token manager to use
-
getNextToken
public final Token getNextToken()
- Returns:
- the next Token.
-
getToken
public final Token getToken(int index)
- Parameters:
index
- index to be retrieved- Returns:
- the specific Token.
-
generateParseException
public ParseException generateParseException()
Generate ParseException.- Returns:
- new Exception object. Never
null
-
trace_enabled
public final boolean trace_enabled()
- Returns:
- Always
false
.
-
enable_tracing
public final void enable_tracing()
Enable tracing.
-
disable_tracing
public final void disable_tracing()
Disable tracing.
-
-