Package io.github.classgraph
Enum ClassGraph.CircumventEncapsulationMethod
- java.lang.Object
-
- java.lang.Enum<ClassGraph.CircumventEncapsulationMethod>
-
- io.github.classgraph.ClassGraph.CircumventEncapsulationMethod
-
- All Implemented Interfaces:
Serializable
,Comparable<ClassGraph.CircumventEncapsulationMethod>
- Enclosing class:
- ClassGraph
public static enum ClassGraph.CircumventEncapsulationMethod extends Enum<ClassGraph.CircumventEncapsulationMethod>
Method to use to attempt to circumvent encapsulation in JDK 16+, in order to get access to a classloader's private classpath.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description JVM_DRIVER
Use the JVM-Driver library to try to gain access to private classloader fields or methods in order to determine the classpath.NARCISSUS
Use the Narcissus library to try to gain access to private classloader fields or methods in order to determine the classpath.NONE
Use the reflection API andAccessibleObject.setAccessible(boolean)
to try to gain access to private classpath fields or methods in order to determine the classpath.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ClassGraph.CircumventEncapsulationMethod
valueOf(String name)
Returns the enum constant of this type with the specified name.static ClassGraph.CircumventEncapsulationMethod[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final ClassGraph.CircumventEncapsulationMethod NONE
Use the reflection API andAccessibleObject.setAccessible(boolean)
to try to gain access to private classpath fields or methods in order to determine the classpath.
-
NARCISSUS
public static final ClassGraph.CircumventEncapsulationMethod NARCISSUS
Use the Narcissus library to try to gain access to private classloader fields or methods in order to determine the classpath.
-
JVM_DRIVER
public static final ClassGraph.CircumventEncapsulationMethod JVM_DRIVER
Use the JVM-Driver library to try to gain access to private classloader fields or methods in order to determine the classpath.
-
-
Method Detail
-
values
public static ClassGraph.CircumventEncapsulationMethod[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ClassGraph.CircumventEncapsulationMethod c : ClassGraph.CircumventEncapsulationMethod.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ClassGraph.CircumventEncapsulationMethod valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-