public final class State
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.List |
listeners |
private int |
ruleCount |
private TagRule[] |
rules |
private java.util.List |
textFilters |
Constructor and Description |
---|
State() |
Modifier and Type | Method and Description |
---|---|
void |
addListener(StateChangeListener listener) |
void |
addRule(TagRule rule) |
void |
addTextFilter(TextFilter textFilter) |
void |
endOfState() |
TagRule |
getRule(java.lang.String tagName) |
void |
handleText(Text text,
HTMLProcessorContext context) |
boolean |
shouldProcessTag(java.lang.String tagName) |
private TagRule[] rules
private int ruleCount
private java.util.List listeners
private java.util.List textFilters
public void addRule(TagRule rule)
public void addTextFilter(TextFilter textFilter)
public boolean shouldProcessTag(java.lang.String tagName)
public TagRule getRule(java.lang.String tagName)
public void addListener(StateChangeListener listener)
public void endOfState()
public void handleText(Text text, HTMLProcessorContext context)