Skip to contentMethod: DescriptionBlock()
      1: /**
2:  * 
3:  */
4: package scanner;
5: 
6: import model.Position;
7: import symbols.AbstractSymbol;
8: 
9: /**
10:  * This abstract class represents the block of the PackageDescriptionFile (The blocks are variables,
11:  * values, paths and options).
12:  * 
13:  * @author Hendrik Seffer
14:  * 
15:  */
16: public abstract class DescriptionBlock {
17: 
18:         /**
19:          * constructor.
20:          * 
21:          */
22:         protected DescriptionBlock() {
23: 
24:         }
25: 
26:         /**
27:          * set the next State.
28:          * 
29:          * @return the new State
30:          */
31:         protected abstract DescriptionBlock next();
32: 
33:         /**
34:          * Create the new Symbol.
35:          * 
36:          * @param collectedContent
37:          *            collected Content which is used for the Symbol.
38:          * 
39:          * @param position
40:          *            the position of the collected content.
41:          * 
42:          * @return the new Symbol
43:          */
44:         protected abstract AbstractSymbol createSymbol(String collectedContent, Position position);
45: 
46: }