public class ToStringPlugin extends Object implements Plugin
Object.toString() and method to a class if the ToStringPlugin.Enhance annotation is present and no
explicit method declaration was added.| Modifier and Type | Class and Description |
|---|---|
static interface |
ToStringPlugin.Enhance
Instructs the
ToStringPlugin to generate a Object.toString() method for the annotated class unless this method
is already declared explicitly. |
static interface |
ToStringPlugin.Exclude
Determines that the annotated field is excluded from a string representation of the
ToStringPlugin. |
ElementMatcher.Junction<S>| Constructor and Description |
|---|
ToStringPlugin() |
| Modifier and Type | Method and Description |
|---|---|
DynamicType.Builder<?> |
apply(DynamicType.Builder<?> builder,
TypeDescription typeDescription)
Applies this plugin.
|
boolean |
matches(TypeDescription target)
Matches a target against this element matcher.
|
public boolean matches(TypeDescription target)
ElementMatchermatches in interface ElementMatcher<TypeDescription>target - The instance to be matched.true if the given element is matched by this matcher or false otherwise.public DynamicType.Builder<?> apply(DynamicType.Builder<?> builder, TypeDescription typeDescription)
PluginCopyright © 2014–2018. All rights reserved.