polyglot.ast
Interface VarDecl

All Superinterfaces:
java.lang.Cloneable, Copy, JL, Node, NodeOps, Term
All Known Subinterfaces:
Formal, LocalDecl
All Known Implementing Classes:
Formal_c, LocalDecl_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, 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
 

Method Detail

declType

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


flags

Flags flags()
Get the declaration's flags.


type

TypeNode type()
Get the declaration's type.


name

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


localInstance

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