Package org.djutils.reflection
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-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 Summary
Constructors Constructor Description ClassFileDescriptor(File classFile)
Construct a ClassFileDescriptor from a File.ClassFileDescriptor(JarEntry jarEntry, String path)
Construct a ClassFileDescriptor from a JarEntry.ClassFileDescriptor(ZipEntry zipEntry, String path)
Construct a ClassFileDescriptor from a ZipEntry.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getLastChangedDate()
String
getName()
String
getPath()
boolean
isJar()
String
toString()
-
-
-
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
-
-