tip.node
Interface NodeFilter<T extends NodeInterface>

Type Parameters:
T - the supertype for which the NodeFilter can accept nodes.
All Known Implementing Classes:
GuardedSubTypeFilter, SubTypeFilter

public interface NodeFilter<T extends NodeInterface>

NodeFilter defines an interface for filtering nodes.

Author:
Johnni Winther, jw@brics.dk

Method Summary
 boolean accept(Node node)
          Returns true if node is accepted by the NodeFilter.
 boolean guard(Node node)
          Returns true if node guards further processesing.
 

Method Detail

accept

boolean accept(Node node)
Returns true if node is accepted by the NodeFilter. The NodeFilter may only accept nodes that are subtypes of T.

Parameters:
node - the node in question
Returns:
true if node is accepted by the NodeFilter

guard

boolean guard(Node node)
Returns true if node guards further processesing.

Parameters:
node - the node in question
Returns:
true if node guards further processesing.