@HashCodeAndEqualsPlugin.Enhance public class PrimitiveTypeAwareAssigner extends Object implements Assigner
void, primitive types. This means:
|Constructor and Description|
Creates a new assigner with the given delegate.
|Modifier and Type||Method and Description|
public PrimitiveTypeAwareAssigner(Assigner referenceTypeAwareAssigner)
referenceTypeAwareAssigner- A chained assigner that is queried for assignments not involving primitive types.
public 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–2019. All rights reserved.