public static class TypePool.Default extends TypePool.AbstractBase
TypePool
that models binary data in the
Java byte code format into a TypeDescription
. The data lookup
is delegated to a ClassFileLocator
.Modifier and Type | Class and Description |
---|---|
protected static interface |
TypePool.Default.AnnotationRegistrant
An annotation registrant implements a visitor pattern for reading an unknown amount of values of annotations.
|
protected static interface |
TypePool.Default.ComponentTypeLocator
A component type locator allows for the lazy location of an array's component type.
|
protected static class |
TypePool.Default.GenericTypeExtractor
A generic type extractor allows for an iterative extraction of generic type information.
|
protected static interface |
TypePool.Default.GenericTypeRegistrant
A type registrant allows to register a generic type token.
|
protected static class |
TypePool.Default.ParameterBag
A bag for collecting parameter meta information that is stored as debug information for implemented
methods.
|
static class |
TypePool.Default.ReaderMode
Determines the granularity of the class file parsing that is conducted by a
TypePool.Default . |
protected class |
TypePool.Default.TypeExtractor
A type extractor reads a class file and collects data that is relevant to create a type description.
|
TypePool.AbstractBase.ArrayTypeResolution, TypePool.AbstractBase.RawAnnotationValue, TypePool.AbstractBase.RawEnumerationValue, TypePool.AbstractBase.RawNonPrimitiveArray, TypePool.AbstractBase.RawTypeValue
TypePool.AbstractBase, TypePool.CacheProvider, TypePool.Default, TypePool.LazyFacade, TypePool.LazyTypeDescription, TypePool.Resolution
cacheProvider, PRIMITIVE_DESCRIPTORS, PRIMITIVE_TYPES
Constructor and Description |
---|
Default(TypePool.CacheProvider cacheProvider,
ClassFileLocator classFileLocator,
TypePool.Default.ReaderMode readerMode)
Creates a new default type pool.
|
Modifier and Type | Method and Description |
---|---|
protected TypePool.Resolution |
doDescribe(String name)
Determines a resolution to a non-primitive, non-array type.
|
boolean |
equals(Object other) |
int |
hashCode() |
static TypePool |
of(ClassFileLocator classFileLocator)
Creates a default
TypePool that looks up data by querying the supplied class
file locator. |
static TypePool |
ofClassPath()
Creates a default
TypePool that looks up data by querying the system class
loader. |
String |
toString() |
clear, describe
public Default(TypePool.CacheProvider cacheProvider, ClassFileLocator classFileLocator, TypePool.Default.ReaderMode readerMode)
cacheProvider
- The cache provider to be used.classFileLocator
- The class file locator to be used.readerMode
- The reader mode to apply by this default type pool.public static TypePool ofClassPath()
TypePool
that looks up data by querying the system class
loader. The returned instance is configured to use a fast reading mode and a simple cache.public static TypePool of(ClassFileLocator classFileLocator)
TypePool
that looks up data by querying the supplied class
file locator. The returned instance is configured to use a fast reading mode and a simple cache.classFileLocator
- The class file locator to use.protected TypePool.Resolution doDescribe(String name)
TypePool.AbstractBase
doDescribe
in class TypePool.AbstractBase
name
- The name of the type to describe.public boolean equals(Object other)
equals
in class TypePool.AbstractBase
public int hashCode()
hashCode
in class TypePool.AbstractBase
Copyright © 2014–2015. All rights reserved.