@NotThreadSafe public static final class ImmutableLazyDefinedClass.Builder extends Object
ImmutableLazyDefinedClass.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
| Modifier and Type | Method and Description |
|---|---|
ImmutableLazyDefinedClass.Builder |
addAllDependencies(Iterable<? extends org.glowroot.agent.weaving.ClassLoaders.LazyDefinedClass> elements)
Adds elements to
dependencies list. |
ImmutableLazyDefinedClass.Builder |
addDependencies(org.glowroot.agent.weaving.ClassLoaders.LazyDefinedClass... elements)
Adds elements to
dependencies list. |
ImmutableLazyDefinedClass.Builder |
addDependencies(org.glowroot.agent.weaving.ClassLoaders.LazyDefinedClass element)
Adds one element to
dependencies list. |
ImmutableLazyDefinedClass |
build()
Builds a new
ImmutableLazyDefinedClass. |
ImmutableLazyDefinedClass.Builder |
bytes(byte... bytes)
Initializes the value for the
bytes attribute. |
ImmutableLazyDefinedClass.Builder |
copyFrom(org.glowroot.agent.weaving.ClassLoaders.LazyDefinedClass instance)
Fill a builder with attribute values from the provided
LazyDefinedClass instance. |
ImmutableLazyDefinedClass.Builder |
dependencies(Iterable<? extends org.glowroot.agent.weaving.ClassLoaders.LazyDefinedClass> elements)
Sets or replaces all elements for
dependencies list. |
ImmutableLazyDefinedClass.Builder |
type(org.objectweb.asm.Type type)
Initializes the value for the
type attribute. |
public final ImmutableLazyDefinedClass.Builder addAllDependencies(Iterable<? extends org.glowroot.agent.weaving.ClassLoaders.LazyDefinedClass> elements)
dependencies list.elements - An iterable of dependencies elementsthis builder for use in a chained invocationpublic final ImmutableLazyDefinedClass.Builder addDependencies(org.glowroot.agent.weaving.ClassLoaders.LazyDefinedClass... elements)
dependencies list.elements - An array of dependencies elementsthis builder for use in a chained invocationpublic final ImmutableLazyDefinedClass.Builder addDependencies(org.glowroot.agent.weaving.ClassLoaders.LazyDefinedClass element)
dependencies list.element - A dependencies elementthis builder for use in a chained invocationpublic ImmutableLazyDefinedClass build()
ImmutableLazyDefinedClass.IllegalStateException - if any required attributes are missingpublic final ImmutableLazyDefinedClass.Builder bytes(byte... bytes)
bytes attribute.bytes - The elements for bytesthis builder for use in a chained invocationpublic final ImmutableLazyDefinedClass.Builder copyFrom(org.glowroot.agent.weaving.ClassLoaders.LazyDefinedClass instance)
LazyDefinedClass instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.
Collection elements and entries will be added, not replaced.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ImmutableLazyDefinedClass.Builder dependencies(Iterable<? extends org.glowroot.agent.weaving.ClassLoaders.LazyDefinedClass> elements)
dependencies list.elements - An iterable of dependencies elementsthis builder for use in a chained invocationpublic final ImmutableLazyDefinedClass.Builder type(org.objectweb.asm.Type type)
type attribute.type - The value for typethis builder for use in a chained invocationCopyright © 2011–2020 Glowroot contributors. All rights reserved.