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, makeStatement
getSourceInfo, setSourceInfo, toSource, toString
public JConditional(SourceInfo info, JType type, JExpression ifTest, JExpression thenExpr, JExpression elseExpr)
public JExpression getElseExpr()
public JExpression getIfTest()
public JExpression getThenExpr()
public JType getType()
HasType
public boolean hasSideEffects()
hasSideEffects
in class JExpression
public void setType(JType type)
Copyright © 2018. All rights reserved.