All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.seimicrawler.xpath.antlr.Xpath.interp Maven / Gradle / Ivy

Go to download

一个非常好用而且强大的基于xpath的html解析器。html的DOM树生成依赖Jsoup。Lexer 和 Parser基于Antlr4,支持完备的W3C XPATH 1.0标准语法,W3C规范:http://www.w3.org/TR/1999/REC-xpath-19991116。

The newest version!
token literal names:
null
'processing-instruction'
'or'
'and'
'$'
null
null
null
'/'
'//'
'('
')'
'['
']'
'-'
'+'
'.'
'*'
'`div`'
'`mod`'
'..'
'@'
','
'|'
'<'
'>'
'<='
'>='
'='
'!='
'^='
'$='
'*='
'~='
'!~'
':'
'::'
'\''
'"'
null
null
null

token symbolic names:
null
null
null
null
null
NodeType
Number
AxisName
PATHSEP
ABRPATH
LPAR
RPAR
LBRAC
RBRAC
MINUS
PLUS
DOT
MUL
DIVISION
MODULO
DOTDOT
AT
COMMA
PIPE
LESS
MORE_
LE
GE
EQUALITY
INEQUALITY
START_WITH
END_WITH
CONTAIN_WITH
REGEXP_WITH
REGEXP_NOT_WITH
COLON
CC
APOS
QUOT
Literal
Whitespace
NCName

rule names:
main
locationPath
absoluteLocationPathNoroot
relativeLocationPath
step
axisSpecifier
nodeTest
predicate
abbreviatedStep
expr
primaryExpr
functionCall
unionExprNoRoot
pathExprNoRoot
filterExpr
orExpr
andExpr
equalityExpr
relationalExpr
additiveExpr
multiplicativeExpr
unaryExprNoRoot
qName
functionName
variableReference
nameTest
nCName


