Package net.bytebuddy.agent.builder
Enum AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher.Trivial
- java.lang.Object
-
- java.lang.Enum<AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher.Trivial>
-
- net.bytebuddy.agent.builder.AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher.Trivial
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher.Trivial>,AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher
- Enclosing interface:
- AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher
public static enum AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher.Trivial extends java.lang.Enum<AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher.Trivial> implements AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher
A trivial matcher for resubmission upon an exception.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.agent.builder.AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher
AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher.Conjunction, AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher.Disjunction, AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher.ForElementMatchers, AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher.Trivial
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MATCHINGAlways matches a type.NON_MATCHINGNever matches a type.
-
Field Summary
Fields Modifier and Type Field Description private booleanmatchingtrueif this matcher is matching.
-
Constructor Summary
Constructors Modifier Constructor Description privateTrivial(boolean matching)Creates a new trivial matcher for a resubmission upon an exception.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanmatches(java.lang.Throwable throwable, java.lang.String typeName, java.lang.ClassLoader classLoader, JavaModule module)Returnstrueif a type should be resubmitted if it is not yet loaded and an exception occurs during instrumentation.static AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher.TrivialvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher.Trivial[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MATCHING
public static final AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher.Trivial MATCHING
Always matches a type.
-
NON_MATCHING
public static final AgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher.Trivial NON_MATCHING
Never matches a type.
-
-
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 namejava.lang.NullPointerException- if the argument is null
-
matches
public boolean matches(java.lang.Throwable throwable, java.lang.String typeName, @MaybeNull java.lang.ClassLoader classLoader, @MaybeNull JavaModule module)Returnstrueif a type should be resubmitted if it is not yet loaded and an exception occurs during instrumentation.- Specified by:
matchesin interfaceAgentBuilder.RedefinitionListenable.ResubmissionOnErrorMatcher- Parameters:
throwable- The exception being raised.typeName- The name of the instrumented type.classLoader- The class loader of the instrumented type ornullif the type is loaded by the bootstrap class loader.module- The module of the instrumented type ornullif the current VM does not support modules.- Returns:
trueif the type should be resubmitted.
-
-