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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
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.Object
getResult()
Return the result of the previous TermTree walk.Object
walk(Term term)
Return the result of the walking the specified TermTree.
-
-
-
Method Detail
-
acceptNode
void acceptNode(String sFunctor, NodeTerm term)
The receiver has been dispatched to from the given node.- Parameters:
sFunctor
- the node functorterm
- the NodeTerm
-
acceptAtom
void acceptAtom(String sFunctor, AtomicTerm atomicTerm)
The receiver has been dispatched to from the given atom.- Parameters:
sFunctor
- the node functoratomicTerm
- the AtomicTerm
-
acceptTerm
void acceptTerm(String sFunctor, Term term)
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
-
-