📄 javatoken.java
字号:
/* * This file is part of a syntax highlighting package * Copyright (C) 1999, 2000 Stephen Ostermiller * http://ostermiller.org/contact.pl?regarding=Syntax+Highlighting * * 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. * * See COPYING.TXT for details. */package com.Ostermiller.Syntax.Lexer;/** * A JavaToken is a token that is returned by a lexer that is lexing a java * source file. It has several attributes describing the token: * The type of token, the text of the token, the line number on which it * occurred, the number of characters into the input at which it started, and * similarly, the number of characters into the input at which it ended. <br> * The tokens should comply with the * <A Href=http://java.sun.com/docs/books/jls/html/>Java * Language Specification</A>. */ public class JavaToken extends Token { /** * <A Href=http://java.sun.com/docs/books/jls/html/>The Java * Language Specification</A> explains this token */ public final static int RESERVED_WORD_ABSTRACT = 0x101; /** * <A Href=http://java.sun.com/docs/books/jls/html/>The Java * Language Specification</A> explains this token */ public final static int RESERVED_WORD_BOOLEAN = 0x102; /** * <A Href=http://java.sun.com/docs/books/jls/html/>The Java * Language Specification</A> explains this token */ public final static int RESERVED_WORD_BREAK = 0x103; /** * <A Href=http://java.sun.com/docs/books/jls/html/>The Java * Language Specification</A> explains this token */ public final static int RESERVED_WORD_BYTE = 0x104; /** * <A Href=http://java.sun.com/docs/books/jls/html/>The Java * Language Specification</A> explains this token */ public final static int RESERVED_WORD_CASE = 0x105; /** * <A Href=http://java.sun.com/docs/books/jls/html/>The Java * Language Specification</A> explains this token */ public final static int RESERVED_WORD_CATCH = 0x106; /** * <A Href=http://java.sun.com/docs/books/jls/html/>The Java * Language Specification</A> explains this token */ public final static int RESERVED_WORD_CHAR = 0x107; /** * <A Href=http://java.sun.com/docs/books/jls/html/>The Java * Language Specification</A> explains this token */ public final static int RESERVED_WORD_CLASS = 0x108; /** * <A Href=http://java.sun.com/docs/books/jls/html/>The Java * Language Specification</A> explains this token */ public final static int RESERVED_WORD_CONST = 0x109; /** * <A Href=http://java.sun.com/docs/books/jls/html/>The Java * Language Specification</A> explains this token */ public final static int RESERVED_WORD_CONTINUE = 0x10A; /** * <A Href=http://java.sun.com/docs/books/jls/html/>The Java * Language Specification</A> explains this token */ public final static int RESERVED_WORD_DEFAULT = 0x10B; /** * <A Href=http://java.sun.com/docs/books/jls/html/>The Java * Language Specification</A> explains this token */ public final static int RESERVED_WORD_DO = 0x10C; /** * <A Href=http://java.sun.com/docs/books/jls/html/>The Java * Language Specification</A> explains this token */ public final static int RESERVED_WORD_DOUBLE = 0x10D; /** * <A Href=http://java.sun.com/docs/books/jls/html/>The Java * Language Specification</A> explains this token */ public final static int RESERVED_WORD_ELSE = 0x10E; /** * <A Href=http://java.sun.com/docs/books/jls/html/>The Java * Language Specification</A> explains this token */ public final static int RESERVED_WORD_EXTENDS = 0x10F; /** * <A Href=http://java.sun.com/docs/books/jls/html/>The Java * Language Specification</A> explains this token */ public final static int RESERVED_WORD_FINAL = 0x110; /** * <A Href=http://java.sun.com/docs/books/jls/html/>The Java * Language Specification</A> explains this token */ public final static int RESERVED_WORD_FINALLY = 0x111; /** * <A Href=http://java.sun.com/docs/books/jls/html/>The Java * Language Specification</A> explains this token */ public final static int RESERVED_WORD_FLOAT = 0x112; /** * <A Href=http://java.sun.com/docs/books/jls/html/>The Java * Language Specification</A> explains this token */ public final static int RESERVED_WORD_FOR = 0x113; /** * <A Href=http://java.sun.com/docs/books/jls/html/>The Java * Language Specification</A> explains this token */ public final static int RESERVED_WORD_GOTO = 0x114; /** * <A Href=http://java.sun.com/docs/books/jls/html/>The Java * Language Specification</A> explains this token */ public final static int RESERVED_WORD_IF = 0x115; /** * <A Href=http://java.sun.com/docs/books/jls/html/>The Java * Language Specification</A> explains this token */ public final static int RESERVED_WORD_IMPLEMENTS = 0x116; /** * <A Href=http://java.sun.com/docs/books/jls/html/>The Java * Language Specification</A> explains this token */ public final static int RESERVED_WORD_IMPORT = 0x117; /** * <A Href=http://java.sun.com/docs/books/jls/html/>The Java * Language Specification</A> explains this token */ public final static int RESERVED_WORD_INSTANCEOF = 0x118; /** * <A Href=http://java.sun.com/docs/books/jls/html/>The Java * Language Specification</A> explains this token */ public final static int RESERVED_WORD_INT = 0x119; /** * <A Href=http://java.sun.com/docs/books/jls/html/>The Java * Language Specification</A> explains this token */ public final static int RESERVED_WORD_INTERFACE = 0x11A; /** * <A Href=http://java.sun.com/docs/books/jls/html/>The Java * Language Specification</A> explains this token */ public final static int RESERVED_WORD_LONG = 0x11B; /** * <A Href=http://java.sun.com/docs/books/jls/html/>The Java * Language Specification</A> explains this token */ public final static int RESERVED_WORD_NATIVE = 0x11C; /** * <A Href=http://java.sun.com/docs/books/jls/html/>The Java * Language Specification</A> explains this token */ public final static int RESERVED_WORD_NEW = 0x11D; /** * <A Href=http://java.sun.com/docs/books/jls/html/>The Java * Language Specification</A> explains this token */ public final static int RESERVED_WORD_PACKAGE = 0x11E; /** * <A Href=http://java.sun.com/docs/books/jls/html/>The Java * Language Specification</A> explains this token */ public final static int RESERVED_WORD_PRIVATE = 0x11F; /** * <A Href=http://java.sun.com/docs/books/jls/html/>The Java * Language Specification</A> explains this token */ public final static int RESERVED_WORD_PROTECTED = 0x120; /** * <A Href=http://java.sun.com/docs/books/jls/html/>The Java * Language Specification</A> explains this token */ public final static int RESERVED_WORD_PUBLIC = 0x121; /** * <A Href=http://java.sun.com/docs/books/jls/html/>The Java * Language Specification</A> explains this token */ public final static int RESERVED_WORD_RETURN = 0x122; /** * <A Href=http://java.sun.com/docs/books/jls/html/>The Java * Language Specification</A> explains this token */ public final static int RESERVED_WORD_SHORT = 0x123; /** * <A Href=http://java.sun.com/docs/books/jls/html/>The Java * Language Specification</A> explains this token */ public final static int RESERVED_WORD_STATIC = 0x124; /** * <A Href=http://java.sun.com/docs/books/jls/html/>The Java * Language Specification</A> explains this token */ public final static int RESERVED_WORD_STRICTFP = 0x130; /** * <A Href=http://java.sun.com/docs/books/jls/html/>The Java * Language Specification</A> explains this token */ public final static int RESERVED_WORD_SUPER = 0x125; /** * <A Href=http://java.sun.com/docs/books/jls/html/>The Java * Language Specification</A> explains this token */ public final static int RESERVED_WORD_SWITCH = 0x126; /** * <A Href=http://java.sun.com/docs/books/jls/html/>The Java * Language Specification</A> explains this token */ public final static int RESERVED_WORD_SYNCHRONIZED = 0x127; /** * <A Href=http://java.sun.com/docs/books/jls/html/>The Java * Language Specification</A> explains this token */ public final static int RESERVED_WORD_THIS = 0x128; /** * <A Href=http://java.sun.com/docs/books/jls/html/>The Java * Language Specification</A> explains this token */ public final static int RESERVED_WORD_THROW = 0x129; /** * <A Href=http://java.sun.com/docs/books/jls/html/>The Java * Language Specification</A> explains this token */ public final static int RESERVED_WORD_THROWS = 0x12A; /** * <A Href=http://java.sun.com/docs/books/jls/html/>The Java * Language Specification</A> explains this token */ public final static int RESERVED_WORD_TRANSIENT = 0x12B; /** * <A Href=http://java.sun.com/docs/books/jls/html/>The Java * Language Specification</A> explains this token */ public final static int RESERVED_WORD_TRY = 0x12C; /** * <A Href=http://java.sun.com/docs/books/jls/html/>The Java * Language Specification</A> explains this token */ public final static int RESERVED_WORD_VOID = 0x12D; /** * <A Href=http://java.sun.com/docs/books/jls/html/>The Java * Language Specification</A> explains this token */ public final static int RESERVED_WORD_VOLATILE = 0x12E; /** * <A Href=http://java.sun.com/docs/books/jls/html/>The Java * Language Specification</A> explains this token */ public final static int RESERVED_WORD_WHILE = 0x12F; /** * <A Href=http://java.sun.com/docs/books/jls/html/>The Java * Language Specification</A> explains this token */ public final static int IDENTIFIER = 0x200; /** * <A Href=http://java.sun.com/docs/books/jls/html/>The Java * Language Specification</A> explains this token */ public final static int LITERAL_BOOLEAN = 0x300; /** * <A Href=http://java.sun.com/docs/books/jls/html/>The Java * Language Specification</A> explains this token */ public final static int LITERAL_INTEGER_DECIMAL = 0x310; /** * <A Href=http://java.sun.com/docs/books/jls/html/>The Java * Language Specification</A> explains this token */ public final static int LITERAL_INTEGER_OCTAL = 0x311; /** * <A Href=http://java.sun.com/docs/books/jls/html/>The Java * Language Specification</A> explains this token */ public final static int LITERAL_INTEGER_HEXIDECIMAL = 0x312; /** * <A Href=http://java.sun.com/docs/books/jls/html/>The Java * Language Specification</A> explains this token */ public final static int LITERAL_LONG_DECIMAL = 0x320; /** * <A Href=http://java.sun.com/docs/books/jls/html/>The Java * Language Specification</A> explains this token */ public final static int LITERAL_LONG_OCTAL = 0x321; /** * <A Href=http://java.sun.com/docs/books/jls/html/>The Java * Language Specification</A> explains this token */ public final static int LITERAL_LONG_HEXIDECIMAL = 0x322; /** * <A Href=http://java.sun.com/docs/books/jls/html/>The Java * Language Specification</A> explains this token */ public final static int LITERAL_FLOATING_POINT = 0x330; /** * <A Href=http://java.sun.com/docs/books/jls/html/>The Java
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -