@HashCodeAndEqualsPlugin.Enhance public class TypeCasting extends StackManipulation.AbstractBase
StackManipulation.AbstractBase, StackManipulation.Compound, StackManipulation.Illegal, StackManipulation.Simple, StackManipulation.Size, StackManipulation.Trivial| Modifier | Constructor and Description |
|---|---|
protected |
TypeCasting(TypeDescription typeDescription)
Creates a new type casting.
|
| Modifier and Type | Method and Description |
|---|---|
StackManipulation.Size |
apply(MethodVisitor methodVisitor,
Implementation.Context implementationContext)
Applies the stack manipulation that is described by this instance.
|
static StackManipulation |
to(TypeDefinition typeDefinition)
Creates a casting to the given, non-primitive type.
|
isValidprotected TypeCasting(TypeDescription typeDescription)
typeDescription - The type description to which a value should be casted.public static StackManipulation to(TypeDefinition typeDefinition)
typeDefinition - The type to which a value should be casted.public StackManipulation.Size apply(MethodVisitor methodVisitor, Implementation.Context implementationContext)
methodVisitor - The method visitor used to write the method implementation to.implementationContext - The context of the current implementation.Copyright © 2014–2025. All rights reserved.