public interface Assigner
Ato another type
An assigner is for example responsible for type casting, auto boxing or unboxing or for the widening of primitive types.
|Modifier and Type||Interface and Description|
An assigner that only allows to assign types if they are equal to another.
An assigner that does not allow any assignments.
Indicates for a type assignment, if a type casting should be applied in case that two types are not statically assignable.
|Modifier and Type||Field and Description|
A default assigner that can handle
static final Assigner DEFAULT
void, primitive types and references.
StackManipulation assign(TypeDescription.Generic source, TypeDescription.Generic target, Assigner.Typing typing)
source- The original type that is to be transformed into the
target- The target type into which the
sourceTypeis to be converted.
typing- A hint whether the assignment should consider the runtime type of the source type, i.e. if type down or cross castings are allowed. If this hint is set, this is also an indication that
voidassignments are permitted.
targetTypeif this is possible. An illegal stack manipulation otherwise.
Copyright © 2014–2017. All rights reserved.