polyglot.ast
Interface SourceCollection
- All Superinterfaces:
- java.lang.Cloneable, Copy, JL, Node, NodeOps
- All Known Implementing Classes:
- SourceCollection_c
public interface SourceCollection
- extends Node
A SourceCollection
represents a collection of source files.
This node should be used only during AST rewriting, just before code
generation in order to generate multiple target files from a single
AST.
Method Summary |
java.util.List |
sources()
List of source files in the collection. |
SourceCollection |
sources(java.util.List sources)
Set the list of source files in the collection. |
Methods inherited from interface polyglot.ast.Node |
childExpectedType, del, del, dump, 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, prettyPrint, throwTypes, translate, typeCheck, typeCheckEnter, visitChildren |
Methods inherited from interface polyglot.util.Copy |
copy |
sources
java.util.List sources()
- List of source files in the collection.
- Returns:
- A list of
SourceFile
.
sources
SourceCollection sources(java.util.List sources)
- Set the list of source files in the collection.
- Parameters:
sources
- A list of SourceFile
.