public static class BridgeMethodResolver.Simple extends Object implements BridgeMethodResolver
Modifier and Type | Class and Description |
---|---|
static interface |
BridgeMethodResolver.Simple.BridgeTarget
A target of a resolved bridge method which is created by a
BridgeMethodResolver.Simple . |
static interface |
BridgeMethodResolver.Simple.ConflictHandler
A conflict handler is queried for resolving a bridge method with multiple possible target methods.
|
static class |
BridgeMethodResolver.Simple.Factory
A factory for creating
BridgeMethodResolver.Simple instances
for any given default BridgeMethodResolver.Simple.ConflictHandler . |
BridgeMethodResolver.NoOp, BridgeMethodResolver.Simple
Constructor and Description |
---|
Simple(MethodList methodList,
BridgeMethodResolver.Simple.ConflictHandler conflictHandler)
Creates a new simple bridge method resolver.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
int |
hashCode() |
MethodDescription |
resolve(MethodDescription methodDescription)
Resolves a method which is potentially a bridge method.
|
String |
toString() |
public Simple(MethodList methodList, BridgeMethodResolver.Simple.ConflictHandler conflictHandler)
methodList
- The relevant methods which can be called in a given context.conflictHandler
- A conflict handler that is queried for handling ambiguous resolutions.public MethodDescription resolve(MethodDescription methodDescription)
BridgeMethodResolver
resolve
in interface BridgeMethodResolver
methodDescription
- The method to resolve in cases it is a bridge method.Copyright © 2014. All rights reserved.