public static final class InlineSupport.StateField extends InlineSupport.InlinableField
Modifier and Type | Method and Description |
---|---|
static InlineSupport.StateField |
create(MethodHandles.Lookup declaringLookup,
String field)
This method creates a new field given a lookup class and a field name.
|
InlineSupport.StateField |
createParentAccessor(Class<? extends Node> parentClass)
This method creates a parent accessor field.
|
int |
get(Node node)
This method returns the value of the target field given a target node.
|
void |
set(Node node,
int value)
This method sets the value of the target field giving the a target node.
|
InlineSupport.StateField |
subUpdater(int newOffset,
int newLength)
Creates a sub updater for a subset of bits in a state field.
|
validate
public InlineSupport.StateField createParentAccessor(Class<? extends Node> parentClass)
public InlineSupport.StateField subUpdater(int newOffset, int newLength)
public int get(Node node)
ClassCastException
is thrown. If null
is provided, then a
NullPointerException
is thrown.public void set(Node node, int value)
ClassCastException
is thrown. If null
is provided, then a
NullPointerException
is thrown.public static InlineSupport.StateField create(MethodHandles.Lookup declaringLookup, String field)
IllegalArgumentException
is thrown.
The given field must not be final. This method is intended to be used by DSL-generated
code only.