Enum AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher.Trivial

    • Field Detail

      • matching

        private final boolean matching
        true if this matcher is matching.
    • Constructor Detail

      • Trivial

        private Trivial​(boolean matching)
        Creates a new trivial matcher for a resubmission upon an exception.
        Parameters:
        matching - true if this matcher is matching.
    • Method Detail

      • values

        public static AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher.Trivial[] 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.RedefinitionListenable.ResubmissionOnErrorMatcher.Trivial c : AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher.Trivial.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.RedefinitionListenable.ResubmissionOnErrorMatcher.Trivial 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​(java.lang.Throwable throwable,
                               java.lang.String typeName,
                               java.lang.ClassLoader classLoader,
                               JavaModule module)
        Returns true if a type should be resubmitted if it is not yet loaded and an exception occurs during instrumentation.
        Specified by:
        matches in interface AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher
        Parameters:
        throwable - The exception being raised.
        typeName - The name of the instrumented type.
        classLoader - The class loader of the instrumented type or null if the type is loaded by the bootstrap class loader.
        module - The module of the instrumented type or null if the current VM does not support modules.
        Returns:
        true if the type should be resubmitted.