public static enum Assigner.Refusing extends Enum<Assigner.Refusing> implements Assigner
Assigner.EqualTypesOnly, Assigner.Refusing
Enum Constant and Description |
---|
INSTANCE
The singleton instance.
|
Modifier and Type | Method and Description |
---|---|
StackManipulation |
assign(TypeDescription sourceType,
TypeDescription targetType,
boolean dynamicallyTyped) |
String |
toString() |
static Assigner.Refusing |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Assigner.Refusing[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Assigner.Refusing INSTANCE
public static Assigner.Refusing[] values()
for (Assigner.Refusing c : Assigner.Refusing.values()) System.out.println(c);
public static Assigner.Refusing 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 sourceType, TypeDescription targetType, boolean dynamicallyTyped)
assign
in interface Assigner
sourceType
- The original type that is to be transformed into the targetType
.targetType
- The target type into which the sourceType
is to be converted.dynamicallyTyped
- 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.public String toString()
toString
in class Enum<Assigner.Refusing>
Copyright © 2014–2015. All rights reserved.