public enum TrivialType extends Enum<TrivialType> implements AuxiliaryType, MethodLookupEngine.Factory, MethodLookupEngine
Object without defining any fields, methods or constructors.
This type is meant to be used as a marker type only.AuxiliaryType.MethodAccessorFactory, AuxiliaryType.NamingStrategyMethodLookupEngine.ConflictingInterfaceMethod, MethodLookupEngine.Default, MethodLookupEngine.Factory, MethodLookupEngine.Finding, MethodLookupEngine.OverriddenClassMethod| Enum Constant and Description |
|---|
INSTANCE
The singleton instance.
|
DEFAULT_TYPE_MODIFIER| Modifier and Type | Method and Description |
|---|---|
MethodLookupEngine |
make(boolean extractDefaultMethods)
Returns a
MethodLookupEngine. |
DynamicType |
make(String auxiliaryTypeName,
ClassFileVersion classFileVersion,
AuxiliaryType.MethodAccessorFactory methodAccessorFactory)
Creates a new auxiliary type.
|
MethodLookupEngine.Finding |
process(TypeDescription typeDescription)
Retrieves all methods that can be called on a given type.
|
String |
toString() |
static TrivialType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TrivialType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TrivialType INSTANCE
public static TrivialType[] values()
for (TrivialType c : TrivialType.values()) System.out.println(c);
public static TrivialType 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 DynamicType make(String auxiliaryTypeName, ClassFileVersion classFileVersion, AuxiliaryType.MethodAccessorFactory methodAccessorFactory)
AuxiliaryTypemake in interface AuxiliaryTypeauxiliaryTypeName - The fully qualified non-internal name for this auxiliary type. The type should be in
the same package than the instrumented type this auxiliary type is providing services
to in order to allow package-private access.classFileVersion - The class file version the auxiliary class should be written in.methodAccessorFactory - A factory for accessor methods.public MethodLookupEngine make(boolean extractDefaultMethods)
MethodLookupEngine.FactoryMethodLookupEngine.make in interface MethodLookupEngine.FactoryextractDefaultMethods - true if interface default methods should be resolved.MethodLookupEngine.public MethodLookupEngine.Finding process(TypeDescription typeDescription)
MethodLookupEngineClass.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 MethodLookupEnginetypeDescription - The type for which all invokable methods should be looked up.public String toString()
toString in class Enum<TrivialType>Copyright © 2014–2015. All rights reserved.