public interface InstrumentedType extends TypeDescription
| Modifier and Type | Interface and Description |
|---|---|
static class |
InstrumentedType.AbstractBase
An abstract base implementation of an instrumented type.
|
static interface |
InstrumentedType.TypeInitializer
A type initializer is responsible for defining a type's static initialization block.
|
TypeDescription.AbstractTypeDescription, TypeDescription.ArrayProjection, TypeDescription.ForLoadedTypeModifierReviewable.AbstractModifierReviewable| Modifier and Type | Method and Description |
|---|---|
TypeDescription |
detach()
Creates a compressed version of this instrumented type which only needs to fulfil the
TypeDescription interface. |
LoadedTypeInitializer |
getLoadedTypeInitializer()
Returns the
LoadedTypeInitializers that were registered
for this instrumented type. |
InstrumentedType.TypeInitializer |
getTypeInitializer()
Returns this instrumented type's type initializer.
|
InstrumentedType |
withField(String internalName,
TypeDescription fieldType,
int modifiers)
Creates a new instrumented type that includes a new field.
|
InstrumentedType |
withInitializer(LoadedTypeInitializer loadedTypeInitializer)
Creates a new instrumented type that includes the given
LoadedTypeInitializer. |
InstrumentedType |
withInitializer(StackManipulation stackManipulation)
Creates a new instrumented type that executes the given initializer in the instrumented type's
type initializer.
|
InstrumentedType |
withMethod(String internalName,
TypeDescription returnType,
List<? extends TypeDescription> parameterTypes,
List<? extends TypeDescription> exceptionTypes,
int modifiers)
Creates a new instrumented type that includes a new method or constructor.
|
getActualModifiers, getCanonicalName, getComponentType, getDeclaredFields, getDeclaredMethods, getEnclosingMethod, getEnclosingType, getGenericSignature, getInheritedAnnotations, getInheritedInterfaces, getInterfaces, getPackage, getSimpleName, getStackSize, getSupertype, isAnonymousClass, isArray, isAssignableFrom, isAssignableFrom, isAssignableTo, isAssignableTo, isInstance, isLocalClass, isMemberClass, isPrimitive, isSamePackage, representsgetDescriptor, getInternalName, getSourceCodeName, isVisibleTogetNamegetModifiers, isAbstract, isAnnotation, isBridge, isDeprecated, isEnum, isFinal, isInterface, isMandated, isNative, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, isStrict, isSuper, isSynchronized, isSynthetic, isTransient, isVarArgs, isVolatilegetDeclaringTypegetDeclaredAnnotationsInstrumentedType withField(String internalName, TypeDescription fieldType, int modifiers)
internalName - The internal name of the new field.fieldType - A description of the type of the new field.modifiers - The modifier of the new field.InstrumentedType withMethod(String internalName, TypeDescription returnType, List<? extends TypeDescription> parameterTypes, List<? extends TypeDescription> exceptionTypes, int modifiers)
internalName - The internal name of the new field.returnType - A description of the return type of the new field.parameterTypes - A list of descriptions of the parameter types.exceptionTypes - A list of descriptions of the exception types that are declared by this method.modifiers - The modifier of the new field.InstrumentedType withInitializer(LoadedTypeInitializer loadedTypeInitializer)
LoadedTypeInitializer.loadedTypeInitializer - The type initializer to include.InstrumentedType withInitializer(StackManipulation stackManipulation)
stackManipulation - The stack manipulation to execute.LoadedTypeInitializer getLoadedTypeInitializer()
LoadedTypeInitializers that were registered
for this instrumented type.InstrumentedType.TypeInitializer getTypeInitializer()
TypeDescription detach()
TypeDescription interface. This allows
for a potential compression of the representation of this instrumented type.this instrumented type.Copyright © 2014. All rights reserved.