janino.net

org.codehaus.janino
Class Java.Literal

java.lang.Object
  extended by org.codehaus.janino.Java.Located
      extended by org.codehaus.janino.Java.Atom
          extended by org.codehaus.janino.Java.Rvalue
              extended by org.codehaus.janino.Java.Literal
All Implemented Interfaces:
Java.ArrayInitializerOrRvalue, Java.ElementValue, Java.Locatable
Direct Known Subclasses:
Java.BooleanLiteral, Java.CharacterLiteral, Java.FloatingPointLiteral, Java.IntegerLiteral, Java.NullLiteral, Java.StringLiteral
Enclosing class:
Java

public abstract static class Java.Literal
extends Java.Rvalue

Abstract base class for the various Java™ literals; see JLS7 3.10.


Field Summary
 String value
          The text of the literal token, as in the source code.
 
Fields inherited from class org.codehaus.janino.Java.Located
NOWHERE
 
Constructor Summary
Java.Literal(Location location, String value)
           
 
Method Summary
 String toString()
           
 
Methods inherited from class org.codehaus.janino.Java.Rvalue
accept, getEnclosingBlockStatement, setEnclosingBlockStatement, toRvalue
 
Methods inherited from class org.codehaus.janino.Java.Atom
accept, toLvalue, toLvalueOrCompileException, toRvalueOrCompileException, toType, toTypeOrCompileException
 
Methods inherited from class org.codehaus.janino.Java.Located
getLocation, throwCompileException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.codehaus.janino.Java.Locatable
getLocation, throwCompileException
 
Methods inherited from interface org.codehaus.janino.Java.ElementValue
accept
 

Field Detail

value

public final String value
The text of the literal token, as in the source code.

Constructor Detail

Java.Literal

public Java.Literal(Location location,
                    String value)
Parameters:
value - The text of the literal token, as in the source code
Method Detail

toString

public String toString()
Specified by:
toString in class Java.Atom

janino.net