public class SLParenExpressionNode extends SLExpressionNode
SLExpressionNode that represents a parenthesized expression; it simply returns the
value of the enclosed (child) expression. It is represented separately in the AST for the purpose
of correct source attribution; this preserves the lexical relationship between the two
parentheses and allows a tool to describe the expression as distinct from its contents.| Constructor and Description |
|---|
SLParenExpressionNode(SLExpressionNode expression) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
executeBoolean(com.oracle.truffle.api.frame.VirtualFrame frame) |
Object |
executeGeneric(com.oracle.truffle.api.frame.VirtualFrame frame)
The execute method when no specialization is possible.
|
long |
executeLong(com.oracle.truffle.api.frame.VirtualFrame frame) |
addExpressionTag, createWrapper, executeVoid, hasTagaddRootTag, addStatementTag, formatSourceSection, getSourceCharIndex, getSourceEndIndex, getSourceLength, getSourceSection, hasSource, isInstrumentable, setSourceSection, setUnavailableSourceSection, toStringfindBlock, getVisibleVariablesIndexOnEnter, hasScope, setVisibleVariablesIndexOnEnter, setVisibleVariablesIndexOnExitaccept, adoptChildren, atomic, atomic, copy, deepCopy, getChildren, getCost, getDebugProperties, getDescription, getEncapsulatingSourceSection, getLock, getParent, getRootNode, insert, insert, isAdoptable, isSafelyReplaceableBy, notifyInserted, onReplace, replace, replace, reportPolymorphicSpecializepublic SLParenExpressionNode(SLExpressionNode expression)
public Object executeGeneric(com.oracle.truffle.api.frame.VirtualFrame frame)
SLExpressionNodeexecuteGeneric in class SLExpressionNodepublic long executeLong(com.oracle.truffle.api.frame.VirtualFrame frame)
throws com.oracle.truffle.api.nodes.UnexpectedResultException
executeLong in class SLExpressionNodecom.oracle.truffle.api.nodes.UnexpectedResultExceptionpublic boolean executeBoolean(com.oracle.truffle.api.frame.VirtualFrame frame)
throws com.oracle.truffle.api.nodes.UnexpectedResultException
executeBoolean in class SLExpressionNodecom.oracle.truffle.api.nodes.UnexpectedResultException