Class ClassUtil.ClassFileDescriptor

java.lang.Object
org.djutils.reflection.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-2024 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 Details

    • 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 Details

    • getName

      public String getName()
      Returns:
      name
    • getPath

      public String getPath()
      Returns:
      path
    • isJar

      public boolean isJar()
      Returns:
      jar
    • getLastChangedDate

      public long getLastChangedDate()
      Returns:
      lastChangedDate
    • toString

      public String toString()
      Overrides:
      toString in class Object