@NotThreadSafe public static final class ImmutablePointcutClassName.Builder extends Object
ImmutablePointcutClassName.
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 |
|---|---|
ImmutablePointcutClassName |
build()
Builds a new
ImmutablePointcutClassName. |
ImmutablePointcutClassName.Builder |
copyFrom(LiveWeavingServiceImpl.PointcutClassName instance)
Fill a builder with attribute values from the provided
PointcutClassName instance. |
ImmutablePointcutClassName.Builder |
doNotMatchSubClasses(boolean doNotMatchSubClasses)
Initializes the value for the
doNotMatchSubClasses attribute. |
ImmutablePointcutClassName.Builder |
nonPattern(String nonPattern)
Initializes the value for the
nonPattern attribute. |
ImmutablePointcutClassName.Builder |
pattern(Pattern pattern)
Initializes the value for the
pattern attribute. |
ImmutablePointcutClassName.Builder |
subTypeRestriction(LiveWeavingServiceImpl.PointcutClassName subTypeRestriction)
Initializes the value for the
subTypeRestriction attribute. |
public ImmutablePointcutClassName build()
ImmutablePointcutClassName.IllegalStateException - if any required attributes are missingpublic final ImmutablePointcutClassName.Builder copyFrom(LiveWeavingServiceImpl.PointcutClassName instance)
PointcutClassName instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ImmutablePointcutClassName.Builder doNotMatchSubClasses(boolean doNotMatchSubClasses)
doNotMatchSubClasses attribute.doNotMatchSubClasses - The value for doNotMatchSubClassesthis builder for use in a chained invocationpublic final ImmutablePointcutClassName.Builder nonPattern(String nonPattern)
nonPattern attribute.nonPattern - The value for nonPattern (can be null)this builder for use in a chained invocationpublic final ImmutablePointcutClassName.Builder pattern(Pattern pattern)
pattern attribute.pattern - The value for pattern (can be null)this builder for use in a chained invocationpublic final ImmutablePointcutClassName.Builder subTypeRestriction(LiveWeavingServiceImpl.PointcutClassName subTypeRestriction)
subTypeRestriction attribute.subTypeRestriction - The value for subTypeRestriction (can be null)this builder for use in a chained invocationCopyright © 2011–2020 Glowroot contributors. All rights reserved.