public interface InstrumentedType extends TypeDescription
| Modifier and Type | Interface and Description |
|---|---|
static class |
InstrumentedType.Default
A default implementation of an instrumented type.
|
static interface |
InstrumentedType.TypeInitializer
A type initializer is responsible for defining a type's static initialization block.
|
TypeDescription.AbstractBase, TypeDescription.ArrayProjection, TypeDescription.ForLoadedType, TypeDescription.ForPackageDescription, TypeDescription.LatentGenericTypeDescription.ForGenericArray, GenericTypeDescription.ForNonGenericType, GenericTypeDescription.ForParameterizedType, GenericTypeDescription.ForTypeVariable, GenericTypeDescription.ForWildcardType, GenericTypeDescription.LazyProjection, GenericTypeDescription.Sort, GenericTypeDescription.SuperTypeIterator, GenericTypeDescription.Visitor<T>TypeVariableSource.Visitor<T>ByteCodeElement.Accessible, ByteCodeElement.Token<T extends ByteCodeElement.Token<T>>, ByteCodeElement.TypeDependant<T extends ByteCodeElement.TypeDependant<?,S>,S extends ByteCodeElement.Token<S>>NamedElement.WithGenericName, NamedElement.WithRuntimeNameARRAY_INTERFACES, ARRAY_MODIFIERS, CLASS, ENUM, OBJECT, STRING, UNDEFINED, VOIDNON_GENERIC_SIGNATUREEMPTY_NAME, NO_NAMEEMPTY_MASK| Modifier and Type | Method and Description |
|---|---|
LoadedTypeInitializer |
getLoadedTypeInitializer()
Returns the
LoadedTypeInitializers that were registered
for this instrumented type. |
InstrumentedType.TypeInitializer |
getTypeInitializer()
Returns this instrumented type's type initializer.
|
InstrumentedType |
withField(FieldDescription.Token fieldToken)
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(MethodDescription.Token methodToken)
Creates a new instrumented type that includes a new method or constructor.
|
getActualModifiers, getCanonicalName, getComponentType, getDeclaredFields, getDeclaredMethods, getDeclaredTypes, getDeclaringType, getEnclosingMethod, getEnclosingType, getInheritedAnnotations, getOwnerType, getPackage, getSimpleName, isAnnotationReturnType, isAnnotationValue, isAnnotationValue, isAnonymousClass, isAssignableFrom, isAssignableFrom, isAssignableTo, isAssignableTo, isConstantPool, isInstance, isInstanceOrWrapper, isLocalClass, isMemberClass, isPrimitiveWrapper, isSamePackageaccept, asErasure, getInterfaces, getLowerBounds, getParameters, getSort, getStackSize, getSuperType, getSymbol, getTypeName, getUpperBounds, getVariableSource, isArray, isPrimitive, representsforEach, iterator, spliteratoraccept, findVariable, getEnclosingSource, getTypeVariablesgetDescriptor, getGenericSignature, isVisibleTogetInternalName, getNamegetSourceCodeNamegetModifiers, isAbstract, isAnnotation, isBridge, isDeprecated, isEnum, isFinal, isInterface, isMandated, isNative, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, isStrict, isSuper, isSynchronized, isSynthetic, isTransient, isVarArgs, isVolatilegetDeclaredAnnotationsInstrumentedType withField(FieldDescription.Token fieldToken)
fieldToken - A token that represents the field's shape. This token must represent types in their detached state.InstrumentedType withMethod(MethodDescription.Token methodToken)
methodToken - A token that represents the method's shape. This token must represent types in their detached state.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()
Copyright © 2014–2015. All rights reserved.