Class ConditionalExpressionTreeImpl
java.lang.Object
org.sonar.php.tree.impl.PHPTree
org.sonar.php.tree.impl.expression.ConditionalExpressionTreeImpl
- All Implemented Interfaces:
ConditionalExpressionTree
,ExpressionTree
,Tree
-
Nested Class Summary
-
Constructor Summary
ConstructorsConstructorDescriptionConditionalExpressionTreeImpl
(InternalSyntaxToken queryToken, ExpressionTree trueExpression, InternalSyntaxToken colonToken, ExpressionTree falseExpression) -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(VisitorCheck visitor) Creates iterator for children of this node.complete
(ExpressionTree condition) getKind()
Methods inherited from class org.sonar.php.tree.impl.PHPTree
getFirstToken, getLastToken, getLine, getParent, is, isLeaf, setParent, toString
-
Constructor Details
-
ConditionalExpressionTreeImpl
public ConditionalExpressionTreeImpl(InternalSyntaxToken queryToken, @Nullable ExpressionTree trueExpression, InternalSyntaxToken colonToken, ExpressionTree falseExpression)
-
-
Method Details
-
complete
-
condition
- Specified by:
condition
in interfaceConditionalExpressionTree
-
queryToken
- Specified by:
queryToken
in interfaceConditionalExpressionTree
-
trueExpression
- Specified by:
trueExpression
in interfaceConditionalExpressionTree
-
colonToken
- Specified by:
colonToken
in interfaceConditionalExpressionTree
-
falseExpression
- Specified by:
falseExpression
in interfaceConditionalExpressionTree
-
getKind
-
childrenIterator
Description copied from class:PHPTree
Creates iterator for children of this node. Note that iterator may containnull
elements.- Specified by:
childrenIterator
in classPHPTree
-
accept
-