public static final class InlineSupport.CharField extends InlineSupport.InlinableField
Modifier and Type | Method and Description |
---|---|
static InlineSupport.CharField |
create(MethodHandles.Lookup declaringLookup,
String field)
This method creates a new field given a lookup class and a field name.
|
InlineSupport.CharField |
createParentAccessor(Class<? extends Node> parentClass)
This method creates a parent accessor field.
|
char |
get(Node node)
This method returns the value of the target field given a target node.
|
void |
set(Node node,
char value)
This method sets the value of the target field giving the a target node.
|
validate
public InlineSupport.CharField createParentAccessor(Class<? extends Node> parentClass)
public char get(Node node)
ClassCastException
is thrown. If null
is provided, then a
NullPointerException
is thrown.public void set(Node node, char value)
ClassCastException
is thrown. If null
is provided, then a
NullPointerException
is thrown.public static InlineSupport.CharField 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.