|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--net.janino.Java.Located
|
+--net.janino.Java.Atom
|
+--net.janino.Java.Rvalue
|
+--net.janino.Java.Literal
| Fields inherited from class net.janino.Java.Rvalue |
JUMP_IF_FALSE, JUMP_IF_TRUE |
| Constructor Summary | |
Java.Literal(Scanner.Location location,
java.lang.Object value)
|
|
| Method Summary | |
IClass |
compileGet(ClassFile.CodeAttribute codeAttribute)
Generates code that determines the value of the Java.Rvalue
and puts it on the operand stack. |
java.lang.Object |
getConstantValue()
Attempts to evaluate as a constant expression. |
IClass |
getType()
|
| Methods inherited from class net.janino.Java.Rvalue |
compile, compileBoolean, compileContext, compileGetValue |
| Methods inherited from class net.janino.Java.Atom |
getLocation, isType, throwCompileException, throwParseException, toLvalue, toRvalue, toType |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
public Java.Literal(Scanner.Location location,
java.lang.Object value)
| Method Detail |
public IClass getType()
getType in class Java.Atompublic IClass compileGet(ClassFile.CodeAttribute codeAttribute)
throws Java.CompileException
Java.RvalueJava.Rvalue
and puts it on the operand stack. This method relies on that the
"context" of the Java.Rvalue is on top of the operand stack
(see Java.Rvalue.compileContext(ClassFile.CodeAttribute)).compileGet in class Java.Rvaluenet.janino.Java.RvalueJava.Rvaluepublic java.lang.Object getConstantValue()
Java.RvaluegetConstantValue in class Java.Rvaluenet.janino.Java.Rvalue
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||