Since a ternary statement has more than one exit point tail-recursiveness testing cannot be easily done. Therefore this class translates a ternary statement (or Elvis operator) into the equivalent if-else statement.
Constructor and description |
---|
TernaryToIfStatementConverter
() |
Type Params | Return Type | Name and description |
---|---|---|
|
Statement |
convert(ReturnStatement statementWithInnerTernaryExpression) |
Copyright © 2003-2020 The Apache Software Foundation. All rights reserved.