Package net.bytebuddy.description
Interface ByteCodeElement.TypeDependant<T extends ByteCodeElement.TypeDependant<?,S>,S extends ByteCodeElement.Token<S>>
- Type Parameters:
T
- The type dependant's type.S
- The type dependant's token type.
- All Known Subinterfaces:
FieldDescription
,FieldDescription.InDefinedShape
,FieldDescription.InGenericShape
,MethodDescription
,MethodDescription.InDefinedShape
,MethodDescription.InGenericShape
,ParameterDescription
,ParameterDescription.InDefinedShape
,ParameterDescription.InGenericShape
,RecordComponentDescription
,RecordComponentDescription.InDefinedShape
,RecordComponentDescription.InGenericShape
- All Known Implementing Classes:
FieldDescription.AbstractBase
,FieldDescription.ForLoadedField
,FieldDescription.InDefinedShape.AbstractBase
,FieldDescription.Latent
,FieldDescription.TypeSubstituting
,Implementation.Context.Default.AbstractPropertyAccessorMethod
,Implementation.Context.Default.AccessorMethod
,Implementation.Context.Default.CacheValueField
,Implementation.Context.Default.FieldGetter
,Implementation.Context.Default.FieldSetter
,MethodDescription.AbstractBase
,MethodDescription.ForLoadedConstructor
,MethodDescription.ForLoadedMethod
,MethodDescription.InDefinedShape.AbstractBase
,MethodDescription.InDefinedShape.AbstractBase.ForLoadedExecutable
,MethodDescription.Latent
,MethodDescription.Latent.TypeInitializer
,MethodDescription.TypeSubstituting
,MethodRebaseResolver.Resolution.ForRebasedConstructor.RebasedConstructor
,MethodRebaseResolver.Resolution.ForRebasedMethod.RebasedMethod
,ParameterDescription.AbstractBase
,ParameterDescription.ForLoadedParameter
,ParameterDescription.ForLoadedParameter.OfConstructor
,ParameterDescription.ForLoadedParameter.OfLegacyVmConstructor
,ParameterDescription.ForLoadedParameter.OfLegacyVmMethod
,ParameterDescription.ForLoadedParameter.OfMethod
,ParameterDescription.InDefinedShape.AbstractBase
,ParameterDescription.Latent
,ParameterDescription.TypeSubstituting
,RecordComponentDescription.AbstractBase
,RecordComponentDescription.ForLoadedRecordComponent
,RecordComponentDescription.InDefinedShape.AbstractBase
,RecordComponentDescription.Latent
,RecordComponentDescription.TypeSubstituting
,Transformer.ForField.TransformedField
,Transformer.ForMethod.TransformedMethod
,Transformer.ForMethod.TransformedMethod.TransformedParameter
,TypePool.Default.LazyTypeDescription.LazyFieldDescription
,TypePool.Default.LazyTypeDescription.LazyMethodDescription
,TypePool.Default.LazyTypeDescription.LazyMethodDescription.LazyParameterDescription
,TypePool.Default.LazyTypeDescription.LazyRecordComponentDescription
,TypeWriter.MethodPool.Record.AccessBridgeWrapper.AccessorBridge
,TypeWriter.MethodPool.Record.AccessBridgeWrapper.BridgeTarget
,TypeWriter.MethodPool.Record.ForDefinedMethod.OfVisibilityBridge.VisibilityBridge
- Enclosing interface:
ByteCodeElement
public static interface ByteCodeElement.TypeDependant<T extends ByteCodeElement.TypeDependant<?,S>,S extends ByteCodeElement.Token<S>>
A type dependant describes an element that is an extension of a type definition, i.e. a field, method or method parameter.
-
Method Summary
Modifier and TypeMethodDescriptionReturns this type dependant in its defined shape, i.e.asToken
(ElementMatcher<? super TypeDescription> matcher) Returns a token representative of this type dependant.
-
Method Details
-
asDefined
T asDefined()Returns this type dependant in its defined shape, i.e. the form it is declared in and without its type variable's resolved.- Returns:
- This type dependant in its defined shape.
-
asToken
Returns a token representative of this type dependant. All types that are matched by the supplied matcher are replaced byTargetType
descriptions.- Parameters:
matcher
- A matcher to identify types to be replaced byTargetType
descriptions.- Returns:
- A token representative of this type dependant.
-