public enum PrimitiveWideningDelegate extends Enum<PrimitiveWideningDelegate>
Enum Constant and Description |
---|
BOOLEAN |
BYTE |
CHARACTER |
DOUBLE |
FLOAT |
INTEGER |
LONG |
SHORT |
Modifier and Type | Method and Description |
---|---|
static PrimitiveWideningDelegate |
forPrimitive(TypeDescription typeDescription)
Locates the delegate that is capable of widening the given type into another type.
|
static PrimitiveWideningDelegate |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PrimitiveWideningDelegate[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
StackManipulation |
widenTo(TypeDescription typeDescription)
Attempts to widen the represented type into another type.
|
public static final PrimitiveWideningDelegate BOOLEAN
public static final PrimitiveWideningDelegate BYTE
public static final PrimitiveWideningDelegate SHORT
public static final PrimitiveWideningDelegate CHARACTER
public static final PrimitiveWideningDelegate INTEGER
public static final PrimitiveWideningDelegate LONG
public static final PrimitiveWideningDelegate FLOAT
public static final PrimitiveWideningDelegate DOUBLE
public static PrimitiveWideningDelegate[] values()
for (PrimitiveWideningDelegate c : PrimitiveWideningDelegate.values()) System.out.println(c);
public static PrimitiveWideningDelegate 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 static PrimitiveWideningDelegate forPrimitive(TypeDescription typeDescription)
typeDescription
- A non-void primitive type that is to be widened into another type.public StackManipulation widenTo(TypeDescription typeDescription)
typeDescription
- A non-void primitive type that is the expected result of the widening operation.Copyright © 2014. All rights reserved.