@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutablePointcutMethod extends org.glowroot.agent.weaving.PluginDetail.PointcutMethod
PluginDetail.PointcutMethod.
Use the builder to create immutable instances:
ImmutablePointcutMethod.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutablePointcutMethod.Builder
Builds instances of type
ImmutablePointcutMethod. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutablePointcutMethod.Builder |
builder()
Creates a builder for
ImmutablePointcutMethod. |
static ImmutablePointcutMethod |
copyOf(org.glowroot.agent.weaving.PluginDetail.PointcutMethod instance)
Creates an immutable copy of a
PluginDetail.PointcutMethod value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutablePointcutMethod that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
name, descriptor, annotationTypes, parameterAnnotationTypes, toAsmMethod. |
String |
toString()
Prints the immutable value
PointcutMethod with attribute values. |
ImmutablePointcutMethod |
withAnnotationTypes(Iterable<? extends org.objectweb.asm.Type> elements)
Copy the current immutable object with elements that replace the content of
annotationTypes. |
ImmutablePointcutMethod |
withAnnotationTypes(org.objectweb.asm.Type... elements)
Copy the current immutable object with elements that replace the content of
annotationTypes. |
ImmutablePointcutMethod |
withDescriptor(String value)
Copy the current immutable object by setting a value for the
descriptor attribute. |
ImmutablePointcutMethod |
withName(String value)
Copy the current immutable object by setting a value for the
name attribute. |
ImmutablePointcutMethod |
withParameterAnnotationTypes(Map<Integer,? extends List<org.objectweb.asm.Type>> entries)
Copy the current immutable object by replacing the
parameterAnnotationTypes map with the specified map. |
public static ImmutablePointcutMethod.Builder builder()
ImmutablePointcutMethod.
ImmutablePointcutMethod.builder()
.name(String) // required name
.descriptor(String) // required descriptor
.addAnnotationTypes|addAllAnnotationTypes(org.objectweb.asm.Type) // annotationTypes elements
.putParameterAnnotationTypes|putAllParameterAnnotationTypes(int => List<org.objectweb.asm.Type>) // parameterAnnotationTypes mappings
.build();
public static ImmutablePointcutMethod copyOf(org.glowroot.agent.weaving.PluginDetail.PointcutMethod instance)
PluginDetail.PointcutMethod 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)
ImmutablePointcutMethod that have equal attribute values.public int hashCode()
name, descriptor, annotationTypes, parameterAnnotationTypes, toAsmMethod.public String toString()
PointcutMethod with attribute values.public final ImmutablePointcutMethod withAnnotationTypes(Iterable<? extends org.objectweb.asm.Type> elements)
annotationTypes.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of annotationTypes elements to setthis objectpublic final ImmutablePointcutMethod withAnnotationTypes(org.objectweb.asm.Type... elements)
annotationTypes.elements - The elements to setthis objectpublic final ImmutablePointcutMethod withDescriptor(String value)
descriptor attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for descriptorthis objectpublic final ImmutablePointcutMethod withName(String value)
name attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for namethis objectpublic final ImmutablePointcutMethod withParameterAnnotationTypes(Map<Integer,? extends List<org.objectweb.asm.Type>> entries)
parameterAnnotationTypes map with the specified map.
Nulls are not permitted as keys or values.
A shallow reference equality check is used to prevent copying of the same value by returning this.entries - The entries to be added to the parameterAnnotationTypes mapthis objectCopyright © 2011–2020 Glowroot contributors. All rights reserved.