polyglot.ast
Interface Special
- All Superinterfaces:
- java.lang.Cloneable, Copy, Expr, JL, Node, NodeOps, Prefix, Receiver, Term, Typed
- All Known Implementing Classes:
- Special_c
public interface Special
- extends Expr
A Special
is an immutable representation of a
reference to this
or super
Foo.this.
Nested Class Summary |
static class |
Special.Kind
Special expression kind: either "super" or "this". |
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.Typed |
type |
SUPER
static final Special.Kind SUPER
THIS
static final Special.Kind THIS
kind
Special.Kind kind()
- Get the kind of expression: SUPER or THIS.
kind
Special kind(Special.Kind kind)
- Set the kind of expression: SUPER or THIS.
qualifier
TypeNode qualifier()
- Get the outer class qualifier of the expression.
qualifier
Special qualifier(TypeNode qualifier)
- Set the outer class qualifier of the expression.