|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectast.ASTNode
ast.Program
public class Program
The Program class represents an entire program, which consists of a list of classes (classList).
ASTNode,
ClassList| Field Summary | |
|---|---|
protected ClassList |
classList
List of class declarations that comprise the program |
| Fields inherited from class ast.ASTNode |
|---|
charNum, lineNum, lineStr |
| Constructor Summary | |
|---|---|
Program(int lineNum,
ClassList classList)
Program constructor |
|
| Method Summary | |
|---|---|
java.lang.Object |
accept(Visitor v)
Visitor method |
ClassList |
getClassList()
Get list of classes that comprise the program |
| Methods inherited from class ast.ASTNode |
|---|
getLineNum |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected ClassList classList
| Constructor Detail |
|---|
public Program(int lineNum,
ClassList classList)
lineNum - source line number corresponding to this AST nodeclassList - list of class declarations| Method Detail |
|---|
public ClassList getClassList()
public java.lang.Object accept(Visitor v)
accept in class ASTNodev - visitor object
Visitor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||