|
|||||||||
| 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.Stmt_c
jif.ast.LabelIf_c
public class LabelIf_c
An implementation of the LabelIf interface.
| Field Summary | |
|---|---|
protected polyglot.ast.Stmt |
alternative
|
protected polyglot.ast.Stmt |
consequent
|
protected LabelExpr |
lhs
|
protected LabelExpr |
rhs
|
| Fields inherited from class polyglot.ext.jl.ast.Term_c |
|---|
exceptions, reachable |
| Fields inherited from class polyglot.ext.jl.ast.Node_c |
|---|
del, error, ext, position |
| Constructor Summary | |
|---|---|
LabelIf_c(polyglot.util.Position pos,
LabelExpr lhs,
LabelExpr rhs,
polyglot.ast.Stmt consequent,
polyglot.ast.Stmt alternative)
|
|
| Method Summary | |
|---|---|
java.util.List |
acceptCFG(polyglot.visit.CFGBuilder v,
java.util.List succs)
|
polyglot.ast.Stmt |
alternative()
Gets the alternative statement. |
LabelIf |
alternative(polyglot.ast.Stmt alternative)
Sets the alternative statement. |
polyglot.ast.Stmt |
consequent()
Gets the consequent statement. |
LabelIf |
consequent(polyglot.ast.Stmt consequent)
Sets the consequent statement. |
polyglot.ast.Term |
entry()
|
LabelExpr |
lhs()
Gets the lhs principal. |
LabelIf |
lhs(LabelExpr lhs)
Sets the lhs principal. |
void |
prettyPrint(polyglot.util.CodeWriter w,
polyglot.visit.PrettyPrinter tr)
|
protected LabelIf_c |
reconstruct(LabelExpr lhs,
LabelExpr rhs,
polyglot.ast.Stmt consequent,
polyglot.ast.Stmt alternative)
Reconstructs the node. |
LabelExpr |
rhs()
Gets the rhs principal. |
LabelIf |
rhs(LabelExpr rhs)
Sets the rhs principal. |
java.lang.String |
toString()
|
void |
translate(polyglot.util.CodeWriter w,
polyglot.visit.Translator tr)
|
polyglot.ast.Node |
visitChildren(polyglot.visit.NodeVisitor v)
Visits the children of the node. |
| 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, buildTypes, buildTypesEnter, checkConstants, childExpectedType, copy, del, del, disambiguate, disambiguateEnter, disambiguateOverride, dump, dump, dump, enterChildScope, enterScope, error, error, exceptionCheckEnter, ext, ext, ext, ext, init, isDisambiguated, isTypeChecked, node, position, position, prettyPrint, prettyPrint, print, printBlock, printSubStmt, throwTypes, typeCheck, 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.Term |
|---|
exceptions, exceptions, reachable, reachable |
| Methods inherited from interface polyglot.ast.Node |
|---|
childExpectedType, del, del, dump, error, error, ext, ext, ext, ext, isDisambiguated, isTypeChecked, position, position, visit, visitChild, visitEdge, visitList |
| Methods inherited from interface polyglot.ast.JL |
|---|
init, node |
| Methods inherited from interface polyglot.ast.NodeOps |
|---|
addDecls, buildTypes, buildTypesEnter, checkConstants, disambiguate, disambiguateEnter, disambiguateOverride, dump, dump, enterChildScope, enterScope, exceptionCheck, exceptionCheckEnter, prettyPrint, prettyPrint, throwTypes, typeCheck, typeCheckEnter, typeCheckOverride |
| Methods inherited from interface polyglot.util.Copy |
|---|
copy |
| Field Detail |
|---|
protected LabelExpr lhs
protected LabelExpr rhs
protected polyglot.ast.Stmt consequent
protected polyglot.ast.Stmt alternative
| Constructor Detail |
|---|
public LabelIf_c(polyglot.util.Position pos,
LabelExpr lhs,
LabelExpr rhs,
polyglot.ast.Stmt consequent,
polyglot.ast.Stmt alternative)
| Method Detail |
|---|
public LabelExpr lhs()
lhs in interface LabelIfpublic LabelIf lhs(LabelExpr lhs)
lhs in interface LabelIfpublic LabelExpr rhs()
rhs in interface LabelIfpublic LabelIf rhs(LabelExpr rhs)
rhs in interface LabelIfpublic polyglot.ast.Stmt consequent()
consequent in interface LabelIfpublic LabelIf consequent(polyglot.ast.Stmt consequent)
consequent in interface LabelIfpublic polyglot.ast.Stmt alternative()
alternative in interface LabelIfpublic LabelIf alternative(polyglot.ast.Stmt alternative)
alternative in interface LabelIf
protected LabelIf_c reconstruct(LabelExpr lhs,
LabelExpr rhs,
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_cpublic 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 | ||||||||