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.ForLoadedType, TypeDescription.LatentModifierReviewable.AbstractModifierReviewableCLASS, ENUM, OBJECT, STRING, VOIDEMPTY_NAMEEMPTY_MASK| 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(ByteCodeAppender byteCodeAppender)
Creates a new instrumented type that executes the given initializer in the instrumented type's
type initializer.
|
InstrumentedType |
withInitializer(LoadedTypeInitializer loadedTypeInitializer)
Creates a new instrumented type that includes the given
LoadedTypeInitializer. |
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, getInheritedAnnotations, getInheritedInterfaces, getInterfaces, getPackage, getSimpleName, getStackSize, getSupertype, isAnnotationReturnType, isAnnotationValue, isAnnotationValue, isAnonymousClass, isArray, isAssignableFrom, isAssignableFrom, isAssignableTo, isAssignableTo, isConstantPool, isInstance, isInstanceOrWrapper, isLocalClass, isMemberClass, isPrimitive, isPrimitiveWrapper, isSamePackage, representsgetDescriptor, getGenericSignature, isVisibleTogetInternalName, getName, getSourceCodeNamegetModifiers, 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(ByteCodeAppender byteCodeAppender)
byteCodeAppender - The byte code to add to the type initializer.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–2015. All rights reserved.