| 
 | |||||||||
| 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.Cast
| Fields inherited from class net.janino.Java.Rvalue | 
| CONSTANT_VALUE_NULL, JUMP_IF_FALSE, JUMP_IF_TRUE | 
| Constructor Summary | |
| Java.Cast(Scanner.Location location,
          Java.Type targetType,
          Java.Rvalue value) | |
| Method Summary | |
|  IClass | compileGet()Generates code that determines the value of the Java.Rvalueand 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, getNegatedConstantValue, toRvalue | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
public Java.Cast(Scanner.Location location,
                 Java.Type targetType,
                 Java.Rvalue value)
| Method Detail | 
public IClass getType()
               throws Java.CompileException
getType in class Java.Atompublic IClass compileGet()
                  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()).compileGet in class Java.Rvaluenet.janino.Java.RvalueJava.Rvaluepublic java.lang.Object getConstantValue()
                                  throws Java.CompileException
Java.Rvalue
| Expression type | Return value type | 
|---|---|
| String | String | 
| byte | Byte | 
| short | Chort | 
| int | Integer | 
| boolean | Boolean | 
| char | Character | 
| float | Float | 
| long | Long | 
| double | Double | 
| null | Java.Rvalue.CONSTANT_VALUE_NULL | 
getConstantValue in class Java.Rvalue| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||