polyglot.ast
Interface NodeList

All Superinterfaces:
java.lang.Cloneable, Copy, JL, Node, NodeOps
All Known Implementing Classes:
NodeList_c

public interface NodeList
extends Node

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()
Get the NodeFactory to use when converting the list to a proper AST node.


nodes

java.util.List nodes()
Get the nodes contained in the list.


nodes

NodeList nodes(java.util.List nodes)
Set the nodes contained in the list.


toBlock

Block toBlock()
Convert the list into a Block.