@HashCodeAndEqualsPlugin.Enhance public class VoidAwareAssigner extends Object implements Assigner
voidtype. This means:
voidtype is assigned to the
voidit will consider this a trivial operation.
voidtype is assigned to a non-
voidtype, it will pop the top value from the stack.
voidtype is assigned to a
voidtype, it will load the target type's default value only if this was configured at the assigner's construction.
voidtypes are subject of the assignment, it will delegate the assignment to its chained assigner.
|Constructor and Description|
Creates a new assigner that is capable of handling void types.
|Modifier and Type||Method and Description|
public VoidAwareAssigner(Assigner chained)
chained- A chained assigner which will be queried by this assigner to handle assignments that do not involve a
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.