KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > polyglot > ast > LocalDecl


1 package polyglot.ast;
2
3 import polyglot.types.Type;
4 import polyglot.types.Flags;
5 import polyglot.types.LocalInstance;
6 import polyglot.types.SemanticException;
7
8 /**
9  * A local variable declaration statement: a type, a name and an optional
10  * initializer.
11  */

12 public interface LocalDecl extends ForInit, VarDecl
13 {
14     /** Set the declaration's flags. */
15     LocalDecl flags(Flags flags);
16
17     /** Set the declaration's type. */
18     LocalDecl type(TypeNode type);
19
20     /** Set the declaration's name. */
21     LocalDecl name(String JavaDoc name);
22
23     /** Get the declaration's initializer expression, or null. */
24     Expr init();
25     /** Set the declaration's initializer expression. */
26     LocalDecl init(Expr init);
27
28     /**
29      * Set the type object for the local we are declaring.
30      */

31     LocalDecl localInstance(LocalInstance li);
32 }
33
Popular Tags