polyglot.ast
Interface LocalDecl

All Superinterfaces:
java.lang.Cloneable, Copy, ForInit, JL, Node, NodeOps, Stmt, Term, VarDecl
All Known Subinterfaces:
PolyJLocalDecl
All Known Implementing Classes:
LocalDecl_c, PolyJLocalDecl_c

public interface LocalDecl
extends ForInit, VarDecl

A local variable declaration statement: a type, a name and an optional initializer.


Method Summary
 LocalDecl flags(Flags flags)
          Set the declaration's flags.
 Expr init()
          Get the declaration's initializer expression, or null.
 LocalDecl init(Expr init)
          Set the declaration's initializer expression.
 LocalDecl localInstance(LocalInstance li)
          Set the type object for the local we are declaring.
 LocalDecl name(java.lang.String name)
          Set the declaration's name.
 LocalDecl type(TypeNode type)
          Set the declaration's type.
 
Methods inherited from interface polyglot.ast.Term
acceptCFG, entry, reachable, reachable
 
Methods inherited from interface polyglot.ast.Node
childExpectedType, del, del, dump, ext, ext, ext, ext, position, position, visit, visitChild, visitEdge
 
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.VarDecl
declType, flags, localInstance, name, type
 

Method Detail

flags

public LocalDecl flags(Flags flags)
Set the declaration's flags.


type

public LocalDecl type(TypeNode type)
Set the declaration's type.


name

public LocalDecl name(java.lang.String name)
Set the declaration's name.


init

public Expr init()
Get the declaration's initializer expression, or null.


init

public LocalDecl init(Expr init)
Set the declaration's initializer expression.


localInstance

public LocalDecl localInstance(LocalInstance li)
Set the type object for the local we are declaring.