public abstract class BasicRule extends java.lang.Object implements TagRule
| Modifier and Type | Field and Description |
|---|---|
protected HTMLProcessorContext |
context |
| Modifier | Constructor and Description |
|---|---|
protected |
BasicRule() |
protected |
BasicRule(java.lang.String acceptableTagName) |
protected |
BasicRule(java.lang.String[] acceptableTagNames) |
| Modifier and Type | Method and Description |
|---|---|
protected CharArray |
currentBuffer() |
abstract void |
process(Tag tag) |
void |
setContext(HTMLProcessorContext context) |
boolean |
shouldProcess(java.lang.String name)
Called by the HTMLProcessor to determine if a rule should be called for a given tag.
|
protected HTMLProcessorContext context
protected BasicRule(java.lang.String[] acceptableTagNames)
protected BasicRule(java.lang.String acceptableTagName)
protected BasicRule()
public void setContext(HTMLProcessorContext context)
setContext in interface TagRulepublic boolean shouldProcess(java.lang.String name)
TagRuleshouldProcess in interface TagRuleprotected CharArray currentBuffer()