Interface NamespaceVisitor
- All Known Implementing Classes:
INodeCountVisitor,NamespacePrintVisitor
public interface NamespaceVisitor
For visiting namespace trees.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classSnapshot and INode.static interfaceFor visiting anyINode. -
Method Summary
Modifier and TypeMethodDescriptionstatic Iterable<NamespaceVisitor.Element>getChildren(INodeDirectory dir, int snapshot) default NamespaceVisitor.INodeVisitorstatic Iterable<NamespaceVisitor.Element>getSnapshots(DirectorySnapshottableFeature snapshottable) default voidpostVisitReferred(INode referred) Right after visiting the given referredINode.default voidpostVisitSub(NamespaceVisitor.Element sub, int index, boolean isLast) Right after visiting the given subNamespaceVisitor.Element.default voidpreVisitReferred(INode referred) Right before visiting the given referredINode.default voidpreVisitSub(NamespaceVisitor.Element sub, int index, boolean isLast) Right before visiting the given subNamespaceVisitor.Element.default voidvisitDirectory(INodeDirectory dir, int snapshot) Visiting the givenINodeDirectory(non-recursively).default voidvisitDirectoryRecursively(INodeDirectory dir, int snapshot) First visit the givenINodeDirectory; then the children; and then, if snapshottable, the snapshots.default voidVisiting the givenINodeFile.default voidvisitReference(INodeReference ref, int snapshot) Visiting the givenINodeReference(non-recursively).default voidvisitReferenceRecursively(INodeReference ref, int snapshot) First visit the givenINodeReferenceand then the referred.default voidvisitSnapshottable(INodeDirectory dir, DirectorySnapshottableFeature snapshottable) Visiting aDirectorySnapshottableFeature.default voidVisiting the subNamespaceVisitor.Elements recursively.default voidvisitSymlink(INodeSymlink symlink, int snapshot) Visiting the givenINodeSymlink.
-
Method Details
-
getDefaultVisitor
- Returns:
- the default (non-recursive)
NamespaceVisitor.INodeVisitor.
-
visitFile
Visiting the givenINodeFile. -
visitSymlink
Visiting the givenINodeSymlink. -
visitReference
Visiting the givenINodeReference(non-recursively). -
visitReferenceRecursively
First visit the givenINodeReferenceand then the referred. -
preVisitReferred
Right before visiting the given referredINode. -
postVisitReferred
Right after visiting the given referredINode. -
visitDirectory
Visiting the givenINodeDirectory(non-recursively). -
visitDirectoryRecursively
First visit the givenINodeDirectory; then the children; and then, if snapshottable, the snapshots. -
preVisitSub
Right before visiting the given subNamespaceVisitor.Element. The sub element may be a child of anINodeDirectoryor a snapshot inDirectorySnapshottableFeature.- Parameters:
sub- the element to be visited.index- the index of the sub element.isLast- is the sub element the last element?
-
postVisitSub
Right after visiting the given subNamespaceVisitor.Element. The sub element may be a child of anINodeDirectoryor a snapshot inDirectorySnapshottableFeature.- Parameters:
sub- the element just visited.index- the index of the sub element.isLast- is the sub element the last element?
-
visitSnapshottable
Visiting aDirectorySnapshottableFeature. -
visitSubs
Visiting the subNamespaceVisitor.Elements recursively.- Parameters:
subs- the children of anINodeDirectoryor the snapshots inDirectorySnapshottableFeature.
-
getChildren
- Returns:
- the children as
NamespaceVisitor.Elements.
-
getSnapshots
- Returns:
- the snapshots as
NamespaceVisitor.Elements.
-