Skip to contentMethod: getComments()
      1: /**
2:  * 
3:  */
4: package parser;
5: 
6: import java.util.List;
7: 
8: import model.Comment;
9: import symbols.AbstractSymbol;
10: import basic.Buffer;
11: 
12: /**
13:  * @author hfw410wi - Mark Wittig
14:  * 
15:  */
16: public class AbstractFileParser {
17: 
18:         /**
19:          * the buffer, passed by the scanner.
20:          */
21:         private final transient Buffer<AbstractSymbol> buffer;
22: 
23:         /**
24:          * Indicator if the file is completely parsed or not.
25:          */
26:         private transient Boolean finished;
27: 
28:         /**
29:          * List of comments.
30:          */
31:         private transient List<Comment> comments;
32: 
33:         /**
34:          * constructor for create the PackageParser.
35:          * 
36:          * @param symbolBuffer
37:          *            Buffer<AbstractSymbol>
38:          */
39:         protected AbstractFileParser(final Buffer<AbstractSymbol> symbolBuffer) {
40:                 super();
41:                 this.buffer = symbolBuffer;
42:         }
43: 
44:         /**
45:          * 
46:          * @return the buffer
47:          */
48:         protected Buffer<AbstractSymbol> getBuffer() {
49:                 return this.buffer;
50:         }
51: 
52:         /**
53:          * @return the finished
54:          */
55:         public Boolean isFinished() {
56:                 return this.finished;
57:         }
58: 
59:         /**
60:          * @param finished
61:          *            the finished to set
62:          */
63:         public void setFinished(final Boolean finished) {
64:                 this.finished = finished;
65:         }
66: 
67:         /**
68:          * @return the comments
69:          */
70:         public List<Comment> getComments() {
71:                 return this.comments;
72:         }
73: 
74:         /**
75:          * @param comments
76:          *            the comments to set
77:          */
78:         protected void setComments(final List<Comment> comments) {
79:                 this.comments = comments;
80:         }
81: 
82: }