Name | method, % | comment, % | TODO | @see |
net.sourceforge.jdoccoverage.Token | 2 | 11,4% (130/1012) | 0 | 0 |
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*
* Created on 08.03.2006
*/
package net.sourceforge.jdoccoverage;
class Token {
static final int WORD = 1;
static final int EOL = 2;
static final int COMMENT_LINE_START = 3;
static final int COMMENT_BLOCK_START = 4;
static final int COMMENT_BLOCK_END = 5;
static final int PARENTHESIS_L = '('; static final int PARENTHESIS_R = ')'; static final int SEMIKOLON = ';'; static final int EQUALS = '='; static final int ESCAPE_L = '{'; static final int ESCAPE_R = '}';
final int type;
String word;
Token(int type){
this.type = type;
}
Token(char[] content, int start, int end) {
this(WORD);
this.word = new String(content, start, end-start);
}
}