Package | Description |
---|---|
net.bytebuddy.description.method |
Contains descriptions of Java methods and constructors as well as their parameters.
|
net.bytebuddy.description.type |
Contains descriptions of Java types and packages.
|
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.
|
Modifier and Type | Method and Description |
---|---|
ByteCodeElement.Token.TokenList<TypeVariableToken> |
MethodDescription.Token.getTypeVariableTokens()
Returns the type variables of this method token.
|
Constructor and Description |
---|
Latent(TypeDescription declaringType,
String internalName,
int modifiers,
List<? extends TypeVariableToken> typeVariables,
TypeDescription.Generic returnType,
List<? extends ParameterDescription.Token> parameterTokens,
List<? extends TypeDescription.Generic> exceptionTypes,
List<? extends AnnotationDescription> declaredAnnotations,
AnnotationValue<?,?> defaultValue,
TypeDescription.Generic receiverType)
Creates a new latent method description.
|
Token(String name,
int modifiers,
List<? extends TypeVariableToken> typeVariableTokens,
TypeDescription.Generic returnType,
List<? extends ParameterDescription.Token> parameterTokens,
List<? extends TypeDescription.Generic> exceptionTypes,
List<? extends AnnotationDescription> annotations,
AnnotationValue<?,?> defaultValue,
TypeDescription.Generic receiverType)
Creates a new token for a method description.
|
Modifier and Type | Method and Description |
---|---|
TypeVariableToken |
TypeVariableToken.accept(TypeDescription.Generic.Visitor<? extends TypeDescription.Generic> visitor) |
static TypeVariableToken |
TypeVariableToken.of(TypeDescription.Generic typeVariable,
ElementMatcher<? super TypeDescription> matcher)
Transforms a type variable into a type variable token with its bounds detached.
|
Modifier and Type | Method and Description |
---|---|
ByteCodeElement.Token.TokenList<TypeVariableToken> |
TypeList.Generic.asTokenList(ElementMatcher<? super TypeDescription> visitor)
Transforms a list of attached type variables into their tokenized form.
|
ByteCodeElement.Token.TokenList<TypeVariableToken> |
TypeList.Generic.AbstractBase.asTokenList(ElementMatcher<? super TypeDescription> matcher) |
ByteCodeElement.Token.TokenList<TypeVariableToken> |
TypeList.Generic.Empty.asTokenList(ElementMatcher<? super TypeDescription> matcher) |
Modifier and Type | Method and Description |
---|---|
static TypeList.Generic |
TypeList.Generic.ForDetachedTypes.attachVariables(MethodDescription methodDescription,
List<? extends TypeVariableToken> detachedTypeVariables)
Creates a list of type variables that are attached to the provided method.
|
static TypeList.Generic |
TypeList.Generic.ForDetachedTypes.attachVariables(TypeDescription typeDescription,
List<? extends TypeVariableToken> detachedTypeVariables)
Creates a list of type variables that are attached to the provided type.
|
Constructor and Description |
---|
AttachedTypeVariable(TypeVariableSource typeVariableSource,
TypeVariableToken typeVariableToken,
TypeDescription.Generic.Visitor<? extends TypeDescription.Generic> visitor)
Creates a new attached type variable.
|
Reducing(TypeDescription declaringType,
TypeVariableToken... typeVariableToken)
Creates a new reducing type visitor.
|
Constructor and Description |
---|
OfTypeVariables(TypeVariableSource typeVariableSource,
List<? extends TypeVariableToken> detachedTypeVariables,
TypeDescription.Generic.Visitor<? extends TypeDescription.Generic> visitor)
Creates a new list of attached type variables representing a list of type variable tokens.
|
Reducing(TypeDescription declaringType,
List<? extends TypeVariableToken> typeVariableTokens)
Creates a new reducing type visitor.
|
Modifier and Type | Method and Description |
---|---|
DynamicType.Builder<T> |
DynamicType.Builder.transform(ElementMatcher<? super TypeDescription.Generic> matcher,
Transformer<TypeVariableToken> transformer)
Transforms any type variable that is defined by this type if it is matched by the supplied matcher.
|
DynamicType.Builder<U> |
DynamicType.Builder.AbstractBase.Delegator.transform(ElementMatcher<? super TypeDescription.Generic> matcher,
Transformer<TypeVariableToken> transformer) |
DynamicType.Builder<U> |
DynamicType.Builder.AbstractBase.Adapter.transform(ElementMatcher<? super TypeDescription.Generic> matcher,
Transformer<TypeVariableToken> transformer) |
Constructor and Description |
---|
TypeVariableAnnotationAdapter(TypeVariableToken token)
Creates a new type variable annotation adapter.
|
TypeVariableDefinitionAdapter(TypeVariableToken token)
Creates a new type variable definition adapter.
|
Modifier and Type | Method and Description |
---|---|
InstrumentedType |
InstrumentedType.withTypeVariable(TypeVariableToken typeVariable)
Creates a new instrumented type with the given type variable defined.
|
InstrumentedType.WithFlexibleName |
InstrumentedType.WithFlexibleName.withTypeVariable(TypeVariableToken typeVariable) |
InstrumentedType.WithFlexibleName |
InstrumentedType.Default.withTypeVariable(TypeVariableToken typeVariable) |
InstrumentedType.WithFlexibleName |
InstrumentedType.Frozen.withTypeVariable(TypeVariableToken typeVariable) |
Modifier and Type | Method and Description |
---|---|
InstrumentedType.WithFlexibleName |
InstrumentedType.WithFlexibleName.withTypeVariables(ElementMatcher<? super TypeDescription.Generic> matcher,
Transformer<TypeVariableToken> transformer)
Applies a transformation onto all existing type variables of this instrumented type.
|
InstrumentedType.WithFlexibleName |
InstrumentedType.Default.withTypeVariables(ElementMatcher<? super TypeDescription.Generic> matcher,
Transformer<TypeVariableToken> transformer) |
InstrumentedType.WithFlexibleName |
InstrumentedType.Frozen.withTypeVariables(ElementMatcher<? super TypeDescription.Generic> matcher,
Transformer<TypeVariableToken> transformer) |
Constructor and Description |
---|
Default(String name,
int modifiers,
TypeDescription.Generic superClass,
List<? extends TypeVariableToken> typeVariables,
List<? extends TypeDescription.Generic> interfaceTypes,
List<? extends FieldDescription.Token> fieldTokens,
List<? extends MethodDescription.Token> methodTokens,
List<? extends AnnotationDescription> annotationDescriptions,
TypeInitializer typeInitializer,
LoadedTypeInitializer loadedTypeInitializer,
TypeDescription declaringType,
MethodDescription enclosingMethod,
TypeDescription enclosingType,
List<? extends TypeDescription> declaredTypes,
boolean memberClass,
boolean anonymousClass,
boolean localClass)
Creates a new instrumented type.
|
Copyright © 2014–2018. All rights reserved.