protected static class AsmVisitorWrapper.ForDeclaredMethods.Entry extends Object implements ElementMatcher<MethodDescription.InDefinedShape>, AsmVisitorWrapper.ForDeclaredMethods.MethodVisitorWrapper
ElementMatcher.Junction<S>
Modifier | Constructor and Description |
---|---|
protected |
Entry(ElementMatcher<? super MethodDescription.InDefinedShape> matcher,
AsmVisitorWrapper.ForDeclaredMethods.MethodVisitorWrapper methodVisitorWrapper)
Creates a new entry.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
int |
hashCode() |
boolean |
matches(MethodDescription.InDefinedShape target)
Matches a target against this element matcher.
|
String |
toString() |
MethodVisitor |
wrap(TypeDescription instrumentedType,
MethodDescription.InDefinedShape methodDescription,
MethodVisitor methodVisitor,
int writerFlags,
int readerFlags)
Wraps a method visitor.
|
protected Entry(ElementMatcher<? super MethodDescription.InDefinedShape> matcher, AsmVisitorWrapper.ForDeclaredMethods.MethodVisitorWrapper methodVisitorWrapper)
matcher
- The matcher to identify methods to be wrapped.methodVisitorWrapper
- The method visitor wrapper to be applied if the given matcher is matched.public boolean matches(MethodDescription.InDefinedShape target)
ElementMatcher
matches
in interface ElementMatcher<MethodDescription.InDefinedShape>
target
- The instance to be matched.true
if the given element is matched by this matcher or false
otherwise.public MethodVisitor wrap(TypeDescription instrumentedType, MethodDescription.InDefinedShape methodDescription, MethodVisitor methodVisitor, int writerFlags, int readerFlags)
AsmVisitorWrapper.ForDeclaredMethods.MethodVisitorWrapper
wrap
in interface AsmVisitorWrapper.ForDeclaredMethods.MethodVisitorWrapper
instrumentedType
- The instrumented type.methodDescription
- The method that is currently being defined.methodVisitor
- The original field visitor that defines the given method.writerFlags
- The ASM ClassWriter
reader flags to consider.readerFlags
- The ASM ClassReader
reader flags to consider.Copyright © 2014–2016. All rights reserved.