public static enum AgentBuilder.TypeLocator.Default extends Enum<AgentBuilder.TypeLocator.Default> implements AgentBuilder.TypeLocator
A default type locator that resolves types only if any property that is not the type's name is requested.
The returned type pool uses a TypePool.CacheProvider.Simple
and the
ClassFileLocator
that is provided by the builder's AgentBuilder.LocationStrategy
.
AgentBuilder.TypeLocator.ClassLoading, AgentBuilder.TypeLocator.Default, AgentBuilder.TypeLocator.Eager, AgentBuilder.TypeLocator.WithTypePoolCache
Enum Constant and Description |
---|
EXTENDED
A type locator that parses the code segment of each method for extracting information about parameter
names even if they are not explicitly included in a class file.
|
FAST
A type locator that skips the code segment of each method and does therefore not extract information
about parameter names.
|
Modifier and Type | Method and Description |
---|---|
String |
toString() |
TypePool |
typePool(ClassFileLocator classFileLocator,
ClassLoader classLoader)
Creates a type pool for a given class file locator.
|
static AgentBuilder.TypeLocator.Default |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AgentBuilder.TypeLocator.Default[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AgentBuilder.TypeLocator.Default EXTENDED
TypePool.Default.ReaderMode.EXTENDED
public static final AgentBuilder.TypeLocator.Default FAST
TypePool.Default.ReaderMode.FAST
public static AgentBuilder.TypeLocator.Default[] values()
for (AgentBuilder.TypeLocator.Default c : AgentBuilder.TypeLocator.Default.values()) System.out.println(c);
public static AgentBuilder.TypeLocator.Default 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 TypePool typePool(ClassFileLocator classFileLocator, ClassLoader classLoader)
AgentBuilder.TypeLocator
typePool
in interface AgentBuilder.TypeLocator
classFileLocator
- The class file locator to use.classLoader
- The class loader for which the class file locator was created.public String toString()
toString
in class Enum<AgentBuilder.TypeLocator.Default>
Copyright © 2014–2016. All rights reserved.