|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttip.node.SubTypeFilter<T>
T
- the supertype for which the SubTypeFilter
can accept nodes.public class SubTypeFilter<T extends NodeInterface>
SubTypeFilter
implements the NodeFilter
interface by
accepting all nodes that are subtypes of the class given in the constructor and
guarding on no nodes.
Constructor Summary | |
---|---|
SubTypeFilter(Class<T> classT)
Creates a SubTypeFilter using subtype relation of classT
as filtering 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 SubTypeFilter(Class<T> classT)
SubTypeFilter
using subtype relation of classT
as filtering criterion.
classT
- the class used for filteringMethod 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. The
implementation returns false
on all nodes, effectively disabling
guard functionality.
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 |