Modifier and Type | Field and Description |
---|---|
protected ClassList |
classList
List of class declarations that comprise the program
|
Constructor and Description |
---|
Program(int lineNum,
ClassList classList)
Program constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
accept(visitor.Visitor v,
java.lang.Object o)
Visitor method
|
ClassList |
getClassList()
Get list of classes that comprise the program
|
getLineNum
protected ClassList classList
public Program(int lineNum, ClassList classList)
lineNum
- source line number corresponding to this AST nodeclassList
- list of class declarationspublic ClassList getClassList()