public static interface InstrumentedType.WithFlexibleName extends InstrumentedType
InstrumentedType with a flexible name.InstrumentedType.Default, InstrumentedType.Prepareable, InstrumentedType.WithFlexibleNameTypeDescription.AbstractBase, TypeDescription.ArrayProjection, TypeDescription.ForLoadedType, TypeDescription.ForPackageDescription, TypeDescription.Generic, TypeDescription.LatentTypeDefinition.Sort, TypeDefinition.SuperClassIteratorModifierReviewable.ForFieldDescription, ModifierReviewable.ForMethodDescription, ModifierReviewable.ForParameterDescription, ModifierReviewable.ForTypeDefinition, ModifierReviewable.OfAbstraction, ModifierReviewable.OfByteCodeElement, ModifierReviewable.OfEnumerationByteCodeElement.Token<T extends ByteCodeElement.Token<T>>, ByteCodeElement.TypeDependant<T extends ByteCodeElement.TypeDependant<?,S>,S extends ByteCodeElement.Token<S>>NamedElement.WithGenericName, NamedElement.WithOptionalName, NamedElement.WithRuntimeNameTypeVariableSource.Visitor<T>ARRAY_INTERFACES, CLASS, OBJECT, STRING, THROWABLE, UNDEFINED, VOIDEMPTY_MASKNON_GENERIC_SIGNATUREEMPTY_NAME, NO_NAME| Modifier and Type | Method and Description |
|---|---|
InstrumentedType.WithFlexibleName |
withAnnotations(List<? extends AnnotationDescription> annotationDescriptions)
Creates a new instrumented type with the given annotations.
|
InstrumentedType.WithFlexibleName |
withField(FieldDescription.Token token)
Creates a new instrumented type that includes a new field.
|
InstrumentedType.WithFlexibleName |
withInitializer(ByteCodeAppender byteCodeAppender)
Creates a new instrumented type that executes the given initializer in the instrumented type's
type initializer.
|
InstrumentedType.WithFlexibleName |
withInitializer(LoadedTypeInitializer loadedTypeInitializer)
Creates a new instrumented type that includes the given
LoadedTypeInitializer. |
InstrumentedType.WithFlexibleName |
withInterfaces(TypeList.Generic interfaceTypes)
Creates a new instrumented type with the given interfaces implemented.
|
InstrumentedType.WithFlexibleName |
withMethod(MethodDescription.Token token)
Creates a new instrumented type that includes a new method or constructor.
|
InstrumentedType.WithFlexibleName |
withModifiers(int modifiers)
Creates a new instrumented type with changed modifiers.
|
InstrumentedType.WithFlexibleName |
withName(String name)
Creates a new instrumented type with a changed name.
|
InstrumentedType.WithFlexibleName |
withTypeVariable(TypeVariableToken typeVariable)
Creates a new instrumented type with the given type variable defined.
|
InstrumentedType.WithFlexibleName |
withTypeVariables(ElementMatcher<? super TypeDescription.Generic> matcher,
Transformer<TypeVariableToken> transformer)
Applies a transformation onto all existing type variables of this instrumented type.
|
getLoadedTypeInitializer, getTypeInitializer, validatedgetActualModifiers, getCanonicalName, getComponentType, getDeclaredFields, getDeclaredMethods, getDeclaredTypes, getDeclaringType, getEnclosingMethod, getEnclosingType, getInheritedAnnotations, getPackage, getSegmentCount, getSimpleName, isAnnotationReturnType, isAnnotationValue, isAnnotationValue, isAnonymousClass, isAssignableFrom, isAssignableFrom, isAssignableTo, isAssignableTo, isConstantPool, isInstance, isInstanceOrWrapper, isLocalClass, isMemberClass, isPackageType, isPrimitiveWrapper, isSamePackageasErasure, asGenericType, getInterfaces, getSort, getStackSize, getSuperClass, getTypeName, isArray, isPrimitive, representsisAnnotation, isInterfaceisAbstractisEnumisDeprecated, isPackagePrivate, isPrivate, isProtected, isPublic, isStaticgetModifiers, isFinal, isSyntheticforEach, iterator, spliteratorgetDescriptor, getGenericSignature, isVisibleTogetInternalName, getNamegetActualNamegetDeclaredAnnotationsaccept, findVariable, getEnclosingSource, getTypeVariables, isGenericDeclarationInstrumentedType.WithFlexibleName withField(FieldDescription.Token token)
InstrumentedTypewithField in interface InstrumentedTypetoken - A token that represents the field's shape. This token must represent types in their detached state.InstrumentedType.WithFlexibleName withMethod(MethodDescription.Token token)
InstrumentedTypewithMethod in interface InstrumentedTypetoken - A token that represents the method's shape. This token must represent types in their detached state.InstrumentedType.WithFlexibleName withModifiers(int modifiers)
InstrumentedTypewithModifiers in interface InstrumentedTypemodifiers - The instrumented type's modifiers.InstrumentedType.WithFlexibleName withInterfaces(TypeList.Generic interfaceTypes)
InstrumentedTypewithInterfaces in interface InstrumentedTypeinterfaceTypes - The interface types to implement.InstrumentedType.WithFlexibleName withTypeVariable(TypeVariableToken typeVariable)
InstrumentedTypewithTypeVariable in interface InstrumentedTypetypeVariable - The type variable to declare.InstrumentedType.WithFlexibleName withAnnotations(List<? extends AnnotationDescription> annotationDescriptions)
InstrumentedTypewithAnnotations in interface InstrumentedTypeannotationDescriptions - The annotations to add to the instrumented type.InstrumentedType.WithFlexibleName withInitializer(LoadedTypeInitializer loadedTypeInitializer)
InstrumentedTypeLoadedTypeInitializer.withInitializer in interface InstrumentedTypeloadedTypeInitializer - The type initializer to include.InstrumentedType.WithFlexibleName withInitializer(ByteCodeAppender byteCodeAppender)
InstrumentedTypewithInitializer in interface InstrumentedTypebyteCodeAppender - The byte code to add to the type initializer.InstrumentedType.WithFlexibleName withName(String name)
name - The name of the instrumented type.InstrumentedType.WithFlexibleName withTypeVariables(ElementMatcher<? super TypeDescription.Generic> matcher, Transformer<TypeVariableToken> transformer)
matcher - The matcher to decide what type variables to transform.transformer - The transformer to apply on all matched type variables.Copyright © 2014–2016. All rights reserved.