public enum ReferenceTypeAwareAssigner extends Enum<ReferenceTypeAwareAssigner> implements Assigner
Assigner.EqualTypesOnly, Assigner.Refusing, Assigner.Typing
Enum Constant and Description |
---|
INSTANCE
The singleton instance.
|
DEFAULT, GENERICS_AWARE
Modifier and Type | Method and Description |
---|---|
StackManipulation |
assign(TypeDescription.Generic source,
TypeDescription.Generic target,
Assigner.Typing typing) |
static ReferenceTypeAwareAssigner |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ReferenceTypeAwareAssigner[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReferenceTypeAwareAssigner INSTANCE
public static ReferenceTypeAwareAssigner[] values()
for (ReferenceTypeAwareAssigner c : ReferenceTypeAwareAssigner.values()) System.out.println(c);
public static ReferenceTypeAwareAssigner valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic StackManipulation assign(TypeDescription.Generic source, TypeDescription.Generic target, Assigner.Typing typing)
assign
in interface Assigner
source
- 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–2020. All rights reserved.