public static class HTMLNamedEntitiesParser.State extends Object
| Modifier and Type | Field and Description |
|---|---|
boolean |
endNode_ |
boolean |
endsWithSemicolon_ |
String |
entityOrFragment_ |
boolean |
isMatch_ |
int |
length_ |
String |
resolvedValue_ |
| Modifier | Constructor and Description |
|---|---|
protected |
State()
Create the empty state
|
protected |
State(int depth,
String entityFragment,
String resolvedValue)
Create us a new state that describes itself nicely
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
add(String entity,
String resolvedValue)
Add a new entity to the pseudo-tree
|
protected HTMLNamedEntitiesParser.State |
lookup(int character)
Lookup 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
|
protected void |
updateNonSemicolonEntity(String entity,
String resolvedValue)
We have a special in between state because some entities exist as correct
entity with a semicolon at the end and as legacy version without.
|
public final String entityOrFragment_
public String resolvedValue_
public final int length_
public final boolean endsWithSemicolon_
public boolean isMatch_
public boolean endNode_
protected void updateNonSemicolonEntity(String entity, String resolvedValue)
entity - the entity to look upresolvedValue - the value it will resolve toprotected void add(String entity, String resolvedValue)
entity - the entity to look for laterresolvedValue - the value it resolves toprotected HTMLNamedEntitiesParser.State lookup(int character)
character - the char to look upCopyright © 2024 HtmlUnit. All rights reserved.