static class Compiler.StaticFieldExpr extends Compiler.FieldExpr implements Compiler.AssignableExpr
Compiler.HostExpr.Parser
Modifier and Type | Field and Description |
---|---|
java.lang.Class |
c |
(package private) int |
column |
java.lang.reflect.Field |
field |
java.lang.String |
fieldName |
(package private) int |
line |
Symbol |
tag |
BOOLEAN_TYPE, booleanValueMethod, BYTE_TYPE, byteValueMethod, byteValueOfMethod, CHAR_TYPE, charValueMethod, charValueOfMethod, DOUBLE_TYPE, doubleValueMethod, doubleValueOfMethod, FLOAT_TYPE, floatValueMethod, floatValueOfMethod, fromDoubleMethod, fromIntMethod, fromLongMethod, INTEGER_TYPE, intValueMethod, intValueOfMethod, LONG_TYPE, longValueMethod, longValueOfMethod, NUMBER_TYPE, SHORT_TYPE, shortValueMethod, shortValueOfMethod
Constructor and Description |
---|
Compiler.StaticFieldExpr(int line,
int column,
java.lang.Class c,
java.lang.String fieldName,
Symbol tag) |
Modifier and Type | Method and Description |
---|---|
boolean |
canEmitPrimitive() |
void |
emit(Compiler.C context,
Compiler.ObjExpr objx,
GeneratorAdapter gen) |
void |
emitAssign(Compiler.C context,
Compiler.ObjExpr objx,
GeneratorAdapter gen,
Compiler.Expr val) |
void |
emitUnboxed(Compiler.C context,
Compiler.ObjExpr objx,
GeneratorAdapter gen) |
java.lang.Object |
eval() |
java.lang.Object |
evalAssign(Compiler.Expr val) |
java.lang.Class |
getJavaClass() |
boolean |
hasJavaClass() |
emitBoxReturn, emitUnboxArg, tagToClass
public final java.lang.String fieldName
public final java.lang.Class c
public final java.lang.reflect.Field field
public final Symbol tag
final int line
final int column
public Compiler.StaticFieldExpr(int line, int column, java.lang.Class c, java.lang.String fieldName, Symbol tag)
public java.lang.Object eval()
eval
in interface Compiler.Expr
public boolean canEmitPrimitive()
canEmitPrimitive
in interface Compiler.MaybePrimitiveExpr
public void emitUnboxed(Compiler.C context, Compiler.ObjExpr objx, GeneratorAdapter gen)
emitUnboxed
in interface Compiler.MaybePrimitiveExpr
public void emit(Compiler.C context, Compiler.ObjExpr objx, GeneratorAdapter gen)
emit
in interface Compiler.Expr
public boolean hasJavaClass()
hasJavaClass
in interface Compiler.Expr
public java.lang.Class getJavaClass()
getJavaClass
in interface Compiler.Expr
public java.lang.Object evalAssign(Compiler.Expr val)
evalAssign
in interface Compiler.AssignableExpr
public void emitAssign(Compiler.C context, Compiler.ObjExpr objx, GeneratorAdapter gen, Compiler.Expr val)
emitAssign
in interface Compiler.AssignableExpr