
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 newType) |
void |
traverse(JVisitor visitor,
Context ctx)
Causes this object to have the visitor visit itself and its children.
|
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 newType)
public void traverse(JVisitor visitor, Context ctx)
JVisitablevisitor - the visitor that should traverse this nodectx - the context of an existing traversalCopyright © 2018. All rights reserved.