public static class Compiler.IfExpr extends java.lang.Object implements Compiler.Expr, Compiler.MaybePrimitiveExpr
Modifier and Type | Class and Description |
---|---|
(package private) static class |
Compiler.IfExpr.Parser |
Modifier and Type | Field and Description |
---|---|
int |
column |
Compiler.Expr |
elseExpr |
int |
line |
Compiler.Expr |
testExpr |
Compiler.Expr |
thenExpr |
Constructor and Description |
---|
Compiler.IfExpr(int line,
int column,
Compiler.Expr testExpr,
Compiler.Expr thenExpr,
Compiler.Expr elseExpr) |
Modifier and Type | Method and Description |
---|---|
boolean |
canEmitPrimitive() |
void |
doEmit(Compiler.C context,
Compiler.ObjExpr objx,
GeneratorAdapter gen,
boolean emitUnboxed) |
void |
emit(Compiler.C context,
Compiler.ObjExpr objx,
GeneratorAdapter gen) |
void |
emitUnboxed(Compiler.C context,
Compiler.ObjExpr objx,
GeneratorAdapter gen) |
java.lang.Object |
eval() |
java.lang.Class |
getJavaClass() |
boolean |
hasJavaClass() |
public final Compiler.Expr testExpr
public final Compiler.Expr thenExpr
public final Compiler.Expr elseExpr
public final int line
public final int column
public Compiler.IfExpr(int line, int column, Compiler.Expr testExpr, Compiler.Expr thenExpr, Compiler.Expr elseExpr)
public java.lang.Object eval()
eval
in interface Compiler.Expr
public void emit(Compiler.C context, Compiler.ObjExpr objx, GeneratorAdapter gen)
emit
in interface Compiler.Expr
public void emitUnboxed(Compiler.C context, Compiler.ObjExpr objx, GeneratorAdapter gen)
emitUnboxed
in interface Compiler.MaybePrimitiveExpr
public void doEmit(Compiler.C context, Compiler.ObjExpr objx, GeneratorAdapter gen, boolean emitUnboxed)
public boolean hasJavaClass()
hasJavaClass
in interface Compiler.Expr
public boolean canEmitPrimitive()
canEmitPrimitive
in interface Compiler.MaybePrimitiveExpr
public java.lang.Class getJavaClass()
getJavaClass
in interface Compiler.Expr