
public class JConditional extends JExpression
| Constructor and Description |
|---|
JConditional(SourceInfo info,
JType type,
JExpression ifTest,
JExpression thenExpr,
JExpression elseExpr) |
| Modifier and Type | Method and Description |
|---|---|
JExpression |
getElseExpr() |
JExpression |
getIfTest() |
JExpression |
getThenExpr() |
JType |
getType()
Returns the type of this expression.
|
boolean |
hasSideEffects() |
void |
setType(JType type) |
void |
traverse(JVisitor visitor,
Context ctx)
Causes this object to have the visitor visit itself and its children.
|
makeReturnStatement, makeStatementgetSourceInfo, setSourceInfo, toSource, toStringpublic JConditional(SourceInfo info, JType type, JExpression ifTest, JExpression thenExpr, JExpression elseExpr)
public JExpression getElseExpr()
public JExpression getIfTest()
public JExpression getThenExpr()
public JType getType()
HasTypepublic boolean hasSideEffects()
hasSideEffects in class JExpressionpublic void setType(JType type)
Copyright © 2018. All rights reserved.