public enum CaptureTransformStrategy extends java.lang.Enum<CaptureTransformStrategy>
Enum Constant and Description |
---|
FLATTEN
Expand all capture fields as if they were crossing a hygienic module boundary.
|
NEST
Encode all capture fields as tuples.
|
Modifier and Type | Method and Description |
---|---|
static CaptureTransformStrategy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CaptureTransformStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CaptureTransformStrategy FLATTEN
@T = (a int, b int)
then (s string, fields @T)
will be read by the
client as (s string, a int, b int)
public static final CaptureTransformStrategy NEST
@T = (a int, b int)
then (s string, fields @T)
will be read by the
client as (s string, fields (a int, b int))
public static CaptureTransformStrategy[] values()
for (CaptureTransformStrategy c : CaptureTransformStrategy.values()) System.out.println(c);
public static CaptureTransformStrategy valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null