PageMixer API - 3.1

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).


Inner classes inherited from class jp.ne.dti.lares.foozy.pagemixer.mixer.SequenceWatcher
SequenceWatcher.Attr, SequenceWatcher.Name, SequenceWatcher.NameAttr, SequenceWatcher.NameBased
 
Fields inherited from class jp.ne.dti.lares.foozy.pagemixer.mixer.SequenceWatcher.NameBased
tokenName_
 
Constructor Summary
SequenceWatcher.Name(Symbol tokenName)
          Create watcher which finds sequences by token name.
 
Method Summary
protected  boolean hasInterest(ConsumerContext context, Token token)
          Examine whether watcher has interest in specified token.
 
Methods inherited from class jp.ne.dti.lares.foozy.pagemixer.mixer.SequenceWatcher.NameBased
clear, gainsInterest, losesInterest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SequenceWatcher.Name

public SequenceWatcher.Name(Symbol tokenName)
Create watcher which finds sequences by token name.
Parameters:
tokenName - name of token
Method Detail

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 on
token - token to examine
Returns:
true if token is first one of interest sequence

PageMixer API - 3.1