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>
,java.lang.constant.Constable
- 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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionUse the JVM-Driver library to try to gain access to private classloader fields or methods in order to determine the classpath.Use the Narcissus library to try to gain access to private classloader fields or methods in order to determine the classpath.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
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
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
Use the Narcissus library to try to gain access to private classloader fields or methods in order to determine the classpath. -
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 Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-