public static class Definition.Cast
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
Definition.Type |
boxFrom |
Definition.Type |
boxTo |
boolean |
explicit |
Definition.Type |
from |
Definition.Type |
to |
Definition.Type |
unboxFrom |
Definition.Type |
unboxTo |
| Modifier and Type | Method and Description |
|---|---|
static Definition.Cast |
boxFrom(Definition.Type from,
Definition.Type to,
boolean explicit,
Definition.Type boxFrom)
Create a cast where the from type will be boxed, and then the cast will be performed.
|
static Definition.Cast |
boxTo(Definition.Type from,
Definition.Type to,
boolean explicit,
Definition.Type boxTo)
Create a cast where the to type will be boxed, and then the cast will be performed.
|
static Definition.Cast |
standard(Definition.Type from,
Definition.Type to,
boolean explicit)
Create a standard cast with no boxing/unboxing.
|
static Definition.Cast |
unboxFrom(Definition.Type from,
Definition.Type to,
boolean explicit,
Definition.Type unboxFrom)
Create a cast where the from type will be unboxed, and then the cast will be performed.
|
static Definition.Cast |
unboxTo(Definition.Type from,
Definition.Type to,
boolean explicit,
Definition.Type unboxTo)
Create a cast where the to type will be unboxed, and then the cast will be performed.
|
public final Definition.Type from
public final Definition.Type to
public final boolean explicit
public final Definition.Type unboxFrom
public final Definition.Type unboxTo
public final Definition.Type boxFrom
public final Definition.Type boxTo
public static Definition.Cast standard(Definition.Type from, Definition.Type to, boolean explicit)
public static Definition.Cast unboxFrom(Definition.Type from, Definition.Type to, boolean explicit, Definition.Type unboxFrom)
public static Definition.Cast unboxTo(Definition.Type from, Definition.Type to, boolean explicit, Definition.Type unboxTo)
public static Definition.Cast boxFrom(Definition.Type from, Definition.Type to, boolean explicit, Definition.Type boxFrom)
public static Definition.Cast boxTo(Definition.Type from, Definition.Type to, boolean explicit, Definition.Type boxTo)