@HashCodeAndEqualsPlugin.Enhance public abstract static class Implementation.Target.AbstractBase extends Object implements Implementation.Target
Implementation.Target
.Modifier and Type | Class and Description |
---|---|
protected static class |
Implementation.Target.AbstractBase.DefaultMethodInvocation
Determines if default method invocations are possible.
|
Implementation.Target.AbstractBase, Implementation.Target.Factory
Modifier and Type | Field and Description |
---|---|
protected Implementation.Target.AbstractBase.DefaultMethodInvocation |
defaultMethodInvocation
The default method invocation mode to apply.
|
protected TypeDescription |
instrumentedType
The instrumented type.
|
protected MethodGraph.Linked |
methodGraph
The instrumented type's method graph.
|
Modifier | Constructor and Description |
---|---|
protected |
AbstractBase(TypeDescription instrumentedType,
MethodGraph.Linked methodGraph,
Implementation.Target.AbstractBase.DefaultMethodInvocation defaultMethodInvocation)
Creates a new implementation target.
|
Modifier and Type | Method and Description |
---|---|
TypeDescription |
getInstrumentedType()
Returns a description of the instrumented type.
|
Implementation.SpecialMethodInvocation |
invokeDefault(MethodDescription.SignatureToken token)
Creates a special method invocation for invoking a default method with the given token.
|
Implementation.SpecialMethodInvocation |
invokeDefault(MethodDescription.SignatureToken token,
TypeDescription targetType)
Creates a special method invocation for invoking a default method.
|
Implementation.SpecialMethodInvocation |
invokeDominant(MethodDescription.SignatureToken token)
Invokes a dominant method, i.e.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getOriginType, invokeSuper
protected final TypeDescription instrumentedType
protected final MethodGraph.Linked methodGraph
protected final Implementation.Target.AbstractBase.DefaultMethodInvocation defaultMethodInvocation
protected AbstractBase(TypeDescription instrumentedType, MethodGraph.Linked methodGraph, Implementation.Target.AbstractBase.DefaultMethodInvocation defaultMethodInvocation)
instrumentedType
- The instrumented type.methodGraph
- The instrumented type's method graph.defaultMethodInvocation
- The default method invocation mode to apply.public TypeDescription getInstrumentedType()
getInstrumentedType
in interface Implementation.Target
public Implementation.SpecialMethodInvocation invokeDefault(MethodDescription.SignatureToken token)
invokeDefault
in interface Implementation.Target
token
- A token of the method that is to be invoked as a default method.public Implementation.SpecialMethodInvocation invokeDefault(MethodDescription.SignatureToken token, TypeDescription targetType)
invokeDefault
in interface Implementation.Target
token
- A token that uniquely describes the method to invoke.targetType
- The interface on which the default method is to be invoked.public Implementation.SpecialMethodInvocation invokeDominant(MethodDescription.SignatureToken token)
invokeDominant
in interface Implementation.Target
token
- The method token representing the method to be invoked.Copyright © 2014–1970. All rights reserved.