public interface Assigner
A
to another type B
if possible.
An assigner is for example responsible for type casting, auto boxing or unboxing or for the widening of primitive types.
Modifier and Type | Method and Description |
---|---|
StackManipulation |
assign(TypeDescription sourceType,
TypeDescription targetType,
boolean considerRuntimeType) |
StackManipulation assign(TypeDescription sourceType, TypeDescription targetType, boolean considerRuntimeType)
sourceType
- The original type that is to be transformed into the targetType
.targetType
- The target type into which the sourceType
is to be converted.considerRuntimeType
- A hint whether the assignment should consider the runtime type of the source type,
i.e. if type down or cross castings are allowed.sourceType
into the targetType
if this
is possible. An illegal stack manipulation otherwise.Copyright © 2014. All rights reserved.