Class SourceInformationTree
java.lang.Object
com.oracle.truffle.api.bytecode.SourceInformation
com.oracle.truffle.api.bytecode.SourceInformationTree
Introspection class modeling a tree of
SourceInformation instances. Like
SourceInformation, this class models the source section for a bytecode range. Its
children model the source sections of subranges directly contained by this node's bytecode range.
Note: it is possible for SourceInformation.getSourceSection() to return null
for the root of the tree when the Root operation is not enclosed in a SourceSection operation.
See the discussion in BytecodeNode.getSourceInformationTree() for more information.
Note: Introspection classes are intended to be used for debugging purposes only. These APIs may change in the future.
- Since:
- 24.2
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSourceInformationTree(Object token) Internal constructor for generated code. -
Method Summary
Modifier and TypeMethodDescriptionabstract List<SourceInformationTree> Returns a list of child trees, ordered by bytecode range.final StringtoString()Methods inherited from class SourceInformation
getEndBytecodeIndex, getSourceSection, getStartBytecodeIndex
-
Constructor Details
-
SourceInformationTree
Internal constructor for generated code. Do not use.- Since:
- 24.2
-
-
Method Details
-
getChildren
Returns a list of child trees, ordered by bytecode range.- Since:
- 24.2
-
toString
- Overrides:
toStringin classSourceInformation- Since:
- 24.2
-