jltools.ext.jl.ast
Class NumLit_c

java.lang.Object
  |
  +--jltools.ext.jl.ast.Node_c
        |
        +--jltools.ext.jl.ast.Expr_c
              |
              +--jltools.ext.jl.ast.Lit_c
                    |
                    +--jltools.ext.jl.ast.NumLit_c
All Implemented Interfaces:
java.lang.Cloneable, Copy, Expr, Lit, Node, NumLit, Prefix, Receiver, java.io.Serializable, Typed
Direct Known Subclasses:
CharLit_c, IntLit_c

public class NumLit_c
extends Lit_c
implements NumLit

An integer literal: longs, ints, shorts, bytes, and chars.

See Also:
Serialized Form

Inner classes inherited from class jltools.ext.jl.ast.Node_c
Node_c.StringCodeWriter
 
Field Summary
protected  long value
           
 
Fields inherited from class jltools.ext.jl.ast.Expr_c
type
 
Fields inherited from class jltools.ext.jl.ast.Node_c
ext, position
 
Constructor Summary
NumLit_c(Ext ext, Position pos, long value)
           
 
Method Summary
 long longValue()
          Get the value of the expression.
 java.lang.Object objValue()
          Get the value of the expression, as an object.
 
Methods inherited from class jltools.ext.jl.ast.Lit_c
precedence
 
Methods inherited from class jltools.ext.jl.ast.Expr_c
buildTypes_, dump, reconstructTypes_, translateSubexpr, type, type
 
Methods inherited from class jltools.ext.jl.ast.Node_c
buildTypes, buildTypesOverride_, buildTypesOverride, copy, disambiguate_, disambiguate, disambiguateOverride_, disambiguateOverride, disambiguateTypes_, disambiguateTypes, disambiguateTypesOverride_, disambiguateTypesOverride, enterScope, exceptionCheck_, exceptionCheck, exceptionCheckOverride_, exceptionCheckOverride, ext, ext, foldConstants_, foldConstants, foldConstantsOverride_, foldConstantsOverride, leaveScope, position, position, reconstructTypes, toString, translate_, translate, translateBlock, translateSubstmt, typeCheck_, typeCheck, typeCheckOverride_, typeCheckOverride, visit, visitChildren, visitList
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface jltools.ast.Expr
precedence, type
 
Methods inherited from interface jltools.ast.Node
buildTypes_, buildTypesOverride_, copy, disambiguate_, disambiguateOverride_, disambiguateTypes_, disambiguateTypesOverride_, dump, enterScope, exceptionCheck_, exceptionCheckOverride_, ext, ext, foldConstants_, foldConstantsOverride_, leaveScope, position, position, reconstructTypes_, translate_, typeCheck_, typeCheckOverride_, visit, visitChildren
 
Methods inherited from interface jltools.ast.Typed
type
 

Field Detail

value

protected long value
Constructor Detail

NumLit_c

public NumLit_c(Ext ext,
                Position pos,
                long value)
Method Detail

longValue

public long longValue()
Get the value of the expression.
Specified by:
longValue in interface NumLit

objValue

public java.lang.Object objValue()
Get the value of the expression, as an object.
Specified by:
objValue in interface Lit
Overrides:
objValue in class Lit_c