Class CriteriaExpressionVisitor.AbstractVisitor
- java.lang.Object
-
- org.apache.openjpa.persistence.criteria.CriteriaExpressionVisitor.AbstractVisitor
-
- All Implemented Interfaces:
CriteriaExpressionVisitor
- Direct Known Subclasses:
CriteriaExpressionVisitor.ParameterVisitor
- Enclosing interface:
- CriteriaExpressionVisitor
public abstract static class CriteriaExpressionVisitor.AbstractVisitor extends java.lang.Object implements CriteriaExpressionVisitor
An abstract implementation that can detect cycles during traversal.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.openjpa.persistence.criteria.CriteriaExpressionVisitor
CriteriaExpressionVisitor.AbstractVisitor, CriteriaExpressionVisitor.ParameterVisitor, CriteriaExpressionVisitor.TraversalStyle
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Set<org.apache.openjpa.persistence.criteria.CriteriaExpression>
_visited
-
Constructor Summary
Constructors Constructor Description AbstractVisitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
exit(org.apache.openjpa.persistence.criteria.CriteriaExpression node)
Remembers the node being visited.CriteriaExpressionVisitor.TraversalStyle
getTraversalStyle(org.apache.openjpa.persistence.criteria.CriteriaExpression node)
Returns PREFIX as the default traversal style.boolean
isVisited(org.apache.openjpa.persistence.criteria.CriteriaExpression node)
Affirms if this node has been visited before.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.openjpa.persistence.criteria.CriteriaExpressionVisitor
enter
-
-
-
-
Method Detail
-
exit
public void exit(org.apache.openjpa.persistence.criteria.CriteriaExpression node)
Remembers the node being visited.- Specified by:
exit
in interfaceCriteriaExpressionVisitor
-
isVisited
public boolean isVisited(org.apache.openjpa.persistence.criteria.CriteriaExpression node)
Affirms if this node has been visited before.- Specified by:
isVisited
in interfaceCriteriaExpressionVisitor
-
getTraversalStyle
public CriteriaExpressionVisitor.TraversalStyle getTraversalStyle(org.apache.openjpa.persistence.criteria.CriteriaExpression node)
Returns PREFIX as the default traversal style.- Specified by:
getTraversalStyle
in interfaceCriteriaExpressionVisitor
-
-