jp.ne.dti.lares.foozy.pagemixer.mixer
Class SequenceWatcher.Name
java.lang.Object
|
+--jp.ne.dti.lares.foozy.pagemixer.mixer.SequenceWatcher.NameBased
|
+--jp.ne.dti.lares.foozy.pagemixer.mixer.SequenceWatcher.Name
- All Implemented Interfaces:
- SequenceWatcher
- Enclosing class:
- SequenceWatcher
- public static class SequenceWatcher.Name
- extends SequenceWatcher.NameBased
Find sequences by name of token.
This finds the "start" token named as specified name at first,
then finds the "end" token named as same as it.
This can handle "nested block" correctlly.
ATTENTION:This class has execution context,
so please do not share this instance between some filters
(of course, not between some threads, also).
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SequenceWatcher.Name
public SequenceWatcher.Name(Symbol tokenName)
- Create watcher which finds sequences by token name.
- Parameters:
tokenName
- name of token
hasInterest
protected boolean hasInterest(ConsumerContext context,
Token token)
- Examine whether watcher has interest in specified token.
- Overrides:
hasInterest
in class SequenceWatcher.NameBased
- Parameters:
context
- context to depend ontoken
- token to examine- Returns:
- true if token is first one of interest sequence