00001 package edu.ksu.cis.bandera.abstraction.predicate.parser;
00002
00003
00004 import java.util.*;
00005
00006 public class ASTCompilationUnit extends SimpleNode {
00007
00008 private LinkedList pred = new LinkedList();
00009
00010
00011 public ASTCompilationUnit(int id) {
00012 super(id);
00013 }
00014 public ASTCompilationUnit(PredicateParser p, int id) {
00015 super(p, id);
00016 }
00017
00018
00019
00020 public void addPredicate(Predicate p) { pred.addLast(p); }
00021 public List getPredicate() { return pred; }
00022
00023 public Object jjtAccept(PredicateParserVisitor visitor, Object data) {
00024 return visitor.visit(this, data);
00025 }
00026 public static Node jjtCreate(int id) {
00027 return new ASTCompilationUnit(id);
00028 }
00029 public static Node jjtCreate(PredicateParser p, int id) {
00030 return new ASTCompilationUnit(p, id);
00031 }
00032 }