Package | Description |
---|---|
net.bytebuddy.description.field |
Contains descriptions of Java fields.
|
net.bytebuddy.dynamic |
This package contains classes and interfaces that are connected to writing the byte stream that represents a Java
type that is dynamically created and for loading this type into a running JVM process.
|
net.bytebuddy.dynamic.scaffold |
This package contains helper types and implementations that are responsible for the actual writing of a byte array
representing a Java class.
|
net.bytebuddy.matcher |
Contains an API for matching Java byte code entities.
|
Modifier and Type | Field and Description |
---|---|
private java.util.List<? extends FieldDescription.Token> |
FieldList.ForTokens.tokens
A list of the represented fields' tokens.
|
Modifier and Type | Method and Description |
---|---|
FieldDescription.Token |
FieldDescription.Token.accept(TypeDescription.Generic.Visitor<? extends TypeDescription.Generic> visitor)
Transforms the types represented by this token by applying the given visitor to them.
|
FieldDescription.Token |
FieldDescription.AbstractBase.asToken(ElementMatcher<? super TypeDescription> matcher)
Returns a token representative of this type dependant.
|
Modifier and Type | Method and Description |
---|---|
ByteCodeElement.Token.TokenList<FieldDescription.Token> |
FieldList.asTokenList(ElementMatcher<? super TypeDescription> matcher)
Transforms the list of field descriptions into a list of detached tokens.
|
ByteCodeElement.Token.TokenList<FieldDescription.Token> |
FieldList.AbstractBase.asTokenList(ElementMatcher<? super TypeDescription> matcher)
Transforms the list of field descriptions into a list of detached tokens.
|
ByteCodeElement.Token.TokenList<FieldDescription.Token> |
FieldList.Empty.asTokenList(ElementMatcher<? super TypeDescription> matcher)
Transforms the list of field descriptions into a list of detached tokens.
|
Constructor and Description |
---|
ForTokens(TypeDescription declaringType,
FieldDescription.Token... token)
Creates a new field list from a list of field tokens.
|
Latent(TypeDescription declaringType,
FieldDescription.Token token)
Creates a new latent field description.
|
Constructor and Description |
---|
ForTokens(TypeDescription declaringType,
java.util.List<? extends FieldDescription.Token> tokens)
Creates a new field list from a list of field tokens.
|
Modifier and Type | Field and Description |
---|---|
private FieldDescription.Token |
DynamicType.Builder.AbstractBase.Adapter.FieldDefinitionAdapter.token
The token representing the current field definition.
|
private FieldDescription.Token |
Transformer.ForField.TransformedField.token
A field token representing the transformed field.
|
Modifier and Type | Field and Description |
---|---|
private Transformer<FieldDescription.Token> |
Transformer.ForField.transformer
The token transformer to apply to a transformed field.
|
Modifier and Type | Method and Description |
---|---|
FieldDescription.Token |
Transformer.ForField.FieldModifierTransformer.transform(TypeDescription instrumentedType,
FieldDescription.Token target)
Transforms the supplied target.
|
Modifier and Type | Method and Description |
---|---|
FieldDescription.Token |
Transformer.ForField.FieldModifierTransformer.transform(TypeDescription instrumentedType,
FieldDescription.Token target)
Transforms the supplied target.
|
Constructor and Description |
---|
FieldDefinitionAdapter(FieldAttributeAppender.Factory fieldAttributeAppenderFactory,
Transformer<FieldDescription> transformer,
java.lang.Object defaultValue,
FieldDescription.Token token)
Creates a new field definition adapter.
|
FieldDefinitionAdapter(FieldDescription.Token token)
Creates a new field definition adapter.
|
TransformedField(TypeDescription instrumentedType,
TypeDefinition declaringType,
FieldDescription.Token token,
FieldDescription.InDefinedShape fieldDescription)
Creates a new transformed field.
|
Constructor and Description |
---|
ForField(Transformer<FieldDescription.Token> transformer)
Creates a new simple field transformer.
|
Modifier and Type | Field and Description |
---|---|
private java.util.List<? extends FieldDescription.Token> |
InstrumentedType.Default.fieldTokens
A list of field tokens describing the fields of the instrumented type.
|
Modifier and Type | Method and Description |
---|---|
InstrumentedType |
InstrumentedType.withField(FieldDescription.Token token)
Creates a new instrumented type that includes a new field.
|
InstrumentedType.WithFlexibleName |
InstrumentedType.WithFlexibleName.withField(FieldDescription.Token token)
Creates a new instrumented type that includes a new field.
|
InstrumentedType.WithFlexibleName |
InstrumentedType.Default.withField(FieldDescription.Token token)
Creates a new instrumented type that includes a new field.
|
InstrumentedType.WithFlexibleName |
InstrumentedType.Frozen.withField(FieldDescription.Token token)
Creates a new instrumented type that includes a new field.
|
Constructor and Description |
---|
Default(java.lang.String name,
int modifiers,
TypeDescription.Generic superClass,
java.util.List<? extends TypeVariableToken> typeVariables,
java.util.List<? extends TypeDescription.Generic> interfaceTypes,
java.util.List<? extends FieldDescription.Token> fieldTokens,
java.util.List<? extends MethodDescription.Token> methodTokens,
java.util.List<? extends AnnotationDescription> annotationDescriptions,
TypeInitializer typeInitializer,
LoadedTypeInitializer loadedTypeInitializer,
TypeDescription declaringType,
MethodDescription.InDefinedShape enclosingMethod,
TypeDescription enclosingType,
java.util.List<? extends TypeDescription> declaredTypes,
boolean anonymousClass,
boolean localClass,
TypeDescription nestHost,
java.util.List<? extends TypeDescription> nestMembers)
Creates a new instrumented type.
|
Modifier and Type | Field and Description |
---|---|
private FieldDescription.Token |
LatentMatcher.ForFieldToken.token
A token representing the field being matched.
|
Constructor and Description |
---|
ForFieldToken(FieldDescription.Token token)
Creates a new latent matcher for a field token.
|