@HashCodeAndEqualsPlugin.Enhance public class PrimitiveTypeAwareAssigner extends Object implements Assigner
void, primitive types. This means:
Assigner.EqualTypesOnly, Assigner.Refusing, Assigner.TypingDEFAULT, GENERICS_AWARE| Constructor and Description |
|---|
PrimitiveTypeAwareAssigner(Assigner referenceTypeAwareAssigner)
Creates a new assigner with the given delegate.
|
| Modifier and Type | Method and Description |
|---|---|
StackManipulation |
assign(TypeDescription.Generic source,
TypeDescription.Generic target,
Assigner.Typing typing) |
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)
assign in interface Assignersource - The original type that is to be transformed into the targetType.target - The target type into which the sourceType is 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 void to non-void assignments are permitted.sourceType into the targetType if this
is possible. An illegal stack manipulation otherwise.Copyright © 2014–2021. All rights reserved.