|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttip.node.GuardedSubTypeFilter<T>
T
- the supertype for which the GuardedSubTypeFilter
can accept nodes.public class GuardedSubTypeFilter<T extends NodeInterface>
GuardedSubTypeFilter
implements the NodeFilter
interface by
accepting all nodes that are subtypes of the first class and
guarding on all nodes that are subtypes of the second class given in the constructor.
Constructor Summary | |
---|---|
GuardedSubTypeFilter(Class<T> classT,
Class<? extends NodeInterface> guardClass)
Creates a SubTypeFilter using subtype relation of classT
as filtering criterion and subtype relation of guardClass as
guarding criterion. |
Method Summary | |
---|---|
boolean |
accept(Node node)
Returns true if node is a subtype of the class given in
the constructor. |
boolean |
guard(Node node)
Returns true if node guards further processesing. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GuardedSubTypeFilter(Class<T> classT, Class<? extends NodeInterface> guardClass)
SubTypeFilter
using subtype relation of classT
as filtering criterion and subtype relation of guardClass
as
guarding criterion.
classT
- the class used for filteringguardClass
- the class used for guardingMethod Detail |
---|
public boolean accept(Node node)
true
if node
is a subtype of the class given in
the constructor.
accept
in interface NodeFilter<T extends NodeInterface>
node
- the node in question
true
if node
is a subtype of the class given in
the constructorpublic boolean guard(Node node)
true
if node
guards further processesing.
guard
in interface NodeFilter<T extends NodeInterface>
node
- the node in question
true
if node
guards further processesing.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |