public class ClassVisitFilter extends Object implements IVisitFilter
IVisitFilter
that restricts visitors to only visiting objects of the specified classANY
Constructor and Description |
---|
ClassVisitFilter(Class<?> clazz)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
visitChildren(Object object)
Controls whether or not the
object 's children will be visited |
boolean |
visitObject(Object object)
Controls whether or not the
object will be visited |
public ClassVisitFilter(Class<?> clazz)
clazz
- class of objects that visitors should be restricted topublic boolean visitChildren(Object object)
object
's children will be visitedvisitChildren
in interface IVisitFilter
true
if the object's children should be visitedpublic boolean visitObject(Object object)
object
will be visitedvisitObject
in interface IVisitFilter
true
if the object should be visitedCopyright © 2006–2021 Apache Software Foundation. All rights reserved.