Class NumLit_c

  extended by polyglot.ext.jl.ast.Node_c
      extended by polyglot.ext.jl.ast.Term_c
          extended by polyglot.ext.jl.ast.Expr_c
              extended by polyglot.ext.jl.ast.Lit_c
                  extended by polyglot.ext.jl.ast.NumLit_c
All Implemented Interfaces:
java.lang.Cloneable, Expr, JL, Lit, Node, NodeOps, NumLit, Prefix, Receiver, Term, Typed, Copy
Direct Known Subclasses:
CharLit_c, IntLit_c

public abstract class NumLit_c
extends Lit_c
implements NumLit

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

Field Summary
protected  long value
Fields inherited from class polyglot.ext.jl.ast.Expr_c
Fields inherited from class polyglot.ext.jl.ast.Term_c
exceptions, reachable
Fields inherited from class polyglot.ext.jl.ast.Node_c
del, ext, position
Constructor Summary
NumLit_c(Position pos, long value)
Method Summary
 void dump(CodeWriter w)
          Dump the AST node for debugging purposes.
 long longValue()
          Get the value of the expression.
Methods inherited from class polyglot.ext.jl.ast.Lit_c
acceptCFG, constantValue, entry, isConstant, precedence
Methods inherited from class polyglot.ext.jl.ast.Expr_c
booleanValue, buildTypes, byteValue, charValue, doubleValue, floatValue, intValue, printSubExpr, printSubExpr, shortValue, stringValue, type, type
Methods inherited from class polyglot.ext.jl.ast.Term_c
exceptionCheck, exceptions, exceptions, listEntry, reachable, reachable
Methods inherited from class polyglot.ext.jl.ast.Node_c
addDecls, addMembers, addMembersEnter, addMembersOverride, buildTypesEnter, buildTypesOverride, childExpectedType, copy, del, del, disambiguate, disambiguateEnter, disambiguateOverride, enterScope, enterScope, exceptionCheckEnter, exceptionCheckOverride, ext, ext, ext, ext, init, node, position, position, prettyPrint, print, printBlock, printSubStmt, throwTypes, toString, translate, typeCheck, typeCheckEnter, typeCheckOverride, visit, visitChild, visitChildren, visitEdge, visitList
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface polyglot.ast.Expr
constantValue, isConstant, precedence, printSubExpr, printSubExpr, type
Methods inherited from interface polyglot.ast.Node
childExpectedType, del, del, ext, ext, ext, ext, position, position, visit, visitChild, visitEdge, visitList
Methods inherited from interface polyglot.ast.JL
init, node
Methods inherited from interface polyglot.ast.NodeOps
addDecls, addMembers, addMembersEnter, buildTypes, buildTypesEnter, disambiguate, disambiguateEnter, enterScope, enterScope, exceptionCheck, exceptionCheckEnter, prettyPrint, throwTypes, translate, typeCheck, typeCheckEnter, visitChildren
Methods inherited from interface polyglot.util.Copy
Methods inherited from interface polyglot.ast.Typed
Methods inherited from interface polyglot.ast.Term
acceptCFG, entry, exceptions, exceptions, reachable, reachable

Field Detail


protected long value
Constructor Detail


public NumLit_c(Position pos,
                long value)
Method Detail


public long longValue()
Get the value of the expression.

Specified by:
longValue in interface NumLit
longValue in class Expr_c


public void dump(CodeWriter w)
Description copied from interface: Node
Dump the AST node for debugging purposes.

Specified by:
dump in interface Node
dump in class Expr_c