|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface NodeList
A NodeList represents a list of AST nodes.
NodeLists are not intended to appear as part of the AST. When
a node is visited, it may replace itself with multiple nodes by returning a
NodeList to the visitor. The rewritten node's parent would
then be responsible for properly splicing those nodes into the AST.
| Method Summary | |
|---|---|
NodeFactory |
nodeFactory()
Get the NodeFactory to use when converting the list to a
proper AST node. |
java.util.List |
nodes()
Get the nodes contained in the list. |
NodeList |
nodes(java.util.List nodes)
Set the nodes contained in the list. |
Block |
toBlock()
Convert the list into a Block. |
| 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, copy, copy, disambiguate, disambiguateEnter, disambiguateOverride, dump, dump, enterChildScope, enterScope, exceptionCheck, exceptionCheckEnter, prettyPrint, prettyPrint, prettyPrint, throwTypes, translate, typeCheck, typeCheckEnter, typeCheckOverride, visitChildren |
| Methods inherited from interface polyglot.util.Copy |
|---|
copy |
| Method Detail |
|---|
NodeFactory nodeFactory()
NodeFactory to use when converting the list to a
proper AST node.
java.util.List nodes()
NodeList nodes(java.util.List nodes)
Block toBlock()
Block.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||