Created
January 27, 2015 14:29
-
-
Save kineticz/8e6982d73825707d6e28 to your computer and use it in GitHub Desktop.
Is it ok for a field and a method to have the same name?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.company; | |
| import java.io.IOException; | |
| import java.util.Map; | |
| /** | |
| * Created by IDEA on 27/01/15. | |
| */ | |
| public abstract class AbstractTokenizer implements Tokenizer { | |
| boolean skipSpaces; | |
| boolean tokenizeSpaces; | |
| boolean tokenizeNumbers; | |
| boolean tokenizeWords; | |
| boolean testquotes; | |
| Tokenizer.WordRecognizer wordRecognizer; | |
| Map keywordMap; | |
| String openquotes, closequotes; | |
| boolean trackPosition; | |
| int maximumTokenLength = 16 * 1024; | |
| // init token type to beginning of file | |
| int tokenType = BOF; | |
| int tokenLine = 0; | |
| int tokenColumn = 0; | |
| int tokenKeyword = -1; | |
| int line = 0, column = 0; | |
| boolean eof; | |
| protected int tokenStart = 0; | |
| protected int tokenEnd = 0; | |
| protected int p = 0; | |
| protected int numChars = 0; | |
| protected char[] text = null; | |
| protected abstract void createBuffer(int bufferSize); | |
| protected abstract boolean fillBuffer() throws IOException; | |
| public Tokenizer skipSpaces(boolean skip) { | |
| ... | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment