protected static enum MethodCallProxy.ProxyMethodLookupEngine extends Enum<MethodCallProxy.ProxyMethodLookupEngine> implements MethodLookupEngine, MethodLookupEngine.Factory
MethodCallProxy
. This avoids a reflective lookup
of these methods what improves the runtime performance of this lookup.MethodLookupEngine.ConflictingInterfaceMethod, MethodLookupEngine.Default, MethodLookupEngine.Factory, MethodLookupEngine.Finding, MethodLookupEngine.OverridenClassMethod
Enum Constant and Description |
---|
INSTANCE
The singleton instance.
|
Modifier and Type | Method and Description |
---|---|
MethodLookupEngine |
make(boolean extractDefaultMethods)
Returns a
MethodLookupEngine . |
MethodLookupEngine.Finding |
process(TypeDescription typeDescription)
Retrieves all methods that can be called on a given type.
|
String |
toString() |
static MethodCallProxy.ProxyMethodLookupEngine |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MethodCallProxy.ProxyMethodLookupEngine[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MethodCallProxy.ProxyMethodLookupEngine INSTANCE
public static MethodCallProxy.ProxyMethodLookupEngine[] values()
for (MethodCallProxy.ProxyMethodLookupEngine c : MethodCallProxy.ProxyMethodLookupEngine.values()) System.out.println(c);
public static MethodCallProxy.ProxyMethodLookupEngine valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic 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.public MethodLookupEngine make(boolean extractDefaultMethods)
MethodLookupEngine.Factory
MethodLookupEngine
.make
in interface MethodLookupEngine.Factory
extractDefaultMethods
- true
if interface default methods should be resolved.MethodLookupEngine
.public String toString()
toString
in class Enum<MethodCallProxy.ProxyMethodLookupEngine>
Copyright © 2014–2015. All rights reserved.