Interface TagTree
- All Known Implementing Classes:
TagTreeNode
public interface TagTree
Logical tree representation of the
Tag
operations of a bytecode program.- Since:
- 24.2
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionint
Returns the bytecode index at which the interpreter enters the tag operation.int
Returns the bytecode index at which the interpreter "returns" from the tag operation.Gets the most concretesource location
associated with the tag operation.Gets allsource locations
associated with the tag operation, ordered from most to least concrete.getTags()
Returns thetags
associated with this node.Returns the child trees corresponding toTag
operations nested in this node.boolean
Returns whether the giventag
is associated with this node.
-
Method Details
-
getTreeChildren
-
getTags
-
hasTag
-
getEnterBytecodeIndex
int getEnterBytecodeIndex()Returns the bytecode index at which the interpreter enters the tag operation. The bytecode interpreter will invokeProbeNode.onEnter(VirtualFrame)
at this point in the program.- Since:
- 24.2
-
getReturnBytecodeIndex
int getReturnBytecodeIndex()Returns the bytecode index at which the interpreter "returns" from the tag operation. The bytecode interpreter will invokeProbeNode.onReturnValue(VirtualFrame, Object)
with the child operation's result (if any) at this point in the program.Note: the instruction at this index is not necessarily a return, but the value it produces is treated as a return value for the sake of instrumentation. There can also be other return points if the child operation has early exits; this method returns the regular return point.
- Since:
- 24.2
-
getSourceSection
SourceSection getSourceSection()Gets the most concretesource location
associated with the tag operation.- Since:
- 24.2
- See Also:
-
getSourceSections
SourceSection[] getSourceSections()Gets allsource locations
associated with the tag operation, ordered from most to least concrete.- Since:
- 24.2
- See Also:
-