Interface TermWalker
- All Known Implementing Classes:
com.tangosol.coherence.dslquery.internal.AbstractCoherenceQueryWalker
,FilterBuilder
public interface TermWalker
TermWalker is a visitor class that provides a framework for walking
Term Trees
- Author:
- djl 2009.08.31
-
Method Summary
Modifier and TypeMethodDescriptionvoid
acceptAtom
(String sFunctor, AtomicTerm atomicTerm) The receiver has been dispatched to from the given atom.void
acceptNode
(String sFunctor, NodeTerm term) The receiver has been dispatched to from the given node.void
acceptTerm
(String sFunctor, Term term) The receiver has been dispatched to from the given atom.Return the result of the previous TermTree walk.Return the result of the walking the specified TermTree.
-
Method Details
-
acceptNode
The receiver has been dispatched to from the given node.- Parameters:
sFunctor
- the node functorterm
- the NodeTerm
-
acceptAtom
The receiver has been dispatched to from the given atom.- Parameters:
sFunctor
- the node functoratomicTerm
- the AtomicTerm
-
acceptTerm
The receiver has been dispatched to from the given atom.- Parameters:
sFunctor
- the node functorterm
- the Term
-
getResult
Object getResult()Return the result of the previous TermTree walk. This value could be null if no trees have been walked or the last tree walk resulted in an undetermined state.- Returns:
- the result of the previous TermTree walk
-
walk
Return the result of the walking the specified TermTree. This value could be null if the tree walk results in an undetermined state.- Parameters:
term
- the term tree to walk to obtain a result object- Returns:
- the result of walking the specified TermTree
-