br.com.objectos.fs
R - the type of the result of the visit operationP - the type of the additional valuepublic class SimplePathNameVisitor<R,P> extends Object implements PathNameVisitor<R,P>
PathName instances.| Constructor and Description |
|---|
SimplePathNameVisitor() |
| Modifier and Type | Method and Description |
|---|---|
protected R |
defaultAction(PathName pathName,
P p)
The default action for visit methods.
|
R |
visitDirectory(Directory directory,
P p)
Visits a directory.
|
R |
visitNotFound(ResolvedPath notFound,
P p)
Visits a nonexistent file.
|
R |
visitRegularFile(RegularFile file,
P p)
Visits a regular file.
|
public R visitDirectory(Directory directory, P p) throws IOException
visitDirectory in interface PathNameVisitor<R,P>directory - the directory instancep - an additional valueIOException - if an I/O error occurspublic R visitNotFound(ResolvedPath notFound, P p) throws IOException
visitNotFound in interface PathNameVisitor<R,P>notFound - the nonexistent filep - an additional valueIOException - if an I/O error occurspublic R visitRegularFile(RegularFile file, P p) throws IOException
visitRegularFile in interface PathNameVisitor<R,P>file - the regular filep - an additional valueIOException - if an I/O error occursprotected R defaultAction(PathName pathName, P p) throws IOException
pathName - the path name to processp - an additional valuenull unless overriddenIOException - may be thrown if overriddenCopyright © 2021–2022 Objectos Software LTDA. All rights reserved.