public class IfExp extends Expression
flags, NEXT_AVAIL_FLAG, noExpressions, VALIDATEDcompilerKey, validateApplyKeynameKey| Constructor and Description |
|---|
IfExp(Expression i,
Expression t,
Expression e) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(CallContext ctx)
Evaluate the expression.
|
void |
compile(Compilation comp,
Target target) |
static void |
compile(Expression test,
Expression then_clause,
Expression else_clause,
Compilation comp,
Target target) |
Expression |
getElseClause() |
protected Language |
getLanguage() |
Expression |
getTest() |
Expression |
getThenClause() |
Type |
getType()
Return the Type used to represent the values of this Expression.
|
protected boolean |
mustCompile() |
void |
print(OutPort out) |
protected <R,D> R |
visit(ExpVisitor<R,D> visitor,
D d) |
protected <R,D> void |
visitChildren(ExpVisitor<R,D> visitor,
D d) |
apply0, compile, compile, compileButFirst, compileNotePosition, compileWithPosition, compileWithPosition, deepCopy, deepCopy, deepCopy, deepCopy, eval, eval, getColumnNumber, getFileName, getFlag, getFlags, getLineNumber, getPublicId, getSystemId, isSingleValue, isStableSourceLocation, makeWhile, match0, print, printLineColumn, setFile, setFlag, setFlag, setLine, setLine, setLine, setLine, setLocation, side_effects, toString, validateApply, valueIfConstantapply, check0, check1, check2, check3, check4, checkArgCount, checkN, getReturnType, getSetter, getSourceLocation, isSideEffectFree, match1, match2, match3, match4, matchN, maxArgs, maxArgs, minArgs, minArgs, set0, set1, setN, setSetter, setSourceLocationgetName, getProperty, getSymbol, removeProperty, setName, setProperty, setProperty, setSymbolpublic IfExp(Expression i, Expression t, Expression e)
public Expression getTest()
public Expression getThenClause()
public Expression getElseClause()
protected final Language getLanguage()
protected boolean mustCompile()
mustCompile in class Expressionpublic void apply(CallContext ctx) throws java.lang.Throwable
Expressionapply in class Expressionjava.lang.Throwablepublic void compile(Compilation comp, Target target)
compile in class Expressionpublic static void compile(Expression test, Expression then_clause, Expression else_clause, Compilation comp, Target target)
protected <R,D> R visit(ExpVisitor<R,D> visitor, D d)
visit in class Expressionprotected <R,D> void visitChildren(ExpVisitor<R,D> visitor, D d)
visitChildren in class Expressionpublic Type getType()
ExpressiongetType in class Expressionpublic void print(OutPort out)
print in class Expression