public static enum AgentBuilder.BinaryLocator.Default extends Enum<AgentBuilder.BinaryLocator.Default> implements AgentBuilder.BinaryLocator
AgentBuilder.BinaryLocator
that
is using a TypePool.Default
with a
TypePool.CacheProvider.Simple
and a
ClassFileLocator.ForClassLoader
.AgentBuilder.BinaryLocator.ClassLoading, AgentBuilder.BinaryLocator.Default
Enum Constant and Description |
---|
EXTENDED
A binary 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 binary locator that skips the code segment of each method and does therefore not extract information
about parameter names.
|
Modifier and Type | Method and Description |
---|---|
ClassFileLocator |
classFileLocator(ClassLoader classLoader)
Creates a class file locator for the given class loader.
|
String |
toString() |
TypePool |
typePool(ClassFileLocator classFileLocator,
ClassLoader classLoader)
Creates a type pool for a given class file locator.
|
static AgentBuilder.BinaryLocator.Default |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AgentBuilder.BinaryLocator.Default[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AgentBuilder.BinaryLocator.Default EXTENDED
TypePool.Default.ReaderMode.EXTENDED
public static final AgentBuilder.BinaryLocator.Default FAST
TypePool.Default.ReaderMode.FAST
public static AgentBuilder.BinaryLocator.Default[] values()
for (AgentBuilder.BinaryLocator.Default c : AgentBuilder.BinaryLocator.Default.values()) System.out.println(c);
public static AgentBuilder.BinaryLocator.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 ClassFileLocator classFileLocator(ClassLoader classLoader)
AgentBuilder.BinaryLocator
classFileLocator
in interface AgentBuilder.BinaryLocator
classLoader
- The class loader for which a class file locator should be created.
Can be null
to represent the bootstrap class loader.public TypePool typePool(ClassFileLocator classFileLocator, ClassLoader classLoader)
AgentBuilder.BinaryLocator
typePool
in interface AgentBuilder.BinaryLocator
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.BinaryLocator.Default>
Copyright © 2014–2016. All rights reserved.