|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpolyglot.ext.jl.ast.Node_c
polyglot.ext.jl.ast.Term_c
polyglot.ext.jl.ast.Expr_c
polyglot.ext.jl.ast.Special_c
A Special is an immutable representation of a
reference to this or superFoo.this.
| Nested Class Summary |
| Nested classes inherited from class polyglot.ast.Special |
Special.Kind |
| Field Summary | |
protected Special.Kind |
kind
|
protected TypeNode |
qualifier
|
| Fields inherited from class polyglot.ext.jl.ast.Expr_c |
type |
| Fields inherited from class polyglot.ext.jl.ast.Term_c |
exceptions, reachable |
| Fields inherited from class polyglot.ext.jl.ast.Node_c |
del, ext, position |
| Fields inherited from interface polyglot.ast.Special |
SUPER, THIS |
| Constructor Summary | |
Special_c(Position pos,
Special.Kind kind,
TypeNode qualifier)
|
|
| Method Summary | |
java.util.List |
acceptCFG(CFGBuilder v,
java.util.List succs)
Visit this term in evaluation order. |
void |
dump(CodeWriter w)
Dump the AST node for debugging purposes. |
Term |
entry()
Return the first (sub)term performed when evaluating this term. |
Special.Kind |
kind()
Get the kind of the special expression, either this or super. |
Special |
kind(Special.Kind kind)
Set the kind of the special expression, either this or super. |
Precedence |
precedence()
Get the precedence of the expression. |
void |
prettyPrint(CodeWriter w,
PrettyPrinter tr)
Write the expression to an output file. |
TypeNode |
qualifier()
Get the qualifier of the special expression. |
Special |
qualifier(TypeNode qualifier)
Set the qualifier of the special expression. |
protected Special_c |
reconstruct(TypeNode qualifier)
Reconstruct the expression. |
java.lang.String |
toString()
|
Node |
typeCheck(TypeChecker tc)
Type check the expression. |
Node |
visitChildren(NodeVisitor v)
Visit the children of the expression. |
| Methods inherited from class polyglot.ext.jl.ast.Expr_c |
booleanValue, buildTypes, byteValue, charValue, constantValue, doubleValue, floatValue, intValue, isConstant, longValue, printSubExpr, printSubExpr, shortValue, stringValue, type, type |
| Methods inherited from class polyglot.ext.jl.ast.Term_c |
exceptionCheck, exceptions, exceptions, listEntry, reachable, reachable |
| Methods inherited from class polyglot.ext.jl.ast.Node_c |
addDecls, addMembers, addMembersEnter, addMembersOverride, buildTypesEnter, buildTypesOverride, childExpectedType, copy, del, del, disambiguate, disambiguateEnter, disambiguateOverride, enterScope, enterScope, exceptionCheckEnter, exceptionCheckOverride, ext, ext, ext, ext, init, node, position, position, print, printBlock, printSubStmt, throwTypes, translate, typeCheckEnter, typeCheckOverride, visit, visitChild, visitEdge, visitList |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface polyglot.ast.Expr |
constantValue, isConstant, printSubExpr, printSubExpr, type |
| Methods inherited from interface polyglot.ast.Node |
childExpectedType, del, del, 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, throwTypes, translate, typeCheckEnter |
| Methods inherited from interface polyglot.util.Copy |
copy |
| Methods inherited from interface polyglot.ast.Typed |
type |
| Methods inherited from interface polyglot.ast.Term |
exceptions, exceptions, reachable, reachable |
| Field Detail |
protected Special.Kind kind
protected TypeNode qualifier
| Constructor Detail |
public Special_c(Position pos,
Special.Kind kind,
TypeNode qualifier)
| Method Detail |
public Precedence precedence()
precedence in interface Exprprecedence in class Expr_cpublic Special.Kind kind()
kind in interface Specialpublic Special kind(Special.Kind kind)
kind in interface Specialpublic TypeNode qualifier()
qualifier in interface Specialpublic Special qualifier(TypeNode qualifier)
qualifier in interface Specialprotected Special_c reconstruct(TypeNode qualifier)
public Node visitChildren(NodeVisitor v)
visitChildren in interface NodeOpsvisitChildren in class Node_c
public Node typeCheck(TypeChecker tc)
throws SemanticException
typeCheck in interface NodeOpstypeCheck in class Node_cSemanticExceptionpublic Term entry()
entry in interface Termentry in class Term_c
public java.util.List acceptCFG(CFGBuilder v,
java.util.List succs)
acceptCFG in interface TermacceptCFG in class Term_cpublic java.lang.String toString()
toString in class Node_c
public void prettyPrint(CodeWriter w,
PrettyPrinter tr)
prettyPrint in interface NodeOpsprettyPrint in class Node_cpublic void dump(CodeWriter w)
Node
dump in interface Nodedump in class Expr_c
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||