polyglot.ast
Interface LocalDecl

All Superinterfaces:
java.lang.Cloneable, Copy, ForInit, JL, Node, NodeOps, Stmt, Term, VarDecl
All Known Implementing Classes:
LocalDecl_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, exceptions, exceptions, reachable, reachable
 
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.VarDecl
declType, flags, localInstance, name, type
 

Method Detail

flags

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


type

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


name

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


init

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


init

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


localInstance

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