Enum AgentBuilder.Default.Transformation.Ignored

    • Method Detail

      • values

        public static AgentBuilder.Default.Transformation.Ignored[] 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 (AgentBuilder.Default.Transformation.Ignored c : AgentBuilder.Default.Transformation.Ignored.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static AgentBuilder.Default.Transformation.Ignored valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • matches

        public boolean matches​(TypeDescription typeDescription,
                               java.lang.ClassLoader classLoader,
                               JavaModule module,
                               java.lang.Class<?> classBeingRedefined,
                               java.security.ProtectionDomain protectionDomain)
        Description copied from interface: AgentBuilder.RawMatcher
        Decides if the given typeDescription should be instrumented with the entailed AgentBuilder.Transformers.
        Specified by:
        matches in interface AgentBuilder.RawMatcher
        Parameters:
        typeDescription - A description of the type to be instrumented.
        classLoader - The class loader of the instrumented type. Might be null if this class loader represents the bootstrap class loader.
        module - The transformed type's module or null if the current VM does not support modules.
        classBeingRedefined - The class being redefined which is only not null if a retransformation is applied.
        protectionDomain - The protection domain of the type being transformed.
        Returns:
        true if the entailed AgentBuilder.Transformers should be applied for the given typeDescription.
      • resolve

        public AgentBuilder.Default.Transformation.Resolution resolve​(TypeDescription typeDescription,
                                                                      java.lang.ClassLoader classLoader,
                                                                      JavaModule module,
                                                                      java.lang.Class<?> classBeingRedefined,
                                                                      boolean loaded,
                                                                      java.security.ProtectionDomain protectionDomain,
                                                                      TypePool typePool)
        Description copied from interface: AgentBuilder.Default.Transformation
        Resolves an attempted transformation to a specific transformation.
        Specified by:
        resolve in interface AgentBuilder.Default.Transformation
        Parameters:
        typeDescription - A description of the type that is to be transformed.
        classLoader - The class loader of the type being transformed.
        module - The transformed type's module or null if the current VM does not support modules.
        classBeingRedefined - In case of a type redefinition, the loaded type being transformed or null if that is not the case.
        loaded - true if the instrumented type is loaded.
        protectionDomain - The protection domain of the type being transformed.
        typePool - The type pool to apply during type creation.
        Returns:
        A resolution for the given type.