Class HTMLNamedEntitiesParser.RootState
java.lang.Object
org.htmlunit.cyberneko.HTMLNamedEntitiesParser.State
org.htmlunit.cyberneko.HTMLNamedEntitiesParser.RootState
- Enclosing class:
HTMLNamedEntitiesParser
This is our initial state and has a special optimization applied. We
don't iterate, we jump by character code to the position.
-
Field Summary
FieldsFields inherited from class HTMLNamedEntitiesParser.State
characters_, endNode_, endsWithSemicolon_, entityOrFragment_, isMatch_, length_, nextState_, resolvedValue_ -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class HTMLNamedEntitiesParser.State
add, updateNonSemicolonEntity
-
Field Details
-
offset_
private int offset_
-
-
Constructor Details
-
RootState
protected RootState()
-
-
Method Details
-
lookup
Description copied from class:HTMLNamedEntitiesParser.StateLookup the state by iterating over the chars at this state, should not be that many and due to the small size of the array, should be cache only- Overrides:
lookupin classHTMLNamedEntitiesParser.State- Parameters:
character- the char to look up- Returns:
- the next state or the same in case the character was not found
-
optimize
protected void optimize()
-