Package com.oracle.truffle.api.dsl
Class InlineSupport.LongField
java.lang.Object
com.oracle.truffle.api.dsl.InlineSupport.InlinableField
com.oracle.truffle.api.dsl.InlineSupport.LongField
- Enclosing class:
InlineSupport
Represents a field for long primitives in inlined nodes.
- Since:
- 23.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic InlineSupport.LongField
create
(MethodHandles.Lookup declaringLookup, String field) This method creates a new field given a lookup class and a field name.createParentAccessor
(Class<? extends Node> parentClass) Deprecated.in 23.1 - no longer neededlong
This method returns the value of the target field given a target node.void
This method sets the value of the target field giving the a target node.Methods inherited from class com.oracle.truffle.api.dsl.InlineSupport.InlinableField
validate
-
Method Details
-
createParentAccessor
Deprecated.in 23.1 - no longer neededThis method creates a parent accessor field. A parent accessor allows access to a field through a parent pointer. The given class must exactly match the given receiver. This method is intended to be used by the DSL-generated code.- Since:
- 23.0
-
get
This method returns the value of the target field given a target node. The node parameter must match the class the field was created with. If the type is not compatible, anClassCastException
is thrown. Ifnull
is provided, then aNullPointerException
is thrown.- Since:
- 23.0
-
set
This method sets the value of the target field giving the a target node. The node parameter must match the class the field was created with. If the type is not compatible, anClassCastException
is thrown. Ifnull
is provided, then aNullPointerException
is thrown.- Since:
- 23.0
-
create
This method creates a new field given a lookup class and a field name. The lookup class requires access to the field and must be directly accessible. If the field is not found or the field type is not compatible, then anIllegalArgumentException
is thrown. The given field must not be final. This method is intended to be used by DSL-generated code only.- Since:
- 23.0
-