atn:
[3, 24715, 42794, 33075, 47597, 16764, 15335, 30598, 22884, 3, 43, 229, 4, 2, 9, 2, 4, 3, 9, 3, 4, 4, 9, 4, 4, 5, 9, 5, 4, 6, 9, 6, 4, 7, 9, 7, 4, 8, 9, 8, 4, 9, 9, 9, 4, 10, 9, 10, 4, 11, 9, 11, 4, 12, 9, 12, 4, 13, 9, 13, 4, 14, 9, 14, 4, 15, 9, 15, 4, 16, 9, 16, 4, 17, 9, 17, 4, 18, 9, 18, 4, 19, 9, 19, 4, 20, 9, 20, 4, 21, 9, 21, 4, 22, 9, 22, 4, 23, 9, 23, 4, 24, 9, 24, 4, 25, 9, 25, 4, 26, 9, 26, 4, 27, 9, 27, 4, 28, 9, 28, 3, 2, 3, 2, 3, 3, 3, 3, 5, 3, 61, 10, 3, 3, 4, 3, 4, 3, 4, 3, 5, 3, 5, 3, 5, 7, 5, 69, 10, 5, 12, 5, 14, 5, 72, 11, 5, 3, 6, 3, 6, 3, 6, 7, 6, 77, 10, 6, 12, 6, 14, 6, 80, 11, 6, 3, 6, 5, 6, 83, 10, 6, 3, 7, 3, 7, 3, 7, 5, 7, 88, 10, 7, 5, 7, 90, 10, 7, 3, 8, 3, 8, 3, 8, 3, 8, 3, 8, 3, 8, 3, 8, 3, 8, 5, 8, 100, 10, 8, 3, 9, 3, 9, 3, 9, 3, 9, 3, 10, 3, 10, 3, 11, 3, 11, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 5, 12, 118, 10, 12, 3, 13, 3, 13, 3, 13, 3, 13, 3, 13, 7, 13, 125, 10, 13, 12, 13, 14, 13, 128, 11, 13, 5, 13, 130, 10, 13, 3, 13, 3, 13, 3, 14, 3, 14, 3, 14, 5, 14, 137, 10, 14, 3, 14, 3, 14, 3, 14, 5, 14, 142, 10, 14, 3, 15, 3, 15, 3, 15, 3, 15, 5, 15, 148, 10, 15, 5, 15, 150, 10, 15, 3, 16, 3, 16, 7, 16, 154, 10, 16, 12, 16, 14, 16, 157, 11, 16, 3, 17, 3, 17, 3, 17, 7, 17, 162, 10, 17, 12, 17, 14, 17, 165, 11, 17, 3, 18, 3, 18, 3, 18, 7, 18, 170, 10, 18, 12, 18, 14, 18, 173, 11, 18, 3, 19, 3, 19, 3, 19, 7, 19, 178, 10, 19, 12, 19, 14, 19, 181, 11, 19, 3, 20, 3, 20, 3, 20, 7, 20, 186, 10, 20, 12, 20, 14, 20, 189, 11, 20, 3, 21, 3, 21, 3, 21, 7, 21, 194, 10, 21, 12, 21, 14, 21, 197, 11, 21, 3, 22, 3, 22, 3, 22, 5, 22, 202, 10, 22, 3, 23, 5, 23, 205, 10, 23, 3, 23, 3, 23, 3, 24, 3, 24, 3, 24, 5, 24, 212, 10, 24, 3, 25, 3, 25, 3, 26, 3, 26, 3, 26, 3, 27, 3, 27, 3, 27, 3, 27, 3, 27, 3, 27, 5, 27, 225, 10, 27, 3, 28, 3, 28, 3, 28, 2, 2, 29, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 2, 9, 3, 2, 10, 11, 4, 2, 18, 18, 22, 22, 3, 2, 30, 31, 5, 2, 26, 27, 29, 29, 32, 36, 3, 2, 16, 17, 3, 2, 19, 21, 4, 2, 9, 9, 43, 43, 2, 230, 2, 56, 3, 2, 2, 2, 4, 60, 3, 2, 2, 2, 6, 62, 3, 2, 2, 2, 8, 65, 3, 2, 2, 2, 10, 82, 3, 2, 2, 2, 12, 89, 3, 2, 2, 2, 14, 99, 3, 2, 2, 2, 16, 101, 3, 2, 2, 2, 18, 105, 3, 2, 2, 2, 20, 107, 3, 2, 2, 2, 22, 117, 3, 2, 2, 2, 24, 119, 3, 2, 2, 2, 26, 141, 3, 2, 2, 2, 28, 149, 3, 2, 2, 2, 30, 151, 3, 2, 2, 2, 32, 158, 3, 2, 2, 2, 34, 166, 3, 2, 2, 2, 36, 174, 3, 2, 2, 2, 38, 182, 3, 2, 2, 2, 40, 190, 3, 2, 2, 2, 42, 198, 3, 2, 2, 2, 44, 204, 3, 2, 2, 2, 46, 208, 3, 2, 2, 2, 48, 213, 3, 2, 2, 2, 50, 215, 3, 2, 2, 2, 52, 224, 3, 2, 2, 2, 54, 226, 3, 2, 2, 2, 56, 57, 5, 20, 11, 2, 57, 3, 3, 2, 2, 2, 58, 61, 5, 8, 5, 2, 59, 61, 5, 6, 4, 2, 60, 58, 3, 2, 2, 2, 60, 59, 3, 2, 2, 2, 61, 5, 3, 2, 2, 2, 62, 63, 9, 2, 2, 2, 63, 64, 5, 8, 5, 2, 64, 7, 3, 2, 2, 2, 65, 70, 5, 10, 6, 2, 66, 67, 9, 2, 2, 2, 67, 69, 5, 10, 6, 2, 68, 66, 3, 2, 2, 2, 69, 72, 3, 2, 2, 2, 70, 68, 3, 2, 2, 2, 70, 71, 3, 2, 2, 2, 71, 9, 3, 2, 2, 2, 72, 70, 3, 2, 2, 2, 73, 74, 5, 12, 7, 2, 74, 78, 5, 14, 8, 2, 75, 77, 5, 16, 9, 2, 76, 75, 3, 2, 2, 2, 77, 80, 3, 2, 2, 2, 78, 76, 3, 2, 2, 2, 78, 79, 3, 2, 2, 2, 79, 83, 3, 2, 2, 2, 80, 78, 3, 2, 2, 2, 81, 83, 5, 18, 10, 2, 82, 73, 3, 2, 2, 2, 82, 81, 3, 2, 2, 2, 83, 11, 3, 2, 2, 2, 84, 85, 7, 9, 2, 2, 85, 90, 7, 38, 2, 2, 86, 88, 7, 23, 2, 2, 87, 86, 3, 2, 2, 2, 87, 88, 3, 2, 2, 2, 88, 90, 3, 2, 2, 2, 89, 84, 3, 2, 2, 2, 89, 87, 3, 2, 2, 2, 90, 13, 3, 2, 2, 2, 91, 100, 5, 52, 27, 2, 92, 93, 7, 7, 2, 2, 93, 94, 7, 12, 2, 2, 94, 100, 7, 13, 2, 2, 95, 96, 7, 3, 2, 2, 96, 97, 7, 12, 2, 2, 97, 98, 7, 41, 2, 2, 98, 100, 7, 13, 2, 2, 99, 91, 3, 2, 2, 2, 99, 92, 3, 2, 2, 2, 99, 95, 3, 2, 2, 2, 100, 15, 3, 2, 2, 2, 101, 102, 7, 14, 2, 2, 102, 103, 5, 20, 11, 2, 103, 104, 7, 15, 2, 2, 104, 17, 3, 2, 2, 2, 105, 106, 9, 3, 2, 2, 106, 19, 3, 2, 2, 2, 107, 108, 5, 32, 17, 2, 108, 21, 3, 2, 2, 2, 109, 118, 5, 50, 26, 2, 110, 111, 7, 12, 2, 2, 111, 112, 5, 20, 11, 2, 112, 113, 7, 13, 2, 2, 113, 118, 3, 2, 2, 2, 114, 118, 7, 41, 2, 2, 115, 118, 7, 8, 2, 2, 116, 118, 5, 24, 13, 2, 117, 109, 3, 2, 2, 2, 117, 110, 3, 2, 2, 2, 117, 114, 3, 2, 2, 2, 117, 115, 3, 2, 2, 2, 117, 116, 3, 2, 2, 2, 118, 23, 3, 2, 2, 2, 119, 120, 5, 48, 25, 2, 120, 129, 7, 12, 2, 2, 121, 126, 5, 20, 11, 2, 122, 123, 7, 24, 2, 2, 123, 125, 5, 20, 11, 2, 124, 122, 3, 2, 2, 2, 125, 128, 3, 2, 2, 2, 126, 124, 3, 2, 2, 2, 126, 127, 3, 2, 2, 2, 127, 130, 3, 2, 2, 2, 128, 126, 3, 2, 2, 2, 129, 121, 3, 2, 2, 2, 129, 130, 3, 2, 2, 2, 130, 131, 3, 2, 2, 2, 131, 132, 7, 13, 2, 2, 132, 25, 3, 2, 2, 2, 133, 136, 5, 28, 15, 2, 134, 135, 7, 25, 2, 2, 135, 137, 5, 26, 14, 2, 136, 134, 3, 2, 2, 2, 136, 137, 3, 2, 2, 2, 137, 142, 3, 2, 2, 2, 138, 139, 7, 10, 2, 2, 139, 140, 7, 25, 2, 2, 140, 142, 5, 26, 14, 2, 141, 133, 3, 2, 2, 2, 141, 138, 3, 2, 2, 2, 142, 27, 3, 2, 2, 2, 143, 150, 5, 4, 3, 2, 144, 147, 5, 30, 16, 2, 145, 146, 9, 2, 2, 2, 146, 148, 5, 8, 5, 2, 147, 145, 3, 2, 2, 2, 147, 148, 3, 2, 2, 2, 148, 150, 3, 2, 2, 2, 149, 143, 3, 2, 2, 2, 149, 144, 3, 2, 2, 2, 150, 29, 3, 2, 2, 2, 151, 155, 5, 22, 12, 2, 152, 154, 5, 16, 9, 2, 153, 152, 3, 2, 2, 2, 154, 157, 3, 2, 2, 2, 155, 153, 3, 2, 2, 2, 155, 156, 3, 2, 2, 2, 156, 31, 3, 2, 2, 2, 157, 155, 3, 2, 2, 2, 158, 163, 5, 34, 18, 2, 159, 160, 7, 4, 2, 2, 160, 162, 5, 34, 18, 2, 161, 159, 3, 2, 2, 2, 162, 165, 3, 2, 2, 2, 163, 161, 3, 2, 2, 2, 163, 164, 3, 2, 2, 2, 164, 33, 3, 2, 2, 2, 165, 163, 3, 2, 2, 2, 166, 171, 5, 36, 19, 2, 167, 168, 7, 5, 2, 2, 168, 170, 5, 36, 19, 2, 169, 167, 3, 2, 2, 2, 170, 173, 3, 2, 2, 2, 171, 169, 3, 2, 2, 2, 171, 172, 3, 2, 2, 2, 172, 35, 3, 2, 2, 2, 173, 171, 3, 2, 2, 2, 174, 179, 5, 38, 20, 2, 175, 176, 9, 4, 2, 2, 176, 178, 5, 38, 20, 2, 177, 175, 3, 2, 2, 2, 178, 181, 3, 2, 2, 2, 179, 177, 3, 2, 2, 2, 179, 180, 3, 2, 2, 2, 180, 37, 3, 2, 2, 2, 181, 179, 3, 2, 2, 2, 182, 187, 5, 40, 21, 2, 183, 184, 9, 5, 2, 2, 184, 186, 5, 40, 21, 2, 185, 183, 3, 2, 2, 2, 186, 189, 3, 2, 2, 2, 187, 185, 3, 2, 2, 2, 187, 188, 3, 2, 2, 2, 188, 39, 3, 2, 2, 2, 189, 187, 3, 2, 2, 2, 190, 195, 5, 42, 22, 2, 191, 192, 9, 6, 2, 2, 192, 194, 5, 42, 22, 2, 193, 191, 3, 2, 2, 2, 194, 197, 3, 2, 2, 2, 195, 193, 3, 2, 2, 2, 195, 196, 3, 2, 2, 2, 196, 41, 3, 2, 2, 2, 197, 195, 3, 2, 2, 2, 198, 201, 5, 44, 23, 2, 199, 200, 9, 7, 2, 2, 200, 202, 5, 42, 22, 2, 201, 199, 3, 2, 2, 2, 201, 202, 3, 2, 2, 2, 202, 43, 3, 2, 2, 2, 203, 205, 7, 16, 2, 2, 204, 203, 3, 2, 2, 2, 204, 205, 3, 2, 2, 2, 205, 206, 3, 2, 2, 2, 206, 207, 5, 26, 14, 2, 207, 45, 3, 2, 2, 2, 208, 211, 5, 54, 28, 2, 209, 210, 7, 37, 2, 2, 210, 212, 5, 54, 28, 2, 211, 209, 3, 2, 2, 2, 211, 212, 3, 2, 2, 2, 212, 47, 3, 2, 2, 2, 213, 214, 5, 46, 24, 2, 214, 49, 3, 2, 2, 2, 215, 216, 7, 6, 2, 2, 216, 217, 5, 46, 24, 2, 217, 51, 3, 2, 2, 2, 218, 225, 7, 19, 2, 2, 219, 220, 5, 54, 28, 2, 220, 221, 7, 37, 2, 2, 221, 222, 7, 19, 2, 2, 222, 225, 3, 2, 2, 2, 223, 225, 5, 46, 24, 2, 224, 218, 3, 2, 2, 2, 224, 219, 3, 2, 2, 2, 224, 223, 3, 2, 2, 2, 225, 53, 3, 2, 2, 2, 226, 227, 9, 8, 2, 2, 227, 55, 3, 2, 2, 2, 26, 60, 70, 78, 82, 87, 89, 99, 117, 126, 129, 136, 141, 147, 149, 155, 163, 171, 179, 187, 195, 201, 204, 211, 224]




© 2015 - 2024 Weber Informatics LLC | Privacy Policy