T
- The best known loaded type representing the built dynamic type.public class SubclassDynamicTypeBuilder<T> extends DynamicType.Builder.AbstractBase<T>
Modifier and Type | Class and Description |
---|---|
protected static class |
SubclassDynamicTypeBuilder.InstrumentableMatcher
A matcher that locates all methods that are overridable and not ignored or that are directly defined on the instrumented type.
|
DynamicType.Builder.AbstractBase.AbstractDelegatingBuilder<U>, DynamicType.Builder.AbstractBase.DefaultExceptionDeclarableMethodInterception, DynamicType.Builder.AbstractBase.DefaultFieldValueTarget, DynamicType.Builder.AbstractBase.DefaultMatchedMethodInterception, DynamicType.Builder.AbstractBase.DefaultMethodAnnotationTarget, DynamicType.Builder.AbstractBase.DefaultOptionalMatchedMethodInterception
DynamicType.Builder.AbstractBase<S>, DynamicType.Builder.ExceptionDeclarableMethodInterception<S>, DynamicType.Builder.FieldAnnotationTarget<S>, DynamicType.Builder.FieldValueTarget<S>, DynamicType.Builder.MatchedMethodInterception<S>, DynamicType.Builder.MethodAnnotationTarget<S>, DynamicType.Builder.OptionalMatchedMethodInterception<S>
attributeAppender, auxiliaryTypeNamingStrategy, classFileVersion, classVisitorWrapper, defaultFieldAttributeAppenderFactory, defaultMethodAttributeAppenderFactory, fieldRegistry, fieldTokens, ignoredMethods, implementationContextFactory, interfaceTypes, methodGraphCompiler, methodRegistry, methodTokens, modifiers, namingStrategy, targetType, typeInitializer
Modifier | Constructor and Description |
---|---|
protected |
SubclassDynamicTypeBuilder(ClassFileVersion classFileVersion,
NamingStrategy namingStrategy,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
Implementation.Context.Factory implementationContextFactory,
InstrumentedType.TypeInitializer typeInitializer,
TypeDescription superType,
List<GenericTypeDescription> interfaceTypes,
int modifiers,
TypeAttributeAppender attributeAppender,
ElementMatcher<? super MethodDescription> ignoredMethods,
ClassVisitorWrapper classVisitorWrapper,
FieldRegistry fieldRegistry,
MethodRegistry methodRegistry,
MethodGraph.Compiler methodGraphCompiler,
FieldAttributeAppender.Factory defaultFieldAttributeAppenderFactory,
MethodAttributeAppender.Factory defaultMethodAttributeAppenderFactory,
List<FieldDescription.Token> fieldTokens,
List<MethodDescription.Token> methodTokens,
ConstructorStrategy constructorStrategy)
Creates a new immutable type builder for a subclassing a given class.
|
|
SubclassDynamicTypeBuilder(ClassFileVersion classFileVersion,
NamingStrategy namingStrategy,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
Implementation.Context.Factory implementationContextFactory,
TypeDescription superType,
List<TypeDescription> interfaceTypes,
int modifiers,
TypeAttributeAppender attributeAppender,
ElementMatcher<? super MethodDescription> ignoredMethods,
ClassVisitorWrapper classVisitorWrapper,
FieldRegistry fieldRegistry,
MethodRegistry methodRegistry,
MethodGraph.Compiler methodGraphCompiler,
FieldAttributeAppender.Factory defaultFieldAttributeAppenderFactory,
MethodAttributeAppender.Factory defaultMethodAttributeAppenderFactory,
ConstructorStrategy constructorStrategy)
Creates a new immutable type builder for a subclassing a given class.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
int |
hashCode() |
DynamicType.Unloaded<T> |
make()
Creates the dynamic type without loading it.
|
protected DynamicType.Builder<T> |
materialize(ClassFileVersion classFileVersion,
NamingStrategy namingStrategy,
AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy,
Implementation.Context.Factory implementationContextFactory,
InstrumentedType.TypeInitializer typeInitializer,
TypeDescription targetType,
List<GenericTypeDescription> interfaceTypes,
int modifiers,
TypeAttributeAppender attributeAppender,
ElementMatcher<? super MethodDescription> ignoredMethods,
ClassVisitorWrapper classVisitorWrapper,
FieldRegistry fieldRegistry,
MethodRegistry methodRegistry,
MethodGraph.Compiler methodGraphCompiler,
FieldAttributeAppender.Factory defaultFieldAttributeAppenderFactory,
MethodAttributeAppender.Factory defaultMethodAttributeAppenderFactory,
List<FieldDescription.Token> fieldTokens,
List<MethodDescription.Token> methodTokens)
Creates a new immutable type builder which represents the given arguments.
|
String |
toString() |
annotateType, annotateType, annotateType, annotateType, attribute, classFileVersion, classVisitor, constructor, context, define, defineConstructor, defineConstructor, defineConstructor, defineConstructor, defineConstructor, defineConstructor, defineField, defineField, defineField, defineField, defineField, defineField, defineMethod, defineMethod, defineMethod, defineMethod, defineMethod, defineMethod, ignoreMethods, implement, implement, implement, implement, initialize, invokable, invokable, method, methodGraphCompiler, modifiers, modifiers, name, name, name
public SubclassDynamicTypeBuilder(ClassFileVersion classFileVersion, NamingStrategy namingStrategy, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, Implementation.Context.Factory implementationContextFactory, TypeDescription superType, List<TypeDescription> interfaceTypes, int modifiers, TypeAttributeAppender attributeAppender, ElementMatcher<? super MethodDescription> ignoredMethods, ClassVisitorWrapper classVisitorWrapper, FieldRegistry fieldRegistry, MethodRegistry methodRegistry, MethodGraph.Compiler methodGraphCompiler, FieldAttributeAppender.Factory defaultFieldAttributeAppenderFactory, MethodAttributeAppender.Factory defaultMethodAttributeAppenderFactory, ConstructorStrategy constructorStrategy)
classFileVersion
- The class file version for the created dynamic type.namingStrategy
- The naming strategy for naming the dynamic type.auxiliaryTypeNamingStrategy
- The naming strategy to apply to auxiliary types.implementationContextFactory
- The implementation context factory to use.superType
- The super class that the dynamic type should extend.interfaceTypes
- A list of interfaces that should be implemented by the created dynamic type.modifiers
- The modifiers to be represented by the dynamic type.attributeAppender
- The attribute appender to apply onto the dynamic type that is created.ignoredMethods
- A matcher for determining methods that are to be ignored for instrumentation.classVisitorWrapper
- An ASM class visitors to apply to the writing process.fieldRegistry
- The field registry to apply to the dynamic type creation.methodRegistry
- The method registry to apply to the dynamic type creation.methodGraphCompiler
- The method graph compiler to be used.defaultFieldAttributeAppenderFactory
- The field attribute appender factory that should be applied by default if
no specific appender was specified for a given field.defaultMethodAttributeAppenderFactory
- The method attribute appender factory that should be applied by default
if no specific appender was specified for a given method.constructorStrategy
- The strategy for creating constructors during the final definition
phase of this dynamic type.protected SubclassDynamicTypeBuilder(ClassFileVersion classFileVersion, NamingStrategy namingStrategy, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, Implementation.Context.Factory implementationContextFactory, InstrumentedType.TypeInitializer typeInitializer, TypeDescription superType, List<GenericTypeDescription> interfaceTypes, int modifiers, TypeAttributeAppender attributeAppender, ElementMatcher<? super MethodDescription> ignoredMethods, ClassVisitorWrapper classVisitorWrapper, FieldRegistry fieldRegistry, MethodRegistry methodRegistry, MethodGraph.Compiler methodGraphCompiler, FieldAttributeAppender.Factory defaultFieldAttributeAppenderFactory, MethodAttributeAppender.Factory defaultMethodAttributeAppenderFactory, List<FieldDescription.Token> fieldTokens, List<MethodDescription.Token> methodTokens, ConstructorStrategy constructorStrategy)
classFileVersion
- The class file version for the created dynamic type.namingStrategy
- The naming strategy for naming the dynamic type.auxiliaryTypeNamingStrategy
- The naming strategy to apply to auxiliary types.implementationContextFactory
- The implementation context factory to use.typeInitializer
- The type initializer to use.superType
- The super class that the dynamic type should extend.interfaceTypes
- A list of interfaces that should be implemented by the created dynamic type.modifiers
- The modifiers to be represented by the dynamic type.attributeAppender
- The attribute appender to apply onto the dynamic type that is created.ignoredMethods
- A matcher for determining methods that are to be ignored for instrumentation.classVisitorWrapper
- An ASM class visitor to apply to the writing process.fieldRegistry
- The field registry to apply to the dynamic type creation.methodRegistry
- The method registry to apply to the dynamic type creation.methodGraphCompiler
- The method graph compiler to be used.defaultFieldAttributeAppenderFactory
- The field attribute appender factory that should be applied by default if
no specific appender was specified for a given field.defaultMethodAttributeAppenderFactory
- The method attribute appender factory that should be applied by default
if no specific appender was specified for a given method.fieldTokens
- A list of field representations that were added explicitly to this
dynamic type.methodTokens
- A list of method representations that were added explicitly to this
dynamic type.constructorStrategy
- The strategy for creating constructors during the final definition
phase of this dynamic type.protected DynamicType.Builder<T> materialize(ClassFileVersion classFileVersion, NamingStrategy namingStrategy, AuxiliaryType.NamingStrategy auxiliaryTypeNamingStrategy, Implementation.Context.Factory implementationContextFactory, InstrumentedType.TypeInitializer typeInitializer, TypeDescription targetType, List<GenericTypeDescription> interfaceTypes, int modifiers, TypeAttributeAppender attributeAppender, ElementMatcher<? super MethodDescription> ignoredMethods, ClassVisitorWrapper classVisitorWrapper, FieldRegistry fieldRegistry, MethodRegistry methodRegistry, MethodGraph.Compiler methodGraphCompiler, FieldAttributeAppender.Factory defaultFieldAttributeAppenderFactory, MethodAttributeAppender.Factory defaultMethodAttributeAppenderFactory, List<FieldDescription.Token> fieldTokens, List<MethodDescription.Token> methodTokens)
DynamicType.Builder.AbstractBase
materialize
in class DynamicType.Builder.AbstractBase<T>
classFileVersion
- The class file version for the created dynamic type.namingStrategy
- The naming strategy for naming the dynamic type.auxiliaryTypeNamingStrategy
- The naming strategy for naming the auxiliary type of the dynamic type.implementationContextFactory
- The currently defined implementation context factory.typeInitializer
- The type initializer to use.targetType
- A description of the type that the dynamic type should represent.interfaceTypes
- A list of interfaces that should be implemented by the created dynamic type.modifiers
- The modifiers to be represented by the dynamic type.attributeAppender
- The attribute appender to apply onto the dynamic type that is created.ignoredMethods
- A matcher for determining methods that are to be ignored for implementation.classVisitorWrapper
- A ASM class visitor to apply to the writing process.fieldRegistry
- The field registry to apply to the dynamic type creation.methodRegistry
- The method registry to apply to the dynamic type creation.methodGraphCompiler
- The method graph compiler to be used.defaultFieldAttributeAppenderFactory
- The field attribute appender factory that should be applied by default if
no specific appender was specified for a given field.defaultMethodAttributeAppenderFactory
- The method attribute appender factory that should be applied by default
if no specific appender was specified for a given method.fieldTokens
- A list of field representations that were added explicitly to this
dynamic type.methodTokens
- A list of method representations that were added explicitly to this
dynamic type.public DynamicType.Unloaded<T> make()
DynamicType.Builder
public boolean equals(Object other)
equals
in class DynamicType.Builder.AbstractBase<T>
public int hashCode()
hashCode
in class DynamicType.Builder.AbstractBase<T>
Copyright © 2014–2015. All rights reserved.