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, resolveTypecontains, getAncestorOfType, getChild, getChildCount, getContainingNode, getContainingScope, getFileSpecification, getNodeID, getPackageName, getParent, getSpanningStart, getSucceedingNode, isTerminalgetAbsoluteEnd, getAbsoluteStart, getColumn, getEnd, getEndColumn, getEndLine, getLine, getSourcePath, getStartIExpressionNode 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.