Package gw.lang.ir.expression
Class IRTernaryExpression
- java.lang.Object
-
- gw.lang.ir.IRElement
-
- gw.lang.ir.IRExpression
-
- gw.lang.ir.expression.IRTernaryExpression
-
public class IRTernaryExpression extends IRExpression
-
-
Field Summary
Fields Modifier and Type Field Description private IRExpression_falseValueprivate IRType_resultTypeprivate IRExpression_testprivate IRExpression_trueValue
-
Constructor Summary
Constructors Constructor Description IRTernaryExpression(IRExpression test, IRExpression trueValue, IRExpression falseValue, IRType resultType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IRExpressiongetFalseValue()IRTypegetResultType()IRExpressiongetTest()IRExpressiongetTrueValue()IRTypegetType()-
Methods inherited from class gw.lang.ir.IRExpression
getConditionContext
-
Methods inherited from class gw.lang.ir.IRElement
getLineNumber, getParent, isImplicit, maybeEraseStructuralSymbolTypes, maybeEraseStructuralType, maybeEraseStructuralType, maybeEraseStructuralTypes, setImplicit, setLineNumber, setParent, setParentToThis
-
-
-
-
Field Detail
-
_test
private IRExpression _test
-
_trueValue
private IRExpression _trueValue
-
_falseValue
private IRExpression _falseValue
-
_resultType
private IRType _resultType
-
-
Constructor Detail
-
IRTernaryExpression
public IRTernaryExpression(IRExpression test, IRExpression trueValue, IRExpression falseValue, IRType resultType)
-
-
Method Detail
-
getTest
public IRExpression getTest()
-
getTrueValue
public IRExpression getTrueValue()
-
getFalseValue
public IRExpression getFalseValue()
-
getResultType
public IRType getResultType()
-
getType
public IRType getType()
- Specified by:
getTypein classIRExpression
-
-