|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--polyglot.ext.jl.ast.Node_c
|
+--polyglot.ext.jl.ast.Term_c
|
+--polyglot.ext.jl.ast.Stmt_c
|
+--jif.ast.ActsFor_c
An implementation of the ActsFor interface.
| Field Summary | |
protected PrincipalNode |
actor
|
protected polyglot.ast.Stmt |
alternative
|
protected polyglot.ast.Stmt |
consequent
|
protected PrincipalNode |
granter
|
| Fields inherited from class polyglot.ext.jl.ast.Node_c |
del, ext, position |
| Constructor Summary | |
ActsFor_c(polyglot.util.Position pos,
PrincipalNode actor,
PrincipalNode granter,
polyglot.ast.Stmt consequent,
polyglot.ast.Stmt alternative)
|
|
| Method Summary | |
java.util.List |
acceptCFG(polyglot.visit.CFGBuilder v,
java.util.List succs)
|
PrincipalNode |
actor()
Gets the actor principal. |
ActsFor |
actor(PrincipalNode actor)
Sets the actor principal. |
polyglot.ast.Stmt |
alternative()
Gets the alternative statement. |
ActsFor |
alternative(polyglot.ast.Stmt alternative)
Sets the alternative statement. |
polyglot.ast.Stmt |
consequent()
Gets the consequent statement. |
ActsFor |
consequent(polyglot.ast.Stmt consequent)
Sets the consequent statement. |
polyglot.ast.Term |
entry()
|
PrincipalNode |
granter()
Gets the granter principal. |
ActsFor |
granter(PrincipalNode granter)
Sets the granter principal. |
void |
prettyPrint(polyglot.util.CodeWriter w,
polyglot.visit.PrettyPrinter tr)
|
protected ActsFor_c |
reconstruct(PrincipalNode actor,
PrincipalNode granter,
polyglot.ast.Stmt consequent,
polyglot.ast.Stmt alternative)
Reconstructs the node. |
java.lang.String |
toString()
|
void |
translate(polyglot.util.CodeWriter w,
polyglot.visit.Translator tr)
|
polyglot.ast.Node |
typeCheck(polyglot.visit.TypeChecker tc)
Type check the expression. |
polyglot.ast.Node |
visitChildren(polyglot.visit.NodeVisitor v)
Visits the children of the node. |
| Methods inherited from class polyglot.ext.jl.ast.Term_c |
listEntry |
| Methods inherited from class polyglot.ext.jl.ast.Node_c |
addDecls, addMembers, addMembersEnter, addMembersOverride, buildTypes, buildTypesEnter, buildTypesOverride, childExpectedType, copy, del, del, disambiguate, disambiguateEnter, disambiguateOverride, dump, enterScope, exceptionCheck, exceptionCheckEnter, exceptionCheckOverride, ext, ext, ext, ext, foldConstants, foldConstantsEnter, foldConstantsOverride, init, node, position, position, print, printBlock, printSubStmt, throwTypes, 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.Node |
childExpectedType, del, del, dump, ext, ext, ext, ext, position, position, visit, visitChild, visitEdge |
| Methods inherited from interface polyglot.ast.JL |
init, node |
| Methods inherited from interface polyglot.ast.NodeOps |
addDecls, addMembers, addMembersEnter, buildTypes, buildTypesEnter, disambiguate, disambiguateEnter, enterScope, exceptionCheck, exceptionCheckEnter, foldConstants, foldConstantsEnter, throwTypes, typeCheckEnter |
| Methods inherited from interface polyglot.util.Copy |
copy |
| Field Detail |
protected PrincipalNode actor
protected PrincipalNode granter
protected polyglot.ast.Stmt consequent
protected polyglot.ast.Stmt alternative
| Constructor Detail |
public ActsFor_c(polyglot.util.Position pos,
PrincipalNode actor,
PrincipalNode granter,
polyglot.ast.Stmt consequent,
polyglot.ast.Stmt alternative)
| Method Detail |
public PrincipalNode actor()
actor in interface ActsForpublic ActsFor actor(PrincipalNode actor)
actor in interface ActsForpublic PrincipalNode granter()
granter in interface ActsForpublic ActsFor granter(PrincipalNode granter)
granter in interface ActsForpublic polyglot.ast.Stmt consequent()
consequent in interface ActsForpublic ActsFor consequent(polyglot.ast.Stmt consequent)
consequent in interface ActsForpublic polyglot.ast.Stmt alternative()
alternative in interface ActsForpublic ActsFor alternative(polyglot.ast.Stmt alternative)
alternative in interface ActsFor
protected ActsFor_c reconstruct(PrincipalNode actor,
PrincipalNode granter,
polyglot.ast.Stmt consequent,
polyglot.ast.Stmt alternative)
public polyglot.ast.Node visitChildren(polyglot.visit.NodeVisitor v)
visitChildren in interface polyglot.ast.NodeOpsvisitChildren in class polyglot.ext.jl.ast.Node_c
public polyglot.ast.Node typeCheck(polyglot.visit.TypeChecker tc)
throws polyglot.types.SemanticException
typeCheck in interface polyglot.ast.NodeOpstypeCheck in class polyglot.ext.jl.ast.Node_cpolyglot.types.SemanticExceptionpublic polyglot.ast.Term entry()
entry in interface polyglot.ast.Termentry in class polyglot.ext.jl.ast.Term_c
public java.util.List acceptCFG(polyglot.visit.CFGBuilder v,
java.util.List succs)
acceptCFG in interface polyglot.ast.TermacceptCFG in class polyglot.ext.jl.ast.Term_cpublic java.lang.String toString()
toString in class polyglot.ext.jl.ast.Node_c
public void prettyPrint(polyglot.util.CodeWriter w,
polyglot.visit.PrettyPrinter tr)
prettyPrint in interface polyglot.ast.NodeOpsprettyPrint in class polyglot.ext.jl.ast.Node_c
public void translate(polyglot.util.CodeWriter w,
polyglot.visit.Translator tr)
translate in interface polyglot.ast.NodeOpstranslate in class polyglot.ext.jl.ast.Node_c
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||