Package net.bytebuddy.agent.builder
Enum AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher.Trivial
- java.lang.Object
-
- java.lang.Enum<AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher.Trivial>
-
- net.bytebuddy.agent.builder.AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher.Trivial
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher.Trivial>
,AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher
- Enclosing interface:
- AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher
public static enum AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher.Trivial extends java.lang.Enum<AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher.Trivial> implements AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher
A trivial matcher for immediate resubmission.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.agent.builder.AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher
AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher.Conjunction, AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher.Disjunction, AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher.ForElementMatchers, AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher.Trivial
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MATCHING
Always matches a type.NON_MATCHING
Never matches a type.
-
Field Summary
Fields Modifier and Type Field Description private boolean
matching
true
if this matcher is matching.
-
Constructor Summary
Constructors Modifier Constructor Description private
Trivial(boolean matching)
Creates a new trivial matcher for immediate resubmission.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
matches(java.lang.String typeName, java.lang.ClassLoader classLoader, JavaModule module)
Returnstrue
if a type should be resubmitted if it is not yet loaded.static AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher.Trivial
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher.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.ResubmissionImmediateMatcher.Trivial MATCHING
Always matches a type.
-
NON_MATCHING
public static final AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher.Trivial NON_MATCHING
Never matches a type.
-
-
Method Detail
-
values
public static AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher.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.ResubmissionImmediateMatcher.Trivial c : AgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher.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.ResubmissionImmediateMatcher.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.String typeName, @MaybeNull java.lang.ClassLoader classLoader, @MaybeNull JavaModule module)
Returnstrue
if a type should be resubmitted if it is not yet loaded.- Specified by:
matches
in interfaceAgentBuilder.RedefinitionListenable.ResubmissionImmediateMatcher
- Parameters:
typeName
- The name of the instrumented type.classLoader
- The class loader of the instrumented type ornull
if the type is loaded by the bootstrap class loader.module
- The module of the instrumented type ornull
if the current VM does not support modules.- Returns:
true
if the type should be resubmitted.
-
-