public static class MethodLookupEngine.Default extends Object implements MethodLookupEngine
Class.getMethods()
.
However, conflicting interface methods are represented by
MethodLookupEngine.ConflictingInterfaceMethod
instances.Modifier and Type | Class and Description |
---|---|
static class |
MethodLookupEngine.Default.DefaultMethodLookup
Determines if default methods are extracted when analyzing a given type.
|
static class |
MethodLookupEngine.Default.Factory
A factory for creating
MethodLookupEngine.Default lookup
engines. |
MethodLookupEngine.ConflictingInterfaceMethod, MethodLookupEngine.Default, MethodLookupEngine.Finding
Constructor and Description |
---|
Default(MethodLookupEngine.Default.DefaultMethodLookup defaultMethodLookup)
Creates a new default method lookup engine.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
int |
hashCode() |
MethodLookupEngine.Finding |
process(TypeDescription typeDescription)
Retrieves all methods that can be called on a given type.
|
String |
toString() |
public Default(MethodLookupEngine.Default.DefaultMethodLookup defaultMethodLookup)
defaultMethodLookup
- Determines if default method lookup is enabled.public MethodLookupEngine.Finding process(TypeDescription typeDescription)
MethodLookupEngine
Class.getMethods()
, methods of identical
signature of incompatible interfaces must only be returned once. These methods should be represented by some
sort of virtual method description which is fully aware of its state. All virtually invokable methods must be
contained in this lookup. Static methods, constructors and private methods must however only be contained
for the actual class's type.
The
process
in interface MethodLookupEngine
typeDescription
- The type for which all invokable methods should be looked up.Copyright © 2014. All rights reserved.