protected static class AsmVisitorWrapper.ForDeclaredFields.Entry extends Object implements ElementMatcher<FieldDescription.InDefinedShape>, AsmVisitorWrapper.ForDeclaredFields.FieldVisitorWrapper
ElementMatcher.Junction<S>| Modifier | Constructor and Description |
|---|---|
protected |
Entry(ElementMatcher<? super FieldDescription.InDefinedShape> matcher,
AsmVisitorWrapper.ForDeclaredFields.FieldVisitorWrapper fieldVisitorWrapper)
Creates a new entry.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
int |
hashCode() |
boolean |
matches(FieldDescription.InDefinedShape target)
Matches a target against this element matcher.
|
String |
toString() |
FieldVisitor |
wrap(TypeDescription instrumentedType,
FieldDescription.InDefinedShape fieldDescription,
FieldVisitor fieldVisitor)
Wraps a field visitor.
|
protected Entry(ElementMatcher<? super FieldDescription.InDefinedShape> matcher, AsmVisitorWrapper.ForDeclaredFields.FieldVisitorWrapper fieldVisitorWrapper)
matcher - The matcher to identify fields to be wrapped.fieldVisitorWrapper - The field visitor wrapper to be applied if the given matcher is matched.public boolean matches(FieldDescription.InDefinedShape target)
ElementMatchermatches in interface ElementMatcher<FieldDescription.InDefinedShape>target - The instance to be matched.true if the given element is matched by this matcher or false otherwise.public FieldVisitor wrap(TypeDescription instrumentedType, FieldDescription.InDefinedShape fieldDescription, FieldVisitor fieldVisitor)
AsmVisitorWrapper.ForDeclaredFields.FieldVisitorWrapperwrap in interface AsmVisitorWrapper.ForDeclaredFields.FieldVisitorWrapperinstrumentedType - The instrumented type.fieldDescription - The field that is currently being defined.fieldVisitor - The original field visitor that defines the given field.Copyright © 2014–2016. All rights reserved.