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 superFoo.this.


Nested Class Summary
static class Special.Kind
          Special expression kind: either "super" or "this".
 
Field Summary
static Special.Kind SUPER
           
static Special.Kind THIS
           
 
Method Summary
 Special.Kind kind()
          Get the kind of expression: SUPER or THIS.
 Special kind(Special.Kind kind)
          Set the kind of expression: SUPER or THIS.
 TypeNode qualifier()
          Get the outer class qualifier of the expression.
 Special qualifier(TypeNode qualifier)
          Set the outer class qualifier of the expression.
 
Methods inherited from interface polyglot.ast.Expr
constantValue, isConstant, precedence, printSubExpr, printSubExpr, type
 
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
 
Methods inherited from interface polyglot.ast.Term
acceptCFG, entry, exceptions, exceptions, reachable, reachable
 

Field Detail

SUPER

static final Special.Kind SUPER

THIS

static final Special.Kind THIS
Method Detail

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.