TokenType.java revision 953:221a84ef44c0
1/* 2 * Permission is hereby granted, free of charge, to any person obtaining a copy of 3 * this software and associated documentation files (the "Software"), to deal in 4 * the Software without restriction, including without limitation the rights to 5 * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 6 * of the Software, and to permit persons to whom the Software is furnished to do 7 * so, subject to the following conditions: 8 * 9 * The above copyright notice and this permission notice shall be included in all 10 * copies or substantial portions of the Software. 11 * 12 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 13 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 14 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 15 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 16 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 17 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 18 * SOFTWARE. 19 */ 20package jdk.nashorn.internal.runtime.regexp.joni.constants; 21 22public enum TokenType { 23 EOT, /* end of token */ 24 RAW_BYTE, 25 CHAR, 26 STRING, 27 CODE_POINT, 28 ANYCHAR, 29 CHAR_TYPE, 30 BACKREF, 31 CALL, 32 ANCHOR, 33 OP_REPEAT, 34 INTERVAL, 35 ANYCHAR_ANYTIME, /* SQL '%' == .* */ 36 ALT, 37 SUBEXP_OPEN, 38 SUBEXP_CLOSE, 39 CC_OPEN, 40 QUOTE_OPEN, 41 CHAR_PROPERTY, /* \p{...}, \P{...} */ 42 /* in cc */ 43 CC_CLOSE, 44 CC_RANGE, 45 POSIX_BRACKET_OPEN, 46 CC_AND, /* && */ 47 CC_CC_OPEN /* [ */ 48} 49