📄 javaparserlexer.java
字号:
// $ANTLR 3.0ea8 /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/semantics/java/parser/java.g 2006-04-10 01:50:30
/*
* Copyright 2005 JBoss Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.drools.semantics.java.parser;
import org.antlr.runtime.CharStream;
import org.antlr.runtime.CommonToken;
import org.antlr.runtime.DFA;
import org.antlr.runtime.EarlyExitException;
import org.antlr.runtime.IntStream;
import org.antlr.runtime.Lexer;
import org.antlr.runtime.MismatchedSetException;
import org.antlr.runtime.NoViableAltException;
import org.antlr.runtime.RecognitionException;
import org.antlr.runtime.Token;
public class JavaParserLexer extends Lexer {
public static final int SR_ASSIGN = 22;
public static final int COMMA = 12;
public static final int MINUS = 44;
public static final int T70 = 70;
public static final int T74 = 74;
public static final int T85 = 85;
public static final int BOR = 31;
public static final int DOT = 7;
public static final int SR = 41;
public static final int T102 = 102;
public static final int LCURLY = 9;
public static final int T114 = 114;
public static final int T103 = 103;
public static final int STRING_LITERAL = 53;
public static final int LE = 38;
public static final int T81 = 81;
public static final int RPAREN = 14;
public static final int STAR_ASSIGN = 19;
public static final int NUM_INT = 51;
public static final int PLUS = 43;
public static final int MINUS_ASSIGN = 18;
public static final int T113 = 113;
public static final int T109 = 109;
public static final int IDENT = 6;
public static final int DECIMAL_LITERAL = 58;
public static final int T68 = 68;
public static final int T73 = 73;
public static final int T84 = 84;
public static final int MOD_ASSIGN = 21;
public static final int T78 = 78;
public static final int T115 = 115;
public static final int WS = 55;
public static final int LT = 36;
public static final int BSR = 42;
public static final int SL_ASSIGN = 24;
public static final int T96 = 96;
public static final int T71 = 71;
public static final int T72 = 72;
public static final int T94 = 94;
public static final int LAND = 30;
public static final int LBRACK = 4;
public static final int T76 = 76;
public static final int NUM_FLOAT = 54;
public static final int SEMI = 10;
public static final int GE = 39;
public static final int LNOT = 50;
public static final int DIV_ASSIGN = 20;
public static final int T75 = 75;
public static final int UNICODE_CHAR = 66;
public static final int EQUAL = 35;
public static final int T89 = 89;
public static final int OCTAL_DIGIT = 65;
public static final int COLON = 16;
public static final int SL = 40;
public static final int T82 = 82;
public static final int DIV = 45;
public static final int T100 = 100;
public static final int EXPONENT_PART = 62;
public static final int T79 = 79;
public static final int LOR = 29;
public static final int BNOT = 49;
public static final int INC = 47;
public static final int T93 = 93;
public static final int T107 = 107;
public static final int MOD = 46;
public static final int OCTAL_LITERAL = 60;
public static final int PLUS_ASSIGN = 17;
public static final int T83 = 83;
public static final int QUESTION = 28;
public static final int HEX_LITERAL = 59;
public static final int T101 = 101;
public static final int FLOAT_TYPE_SUFFIX = 63;
public static final int RCURLY = 11;
public static final int T91 = 91;
public static final int T105 = 105;
public static final int T86 = 86;
public static final int CHAR_LITERAL = 52;
public static final int BOR_ASSIGN = 27;
public static final int ASSIGN = 15;
public static final int LPAREN = 13;
public static final int T111 = 111;
public static final int HEX_DIGIT = 67;
public static final int T77 = 77;
public static final int ML_COMMENT = 57;
public static final int SL_COMMENT = 56;
public static final int BAND = 33;
public static final int T106 = 106;
public static final int T112 = 112;
public static final int T69 = 69;
public static final int NOT_EQUAL = 34;
public static final int BAND_ASSIGN = 25;
public static final int T95 = 95;
public static final int DIGITS = 61;
public static final int T110 = 110;
public static final int T108 = 108;
public static final int T92 = 92;
public static final int BXOR_ASSIGN = 26;
public static final int GT = 37;
public static final int BSR_ASSIGN = 23;
public static final int T88 = 88;
public static final int T98 = 98;
public static final int T87 = 87;
public static final int T80 = 80;
public static final int DEC = 48;
public static final int T97 = 97;
public static final int ESCAPE_SEQUENCE = 64;
public static final int EOF = -1;
public static final int T104 = 104;
public static final int Tokens = 116;
public static final int RBRACK = 5;
public static final int T99 = 99;
public static final int STAR = 8;
public static final int BXOR = 32;
public static final int T90 = 90;
public static final CommonToken IGNORE_TOKEN = new CommonToken( null,
0,
99,
0,
0 );
public JavaParserLexer() {
;
}
public JavaParserLexer(final CharStream input) {
super( input );
}
// $ANTLR start T68
public void mT68() throws RecognitionException {
try {
final int type = JavaParserLexer.T68;
final int start = getCharIndex();
final int line = getLine();
final int charPosition = getCharPositionInLine();
final int channel = Token.DEFAULT_CHANNEL;
// /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/semantics/java/parser/java.g:9:7: ( 'void' )
// /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/semantics/java/parser/java.g:9:7: 'void'
{
match( "void" );
}
if ( this.token == null ) {
emit( type,
line,
charPosition,
channel,
start,
getCharIndex() - 1 );
}
} finally {
}
}
// $ANTLR end T68
// $ANTLR start T69
public void mT69() throws RecognitionException {
try {
final int type = JavaParserLexer.T69;
final int start = getCharIndex();
final int line = getLine();
final int charPosition = getCharPositionInLine();
final int channel = Token.DEFAULT_CHANNEL;
// /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/semantics/java/parser/java.g:10:7: ( 'boolean' )
// /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/semantics/java/parser/java.g:10:7: 'boolean'
{
match( "boolean" );
}
if ( this.token == null ) {
emit( type,
line,
charPosition,
channel,
start,
getCharIndex() - 1 );
}
} finally {
}
}
// $ANTLR end T69
// $ANTLR start T70
public void mT70() throws RecognitionException {
try {
final int type = JavaParserLexer.T70;
final int start = getCharIndex();
final int line = getLine();
final int charPosition = getCharPositionInLine();
final int channel = Token.DEFAULT_CHANNEL;
// /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/semantics/java/parser/java.g:11:7: ( 'byte' )
// /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/semantics/java/parser/java.g:11:7: 'byte'
{
match( "byte" );
}
if ( this.token == null ) {
emit( type,
line,
charPosition,
channel,
start,
getCharIndex() - 1 );
}
} finally {
}
}
// $ANTLR end T70
// $ANTLR start T71
public void mT71() throws RecognitionException {
try {
final int type = JavaParserLexer.T71;
final int start = getCharIndex();
final int line = getLine();
final int charPosition = getCharPositionInLine();
final int channel = Token.DEFAULT_CHANNEL;
// /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/semantics/java/parser/java.g:12:7: ( 'char' )
// /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/semantics/java/parser/java.g:12:7: 'char'
{
match( "char" );
}
if ( this.token == null ) {
emit( type,
line,
charPosition,
channel,
start,
getCharIndex() - 1 );
}
} finally {
}
}
// $ANTLR end T71
// $ANTLR start T72
public void mT72() throws RecognitionException {
try {
final int type = JavaParserLexer.T72;
final int start = getCharIndex();
final int line = getLine();
final int charPosition = getCharPositionInLine();
final int channel = Token.DEFAULT_CHANNEL;
// /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/semantics/java/parser/java.g:13:7: ( 'short' )
// /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/semantics/java/parser/java.g:13:7: 'short'
{
match( "short" );
}
if ( this.token == null ) {
emit( type,
line,
charPosition,
channel,
start,
getCharIndex() - 1 );
}
} finally {
}
}
// $ANTLR end T72
// $ANTLR start T73
public void mT73() throws RecognitionException {
try {
final int type = JavaParserLexer.T73;
final int start = getCharIndex();
final int line = getLine();
final int charPosition = getCharPositionInLine();
final int channel = Token.DEFAULT_CHANNEL;
// /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/semantics/java/parser/java.g:14:7: ( 'int' )
// /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/semantics/java/parser/java.g:14:7: 'int'
{
match( "int" );
}
if ( this.token == null ) {
emit( type,
line,
charPosition,
channel,
start,
getCharIndex() - 1 );
}
} finally {
}
}
// $ANTLR end T73
// $ANTLR start T74
public void mT74() throws RecognitionException {
try {
final int type = JavaParserLexer.T74;
final int start = getCharIndex();
final int line = getLine();
final int charPosition = getCharPositionInLine();
final int channel = Token.DEFAULT_CHANNEL;
// /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/semantics/java/parser/java.g:15:7: ( 'float' )
// /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/semantics/java/parser/java.g:15:7: 'float'
{
match( "float" );
}
if ( this.token == null ) {
emit( type,
line,
charPosition,
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -