Java Code Examples for jdk.nashorn.internal.runtime.regexp.joni.exception.ErrorMessages#ERR_PARSER_BUG
The following examples show how to use
jdk.nashorn.internal.runtime.regexp.joni.exception.ErrorMessages#ERR_PARSER_BUG .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ScanEnvironment.java From hottub with GNU General Public License v2.0 | 5 votes |
public void setMemNode(final int num, final Node node) { if (numMem >= num) { memNodes[num] = node; } else { throw new InternalException(ErrorMessages.ERR_PARSER_BUG); } }
Example 2
Source File: ConsAltNode.java From jdk8u_nashorn with GNU General Public License v2.0 | 5 votes |
@Override public String getName() { switch (type) { case ALT: return "Alt"; case LIST: return "List"; default: throw new InternalException(ErrorMessages.ERR_PARSER_BUG); } }
Example 3
Source File: ScanEnvironment.java From jdk8u_nashorn with GNU General Public License v2.0 | 5 votes |
public void setMemNode(final int num, final Node node) { if (numMem >= num) { memNodes[num] = node; } else { throw new InternalException(ErrorMessages.ERR_PARSER_BUG); } }
Example 4
Source File: ConsAltNode.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
@Override public String getName() { switch (type) { case ALT: return "Alt"; case LIST: return "List"; default: throw new InternalException(ErrorMessages.ERR_PARSER_BUG); } }
Example 5
Source File: ScanEnvironment.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public void setMemNode(int num, Node node) { if (numMem >= num) { memNodes[num] = node; } else { throw new InternalException(ErrorMessages.ERR_PARSER_BUG); } }
Example 6
Source File: ConsAltNode.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
@Override public String getName() { switch (type) { case ALT: return "Alt"; case LIST: return "List"; default: throw new InternalException(ErrorMessages.ERR_PARSER_BUG); } }
Example 7
Source File: ScanEnvironment.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public void setMemNode(int num, Node node) { if (numMem >= num) { memNodes[num] = node; } else { throw new InternalException(ErrorMessages.ERR_PARSER_BUG); } }
Example 8
Source File: ConsAltNode.java From hottub with GNU General Public License v2.0 | 5 votes |
@Override public String getName() { switch (type) { case ALT: return "Alt"; case LIST: return "List"; default: throw new InternalException(ErrorMessages.ERR_PARSER_BUG); } }
Example 9
Source File: ScanEnvironment.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
public void setMemNode(final int num, final Node node) { if (numMem >= num) { memNodes[num] = node; } else { throw new InternalException(ErrorMessages.ERR_PARSER_BUG); } }
Example 10
Source File: ConsAltNode.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
@Override public String getName() { switch (type) { case ALT: return "Alt"; case LIST: return "List"; default: throw new InternalException(ErrorMessages.ERR_PARSER_BUG); } }
Example 11
Source File: ScanEnvironment.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public void setMemNode(final int num, final Node node) { if (numMem >= num) { memNodes[num] = node; } else { throw new InternalException(ErrorMessages.ERR_PARSER_BUG); } }
Example 12
Source File: ConsAltNode.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
@Override public String getName() { switch (type) { case ALT: return "Alt"; case LIST: return "List"; default: throw new InternalException(ErrorMessages.ERR_PARSER_BUG); } }
Example 13
Source File: ConsAltNode.java From nashorn with GNU General Public License v2.0 | 5 votes |
@Override public String getName() { switch (type) { case ALT: return "Alt"; case LIST: return "List"; default: throw new InternalException(ErrorMessages.ERR_PARSER_BUG); } }
Example 14
Source File: ConsAltNode.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
@Override public String getName() { switch (type) { case ALT: return "Alt"; case LIST: return "List"; default: throw new InternalException(ErrorMessages.ERR_PARSER_BUG); } }
Example 15
Source File: ScanEnvironment.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public void setMemNode(final int num, final Node node) { if (numMem >= num) { memNodes[num] = node; } else { throw new InternalException(ErrorMessages.ERR_PARSER_BUG); } }
Example 16
Source File: ConsAltNode.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
@Override public String getName() { switch (type) { case ALT: return "Alt"; case LIST: return "List"; default: throw new InternalException(ErrorMessages.ERR_PARSER_BUG); } }
Example 17
Source File: ScanEnvironment.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public void setMemNode(final int num, final Node node) { if (numMem >= num) { memNodes[num] = node; } else { throw new InternalException(ErrorMessages.ERR_PARSER_BUG); } }
Example 18
Source File: ConsAltNode.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
@Override public String getName() { switch (type) { case ALT: return "Alt"; case LIST: return "List"; default: throw new InternalException(ErrorMessages.ERR_PARSER_BUG); } }
Example 19
Source File: CClassNode.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
public void addCType(int ctype, boolean not, ScanEnvironment env, IntHolder sbOut) { if (Config.NON_UNICODE_SDW) { switch(ctype) { case CharacterType.D: case CharacterType.S: case CharacterType.W: ctype ^= CharacterType.SPECIAL_MASK; if (env.syntax == Syntax.JAVASCRIPT && ctype == CharacterType.SPACE) { // \s in JavaScript includes unicode characters. break; } if (not) { for (int c = 0; c < BitSet.SINGLE_BYTE_SIZE; c++) { // if (!ASCIIEncoding.INSTANCE.isCodeCType(c, ctype)) bs.set(c); if ((AsciiCtypeTable[c] & (1 << ctype)) == 0) bs.set(c); } addAllMultiByteRange(); } else { for (int c = 0; c < BitSet.SINGLE_BYTE_SIZE; c++) { // if (ASCIIEncoding.INSTANCE.isCodeCType(c, ctype)) bs.set(c); if ((AsciiCtypeTable[c] & (1 << ctype)) != 0) bs.set(c); } } return; } } int[] ranges = EncodingHelper.ctypeCodeRange(ctype, sbOut); if (ranges != null) { addCTypeByRange(ctype, not, sbOut.value, ranges); return; } switch(ctype) { case CharacterType.ALPHA: case CharacterType.BLANK: case CharacterType.CNTRL: case CharacterType.DIGIT: case CharacterType.LOWER: case CharacterType.PUNCT: case CharacterType.SPACE: case CharacterType.UPPER: case CharacterType.XDIGIT: case CharacterType.ASCII: case CharacterType.ALNUM: if (not) { for (int c=0; c<BitSet.SINGLE_BYTE_SIZE; c++) { if (!EncodingHelper.isCodeCType(c, ctype)) bs.set(c); } addAllMultiByteRange(); } else { for (int c=0; c<BitSet.SINGLE_BYTE_SIZE; c++) { if (EncodingHelper.isCodeCType(c, ctype)) bs.set(c); } } break; case CharacterType.GRAPH: case CharacterType.PRINT: if (not) { for (int c=0; c<BitSet.SINGLE_BYTE_SIZE; c++) { if (!EncodingHelper.isCodeCType(c, ctype)) bs.set(c); } } else { for (int c=0; c<BitSet.SINGLE_BYTE_SIZE; c++) { if (EncodingHelper.isCodeCType(c, ctype)) bs.set(c); } addAllMultiByteRange(); } break; case CharacterType.WORD: if (!not) { for (int c=0; c<BitSet.SINGLE_BYTE_SIZE; c++) { if (EncodingHelper.isWord(c)) bs.set(c); } addAllMultiByteRange(); } else { for (int c=0; c<BitSet.SINGLE_BYTE_SIZE; c++) { if (!EncodingHelper.isWord(c)) bs.set(c); } } break; default: throw new InternalException(ErrorMessages.ERR_PARSER_BUG); } // switch }
Example 20
Source File: CClassNode.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
public void addCType(int ctype, boolean not, ScanEnvironment env, IntHolder sbOut) { if (Config.NON_UNICODE_SDW) { switch(ctype) { case CharacterType.D: case CharacterType.S: case CharacterType.W: ctype ^= CharacterType.SPECIAL_MASK; if (env.syntax == Syntax.JAVASCRIPT && ctype == CharacterType.SPACE) { // \s in JavaScript includes unicode characters. break; } if (not) { for (int c = 0; c < BitSet.SINGLE_BYTE_SIZE; c++) { // if (!ASCIIEncoding.INSTANCE.isCodeCType(c, ctype)) bs.set(c); if ((AsciiCtypeTable[c] & (1 << ctype)) == 0) bs.set(c); } addAllMultiByteRange(); } else { for (int c = 0; c < BitSet.SINGLE_BYTE_SIZE; c++) { // if (ASCIIEncoding.INSTANCE.isCodeCType(c, ctype)) bs.set(c); if ((AsciiCtypeTable[c] & (1 << ctype)) != 0) bs.set(c); } } return; } } int[] ranges = EncodingHelper.ctypeCodeRange(ctype, sbOut); if (ranges != null) { addCTypeByRange(ctype, not, sbOut.value, ranges); return; } switch(ctype) { case CharacterType.ALPHA: case CharacterType.BLANK: case CharacterType.CNTRL: case CharacterType.DIGIT: case CharacterType.LOWER: case CharacterType.PUNCT: case CharacterType.SPACE: case CharacterType.UPPER: case CharacterType.XDIGIT: case CharacterType.ASCII: case CharacterType.ALNUM: if (not) { for (int c=0; c<BitSet.SINGLE_BYTE_SIZE; c++) { if (!EncodingHelper.isCodeCType(c, ctype)) bs.set(c); } addAllMultiByteRange(); } else { for (int c=0; c<BitSet.SINGLE_BYTE_SIZE; c++) { if (EncodingHelper.isCodeCType(c, ctype)) bs.set(c); } } break; case CharacterType.GRAPH: case CharacterType.PRINT: if (not) { for (int c=0; c<BitSet.SINGLE_BYTE_SIZE; c++) { if (!EncodingHelper.isCodeCType(c, ctype)) bs.set(c); } } else { for (int c=0; c<BitSet.SINGLE_BYTE_SIZE; c++) { if (EncodingHelper.isCodeCType(c, ctype)) bs.set(c); } addAllMultiByteRange(); } break; case CharacterType.WORD: if (!not) { for (int c=0; c<BitSet.SINGLE_BYTE_SIZE; c++) { if (EncodingHelper.isWord(c)) bs.set(c); } addAllMultiByteRange(); } else { for (int c=0; c<BitSet.SINGLE_BYTE_SIZE; c++) { if (!EncodingHelper.isWord(c)) bs.set(c); } } break; default: throw new InternalException(ErrorMessages.ERR_PARSER_BUG); } // switch }