本文整理了Java中com.ximpleware.extended.xpath.Yylex.yytext()
方法的一些代码示例,展示了Yylex.yytext()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Yylex.yytext()
方法的具体详情如下:
包路径:com.ximpleware.extended.xpath.Yylex
类名称:Yylex
方法名:yytext
[英]Returns the text matched by the current regular expression.
[中]返回与当前正则表达式匹配的文本。
代码示例来源:origin: com.ximpleware/vtd-xml
case 28:
{ isName = 0;
len = yytext().length();
name = new NameType();
if (!XMLChar.isNCNameStartChar(yytext().charAt(0)))
throw new XPathParseExceptionHuge("Invalid char in name token: "+yytext()+ "@position 0");
if (!XMLChar.isNCNameChar(yytext().charAt(i)))
throw new XPathParseExceptionHuge("Invalid char in name token: "+yytext()+ "@position "+i);
name.prefix = yytext().substring(0,len-2);
name.localname = "*";
case 3:
{ isName = 0;
number = new Double(yytext());
case 27:
{ isName = 0;
len = yytext().length();
literal = yytext().substring(1, len-1);
return sym(LITERAL,literal);
name.qname = new String(yytext());
if (!XMLChar.isNCNameStartChar(name.qname.charAt(0)))
throw new XPathParseExceptionHuge("Invalid char in name token: "+yytext()+ "@position 0");
throw new XPathParseExceptionHuge("Invalid char in name token: "+yytext()+ "@position "+i);
if (name.qname.charAt(i)==':'){
代码示例来源:origin: org.agmip.thirdparty/ximpleware-vtd-xml
case 28:
{ isName = 0;
len = yytext().length();
name = new NameType();
if (!XMLChar.isNCNameStartChar(yytext().charAt(0)))
throw new XPathParseExceptionHuge("Invalid char in name token: "+yytext()+ "@position 0");
if (!XMLChar.isNCNameChar(yytext().charAt(i)))
throw new XPathParseExceptionHuge("Invalid char in name token: "+yytext()+ "@position "+i);
name.prefix = yytext().substring(0,len-2);
name.localname = "*";
case 3:
{ isName = 0;
number = new Double(yytext());
case 27:
{ isName = 0;
len = yytext().length();
literal = yytext().substring(1, len-1);
return sym(LITERAL,literal);
name.qname = new String(yytext());
if (!XMLChar.isNCNameStartChar(name.qname.charAt(0)))
throw new XPathParseExceptionHuge("Invalid char in name token: "+yytext()+ "@position 0");
throw new XPathParseExceptionHuge("Invalid char in name token: "+yytext()+ "@position "+i);
if (name.qname.charAt(i)==':'){
代码示例来源:origin: dryade/vtd-xml
case 28:
{ isName = 0;
len = yytext().length();
name = new NameType();
if (!XMLChar.isNCNameStartChar(yytext().charAt(0)))
throw new XPathParseExceptionHuge("Invalid char in name token: "+yytext()+ "@position 0");
if (!XMLChar.isNCNameChar(yytext().charAt(i)))
throw new XPathParseExceptionHuge("Invalid char in name token: "+yytext()+ "@position "+i);
name.prefix = yytext().substring(0,len-2);
name.localname = "*";
case 3:
{ isName = 0;
number = new Double(yytext());
case 27:
{ isName = 0;
len = yytext().length();
literal = yytext().substring(1, len-1);
return sym(LITERAL,literal);
name.qname = new String(yytext());
if (!XMLChar.isNCNameStartChar(name.qname.charAt(0)))
throw new XPathParseExceptionHuge("Invalid char in name token: "+yytext()+ "@position 0");
throw new XPathParseExceptionHuge("Invalid char in name token: "+yytext()+ "@position "+i);
if (name.qname.charAt(i)==':'){
内容来源于网络,如有侵权,请联系作者删除!