View Javadoc
1   package org.csveed.token;
2   
3   public enum EncounteredSymbol {
4       SPACE_SYMBOL,
5       SEPARATOR_SYMBOL,
6       QUOTE_SYMBOL(true),
7       ESCAPE_SYMBOL(true),
8       EOL_SYMBOL,
9       EOL_SYMBOL_TRASH(false, true),
10      OTHER_SYMBOL,
11      END_OF_FILE_SYMBOL,
12      COMMENT_SYMBOL;
13  
14      private boolean checkForSimilarEscapeAndQuote = false;
15  
16      private boolean trash = false;
17  
18      private EncounteredSymbol() {
19          this(false, false);
20      }
21  
22      private EncounteredSymbol(boolean checkForSimilarEscapeAndQuote) {
23          this(checkForSimilarEscapeAndQuote, false);
24      }
25  
26      private EncounteredSymbol(boolean checkForSimilarEscapeAndQuote, boolean trash) {
27          this.checkForSimilarEscapeAndQuote = checkForSimilarEscapeAndQuote;
28          this.trash = trash;
29      }
30  
31      public boolean isCheckForSimilarEscapeAndQuote() {
32          return this.checkForSimilarEscapeAndQuote;
33      }
34  
35      public boolean isTrash() {
36          return this.trash;
37      }
38  
39  }