public interface ITernaryOperatorNode extends IExpressionNode
The typical shape of this node is:
ITernaryOperatorNode IExpressionNode <-- getConditionalNode() IExpressionNode <-- getLeftOperandNode() IExpressionNode <-- getRightOperandNode()For example,
a == b ? c : d
is represented as
ITernaryOperatorNode "?" IBinaryOperatorNode "==" IIdentifierNode "a" IIdentifierNode "b" IIdentifierNode "c" IIdentiferNode "d"
UNKNOWN
Modifier and Type | Method and Description |
---|---|
IExpressionNode |
getConditionalNode()
returns the conditional expression that determines branch for this
expression
|
IExpressionNode |
getLeftOperandNode()
Returns the left side of the expression
|
IExpressionNode |
getRightOperandNode()
Returns the right side of the expression
|
copyForInitializer, hasParenthesis, isDynamicExpression, resolve, resolveType
contains, getAncestorOfType, getChild, getChildCount, getContainingNode, getContainingScope, getFileSpecification, getNodeID, getPackageName, getParent, getSpanningStart, getSucceedingNode, isTerminal
getAbsoluteEnd, getAbsoluteStart, getColumn, getEnd, getEndColumn, getEndLine, getLine, getSourcePath, getStart
IExpressionNode getConditionalNode()
IExpressionNode
representing the conditionalIExpressionNode getLeftOperandNode()
IExpressionNode
that represents the left side, or nullIExpressionNode getRightOperandNode()
IExpressionNode
that represents the right side, or
nullCopyright © 2016 The Apache Software Foundation. All rights reserved.