@HashCodeAndEqualsPlugin.Enhance public static class Plugin.Engine.Source.Origin.Filtering extends Object implements Plugin.Engine.Source.Origin
ElementMatcher is applied prior to iteration.Plugin.Engine.Source.Origin.Filtering, Plugin.Engine.Source.Origin.ForJarFileNO_MANIFEST| Constructor and Description |
|---|
Filtering(Plugin.Engine.Source.Origin delegate,
ElementMatcher<Plugin.Engine.Source.Element> matcher)
Creates a new filtering origin that retains the delegated origin's manifest.
|
Filtering(Plugin.Engine.Source.Origin delegate,
ElementMatcher<Plugin.Engine.Source.Element> matcher,
boolean manifest)
Creates a new filtering origin.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
ClassFileLocator |
getClassFileLocator()
Returns a class file locator for the represented source.
|
Manifest |
getManifest()
Returns the manifest file of the source location or
null if no manifest exists. |
Iterator<Plugin.Engine.Source.Element> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic Filtering(Plugin.Engine.Source.Origin delegate, ElementMatcher<Plugin.Engine.Source.Element> matcher)
delegate - The origin to which invocations are delegated.matcher - The element matcher being used to filter elements.public Filtering(Plugin.Engine.Source.Origin delegate, ElementMatcher<Plugin.Engine.Source.Element> matcher, boolean manifest)
delegate - The origin to which invocations are delegated.matcher - The element matcher being used to filter elements.manifest - true if the manifest should be retained.@MaybeNull public Manifest getManifest() throws IOException
null if no manifest exists.getManifest in interface Plugin.Engine.Source.Originnull.IOException - If an I/O error occurs.public ClassFileLocator getClassFileLocator()
getClassFileLocator in interface Plugin.Engine.Source.Originpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic Iterator<Plugin.Engine.Source.Element> iterator()
iterator in interface Iterable<Plugin.Engine.Source.Element>Copyright © 2014–2023. All rights reserved.