polyglot.ast
Interface IntLit

All Superinterfaces:
java.lang.Cloneable, Copy, Expr, JL, Lit, Node, NodeOps, NumLit, Prefix, Receiver, Term, Typed
All Known Implementing Classes:
IntLit_c

public interface IntLit
extends NumLit

An IntLit represents a literal in Java of an integer type.


Nested Class Summary
static class IntLit.Kind
          Integer literal kinds: int (e.g., 0) or long (e.g., 0L).
 
Field Summary
static IntLit.Kind INT
           
static IntLit.Kind LONG
           
 
Method Summary
 boolean boundary()
          Is this a boundary case, i.e., max int or max long + 1?
 IntLit.Kind kind()
          Get the kind of the literal: INT or LONG.
 IntLit kind(IntLit.Kind kind)
          Set the kind of the literal: INT or LONG.
 java.lang.String positiveToString()
          Print the string as a positive number.
 long value()
          Get the literal's value.
 IntLit value(long value)
          Set the literal's value.
 
Methods inherited from interface polyglot.ast.NumLit
longValue
 
Methods inherited from interface polyglot.ast.Expr
constantValue, isConstant, precedence, printSubExpr, printSubExpr, type
 
Methods inherited from interface polyglot.ast.Node
childExpectedType, del, del, dump, 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
copy
 
Methods inherited from interface polyglot.ast.Typed
type
 
Methods inherited from interface polyglot.ast.Term
acceptCFG, entry, exceptions, exceptions, reachable, reachable
 

Field Detail

INT

static final IntLit.Kind INT

LONG

static final IntLit.Kind LONG
Method Detail

value

long value()
Get the literal's value.


value

IntLit value(long value)
Set the literal's value.


kind

IntLit.Kind kind()
Get the kind of the literal: INT or LONG.


kind

IntLit kind(IntLit.Kind kind)
Set the kind of the literal: INT or LONG.


boundary

boolean boundary()
Is this a boundary case, i.e., max int or max long + 1?


positiveToString

java.lang.String positiveToString()
Print the string as a positive number.