Class IterableVisitor
- java.lang.Object
-
- science.aist.gtf.verification.syntactic.visitor.AbstractVisitor<Iterable<?>>
-
- science.aist.gtf.verification.syntactic.visitor.IterableVisitor
-
- All Implemented Interfaces:
ConstraintVisitor<Iterable<?>>
public class IterableVisitor extends AbstractVisitor<Iterable<?>>
Visitor for an iterable
- Since:
- 1.0
- Author:
- Christoph Praschl
-
-
Field Summary
-
Fields inherited from class science.aist.gtf.verification.syntactic.visitor.AbstractVisitor
visitorFactory
-
-
Constructor Summary
Constructors Constructor Description IterableVisitor(RestrictedVisitorFactory visitorFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PropertyVerificatorResult
visit(Iterable<?> toVisit, Field fieldOfToVisitInParent, Object parent, Collection<Object> visitedObjs)
Visit method for visiting an iterable-
Methods inherited from class science.aist.gtf.verification.syntactic.visitor.AbstractVisitor
visit
-
-
-
-
Constructor Detail
-
IterableVisitor
public IterableVisitor(RestrictedVisitorFactory visitorFactory)
-
-
Method Detail
-
visit
public PropertyVerificatorResult visit(Iterable<?> toVisit, Field fieldOfToVisitInParent, Object parent, Collection<Object> visitedObjs)
Visit method for visiting an iterable- Parameters:
toVisit
- An iterable which should be visitedfieldOfToVisitInParent
- the corresponding field in the parent of which toVisit contains the valueparent
- The parent object wrapping the toVisit objectvisitedObjs
- A list of already visited objects to avoid circular calls- Returns:
- A map of objects and its fields which break a constraint
-
-