@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutablePointcutClass extends org.glowroot.agent.weaving.PluginDetail.PointcutClass
PluginDetail.PointcutClass.
Use the builder to create immutable instances:
ImmutablePointcutClass.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutablePointcutClass.Builder
Builds instances of type
ImmutablePointcutClass. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutablePointcutClass.Builder |
builder()
Creates a builder for
ImmutablePointcutClass. |
static ImmutablePointcutClass |
copyOf(org.glowroot.agent.weaving.PluginDetail.PointcutClass instance)
Creates an immutable copy of a
PluginDetail.PointcutClass value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutablePointcutClass that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
type, pointcut, methods, bytes, collocateInClassLoader, pluginJar. |
String |
toString()
Prints the immutable value
PointcutClass with attribute values. |
ImmutablePointcutClass |
withBytes(byte... elements)
Copy the current immutable object with elements that replace the content of
bytes. |
ImmutablePointcutClass |
withCollocateInClassLoader(boolean value)
Copy the current immutable object by setting a value for the
collocateInClassLoader attribute. |
ImmutablePointcutClass |
withMethods(Iterable<? extends org.glowroot.agent.weaving.PluginDetail.PointcutMethod> elements)
Copy the current immutable object with elements that replace the content of
methods. |
ImmutablePointcutClass |
withMethods(org.glowroot.agent.weaving.PluginDetail.PointcutMethod... elements)
Copy the current immutable object with elements that replace the content of
methods. |
ImmutablePointcutClass |
withPluginJar(File value)
Copy the current immutable object by setting a value for the
pluginJar attribute. |
ImmutablePointcutClass |
withPointcut(Pointcut value)
Copy the current immutable object by setting a value for the
pointcut attribute. |
ImmutablePointcutClass |
withType(org.objectweb.asm.Type value)
Copy the current immutable object by setting a value for the
type attribute. |
public static ImmutablePointcutClass.Builder builder()
ImmutablePointcutClass.
ImmutablePointcutClass.builder()
.type(org.objectweb.asm.Type) // required type
.pointcut(org.glowroot.agent.plugin.api.weaving.Pointcut) // required pointcut
.addMethods|addAllMethods(org.glowroot.agent.weaving.PluginDetail.PointcutMethod) // methods elements
.bytes(byte) // required bytes
.collocateInClassLoader(boolean) // required collocateInClassLoader
.pluginJar(java.io.File | null) // nullable pluginJar
.build();
public static ImmutablePointcutClass copyOf(org.glowroot.agent.weaving.PluginDetail.PointcutClass instance)
PluginDetail.PointcutClass 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)
ImmutablePointcutClass that have equal attribute values.public int hashCode()
type, pointcut, methods, bytes, collocateInClassLoader, pluginJar.public String toString()
PointcutClass with attribute values.public final ImmutablePointcutClass withBytes(byte... elements)
bytes.
The array is cloned before being saved as attribute values.elements - The non-null elements for bytesthis objectpublic final ImmutablePointcutClass withCollocateInClassLoader(boolean value)
collocateInClassLoader attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for collocateInClassLoaderthis objectpublic final ImmutablePointcutClass withMethods(Iterable<? extends org.glowroot.agent.weaving.PluginDetail.PointcutMethod> elements)
methods.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of methods elements to setthis objectpublic final ImmutablePointcutClass withMethods(org.glowroot.agent.weaving.PluginDetail.PointcutMethod... elements)
methods.elements - The elements to setthis objectpublic final ImmutablePointcutClass withPluginJar(@Nullable File value)
pluginJar attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for pluginJar (can be null)this objectpublic final ImmutablePointcutClass withPointcut(Pointcut value)
pointcut attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for pointcutthis objectpublic final ImmutablePointcutClass 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.