Class Plugin.Engine.Source.Element.ForJarEntry

    • Constructor Detail

      • ForJarEntry

        public ForJarEntry​(JarFile file,
                           JarEntry entry)
        Creates a new element representation for a jar file entry.
        Parameters:
        file - The source's underlying jar file.
        entry - The entry that is represented by this element.
    • Method Detail

      • resolveAs

        public <T> T resolveAs​(Class<T> type)
        Resolves this element to a more specialized form if possible. Doing so allows for performance optimizations if more specialized formats are available.
        Specified by:
        resolveAs in interface Plugin.Engine.Source.Element
        Type Parameters:
        T - The requested spezialized type.
        Parameters:
        type - The requested spezialized type.
        Returns:
        The resolved element or null if a transformation is impossible.