@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableMixinClass extends org.glowroot.agent.weaving.PluginDetail.MixinClass
PluginDetail.MixinClass.
Use the builder to create immutable instances:
ImmutableMixinClass.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableMixinClass.Builder
Builds instances of type
ImmutableMixinClass. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableMixinClass.Builder |
builder()
Creates a builder for
ImmutableMixinClass. |
static ImmutableMixinClass |
copyOf(org.glowroot.agent.weaving.PluginDetail.MixinClass instance)
Creates an immutable copy of a
PluginDetail.MixinClass value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableMixinClass that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
type, interfaces, mixin, initMethodName, bytes. |
String |
toString()
Prints the immutable value
MixinClass with attribute values. |
ImmutableMixinClass |
withBytes(byte... elements)
Copy the current immutable object with elements that replace the content of
bytes. |
ImmutableMixinClass |
withInitMethodName(String value)
Copy the current immutable object by setting a value for the
initMethodName attribute. |
ImmutableMixinClass |
withInterfaces(Iterable<? extends org.objectweb.asm.Type> elements)
Copy the current immutable object with elements that replace the content of
interfaces. |
ImmutableMixinClass |
withInterfaces(org.objectweb.asm.Type... elements)
Copy the current immutable object with elements that replace the content of
interfaces. |
ImmutableMixinClass |
withMixin(Mixin value)
Copy the current immutable object by setting a value for the
mixin attribute. |
ImmutableMixinClass |
withType(org.objectweb.asm.Type value)
Copy the current immutable object by setting a value for the
type attribute. |
public static ImmutableMixinClass.Builder builder()
ImmutableMixinClass.
ImmutableMixinClass.builder()
.type(org.objectweb.asm.Type) // required type
.addInterfaces|addAllInterfaces(org.objectweb.asm.Type) // interfaces elements
.mixin(org.glowroot.agent.plugin.api.weaving.Mixin) // required mixin
.initMethodName(String | null) // nullable initMethodName
.bytes(byte) // required bytes
.build();
public static ImmutableMixinClass copyOf(org.glowroot.agent.weaving.PluginDetail.MixinClass instance)
PluginDetail.MixinClass value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic boolean equals(@Nullable Object another)
ImmutableMixinClass that have equal attribute values.public int hashCode()
type, interfaces, mixin, initMethodName, bytes.public String toString()
MixinClass with attribute values.public final ImmutableMixinClass withBytes(byte... elements)
bytes.
The array is cloned before being saved as attribute values.elements - The non-null elements for bytesthis objectpublic final ImmutableMixinClass withInitMethodName(@Nullable String value)
initMethodName attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for initMethodName (can be null)this objectpublic final ImmutableMixinClass withInterfaces(Iterable<? extends org.objectweb.asm.Type> elements)
interfaces.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of interfaces elements to setthis objectpublic final ImmutableMixinClass withInterfaces(org.objectweb.asm.Type... elements)
interfaces.elements - The elements to setthis objectpublic final ImmutableMixinClass withMixin(Mixin value)
mixin attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for mixinthis objectpublic final ImmutableMixinClass withType(org.objectweb.asm.Type value)
type attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for typethis objectCopyright © 2011–2020 Glowroot contributors. All rights reserved.