Class ClassUtil.ClassFileDescriptor

  • Enclosing class:
    ClassUtil

    public static class ClassUtil.ClassFileDescriptor
    extends Object
    ClassFileDescriptor contains some information about a class file, either stand-alone on the classpath, or within a Jar file.

    Copyright (c) 2019-2023 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information www.simulation.tudelft.nl. The source code and binary code of this software is proprietary information of Delft University of Technology.
    Author:
    Alexander Verbraeck
    • Constructor Detail

      • ClassFileDescriptor

        public ClassFileDescriptor​(File classFile)
        Construct a ClassFileDescriptor from a File.
        Parameters:
        classFile - File; the file to use.
      • ClassFileDescriptor

        public ClassFileDescriptor​(JarEntry jarEntry,
                                   String path)
        Construct a ClassFileDescriptor from a JarEntry.
        Parameters:
        jarEntry - JarEntry; the JarEntry to use.
        path - String; the path of the JarEntry
      • ClassFileDescriptor

        public ClassFileDescriptor​(ZipEntry zipEntry,
                                   String path)
        Construct a ClassFileDescriptor from a ZipEntry.
        Parameters:
        zipEntry - ZipEntry; the ZipEntry to use.
        path - String; the path of the ZipEntry
    • Method Detail

      • getName

        public String getName()
        Returns:
        name
      • getPath

        public String getPath()
        Returns:
        path
      • isJar

        public boolean isJar()
        Returns:
        jar
      • getLastChangedDate

        public long getLastChangedDate()
        Returns:
        lastChangedDate