polyglot.ast
Interface VarDecl

All Superinterfaces:
java.lang.Cloneable, Copy, JL, Node, NodeOps, Term
All Known Subinterfaces:
Formal, LocalDecl, PolyJLocalDecl
All Known Implementing Classes:
Formal_c, LocalDecl_c, PolyJLocalDecl_c

public interface VarDecl
extends Term

A VarDecl represents a variable declaration, of either a formal or a local variable.


Method Summary
 Type declType()
          Get the type object for the declaration's type.
 Flags flags()
          Get the declaration's flags.
 LocalInstance localInstance()
          Get the type object for the local we are declaring.
 java.lang.String name()
          Get the declaration's name.
 TypeNode type()
          Get 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, 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
 

Method Detail

declType

public Type declType()
Get the type object for the declaration's type.


flags

public Flags flags()
Get the declaration's flags.


type

public TypeNode type()
Get the declaration's type.


name

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


localInstance

public LocalInstance localInstance()
Get the type object for the local we are declaring. This field may not be valid until after signature disambiguation.