ast
Class Program

java.lang.Object
  extended by ast.ASTNode
      extended by ast.Program

public class Program
extends ASTNode

The Program class represents an entire program, which consists of a list of classes (classList).

See Also:
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.Visitor v, java.lang.Object o)
          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

classList

protected ClassList classList
List of class declarations that comprise the program

Constructor Detail

Program

public Program(int lineNum,
               ClassList classList)
Program constructor

Parameters:
lineNum - source line number corresponding to this AST node
classList - list of class declarations
Method Detail

getClassList

public ClassList getClassList()
Get list of classes that comprise the program

Returns:
list of class declarations

accept

public java.lang.Object accept(visitor.Visitor v,
                               java.lang.Object o)
Visitor method

Specified by:
accept in class ASTNode
Parameters:
v - visitor object
o - object to pass down
Returns:
result of visiting this node
See Also:
Visitor