KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > polyglot > ast > Special


1 package polyglot.ast;
2
3 import polyglot.util.Enum;
4
5 /**
6  * A <code>Special</code> is an immutable representation of a
7  * reference to <code>this</code> or <code>super</code in Java. This
8  * reference can be optionally qualified with a type such as
9  * <code>Foo.this</code>.
10  */

11 public interface Special extends Expr
12 {
13     /** Special expression kind: either "super" or "this". */
14     public static class Kind extends Enum JavaDoc {
15         public Kind(String JavaDoc name) { super(name); }
16     }
17
18     public static final Kind SUPER = new Kind("super");
19     public static final Kind THIS = new Kind("this");
20
21     /** Get the kind of expression: SUPER or THIS. */
22     Kind kind();
23
24     /** Set the kind of expression: SUPER or THIS. */
25     Special kind(Kind kind);
26
27     /** Get the outer class qualifier of the expression. */
28     TypeNode qualifier();
29
30     /** Set the outer class qualifier of the expression. */
31     Special qualifier(TypeNode qualifier);
32 }
33
Popular Tags