public static class Compiler.CaseExpr extends Object implements Compiler.MaybePrimitiveExpr
Modifier and Type | Field and Description |
---|---|
int |
column |
clojure.lang.Compiler.Expr |
defaultExpr |
Compiler.LocalBindingExpr |
expr |
int |
high |
int |
line |
int |
low |
int |
mask |
Class |
returnType |
int |
shift |
Set<Integer> |
skipCheck |
Keyword |
switchType |
SortedMap<Integer,clojure.lang.Compiler.Expr> |
tests |
Keyword |
testType |
HashMap<Integer,clojure.lang.Compiler.Expr> |
thens |
Constructor and Description |
---|
Compiler.CaseExpr(int line,
int column,
Compiler.LocalBindingExpr expr,
int shift,
int mask,
int low,
int high,
clojure.lang.Compiler.Expr defaultExpr,
SortedMap<Integer,clojure.lang.Compiler.Expr> tests,
HashMap<Integer,clojure.lang.Compiler.Expr> thens,
Keyword switchType,
Keyword testType,
Set<Integer> skipCheck) |
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) |
Object |
eval() |
Class |
getJavaClass() |
boolean |
hasJavaClass() |
public final Compiler.LocalBindingExpr expr
public final int shift
public final int mask
public final int low
public final int high
public final clojure.lang.Compiler.Expr defaultExpr
public final Keyword switchType
public final Keyword testType
public final Class returnType
public final int line
public final int column
public Compiler.CaseExpr(int line, int column, Compiler.LocalBindingExpr expr, int shift, int mask, int low, int high, clojure.lang.Compiler.Expr defaultExpr, SortedMap<Integer,clojure.lang.Compiler.Expr> tests, HashMap<Integer,clojure.lang.Compiler.Expr> thens, Keyword switchType, Keyword testType, Set<Integer> skipCheck)
public boolean hasJavaClass()
public boolean canEmitPrimitive()
canEmitPrimitive
in interface Compiler.MaybePrimitiveExpr
public Class getJavaClass()
public Object eval()
public void emit(Compiler.C context, Compiler.ObjExpr objx, GeneratorAdapter gen)
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)
Copyright © 2018. All rights reserved.