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
Modifier | Constructor and Description |
---|---|
protected |
Simple(Map<String,BridgeMethodResolver.Simple.BridgeTarget> bridges)
Creates a new simple bridge method resolver.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
int |
hashCode() |
static BridgeMethodResolver |
of(MethodList methodList,
BridgeMethodResolver.Simple.ConflictHandler conflictHandler)
Creates a new bridge method resolver for the given list of methods.
|
MethodDescription |
resolve(MethodDescription methodDescription)
Resolves a method which is potentially a bridge method.
|
String |
toString() |
protected Simple(Map<String,BridgeMethodResolver.Simple.BridgeTarget> bridges)
bridges
- A map of all bridges mapped by their unique signature.public static BridgeMethodResolver of(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–2015. All rights reserved.