本文整理了Java中com.ximpleware.extended.xpath.Yylex
类的一些代码示例,展示了Yylex
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Yylex
类的具体详情如下:
包路径:com.ximpleware.extended.xpath.Yylex
类名称:Yylex
[英]This class is a scanner generated by JFlex 1.4.1 on 9/21/09 2:31 PM from the specification file C:/Documents and Settings/HP_Administrator/workspace/ximple-dev/com/ximpleware/extended/xpath/scanner.flex
[中]这个类是由JFlex1.4.1在2009年9月21日下午2:31从规范文件C:/Documents and Settings/HP_Administrator/workspace/ximple dev/com/ximpleware/extended/xpath/scanner生成的扫描程序。弯曲
代码示例来源:origin: com.ximpleware/vtd-xml
public parser (java.io.Reader input) {
super(new Yylex(input));
nsHash = null;
}
代码示例来源:origin: com.ximpleware/vtd-xml
/**
* Contains user EOF-code, which will be executed exactly once,
* when the end of file is reached
*/
private void zzDoEOF() throws java.io.IOException {
if (!zzEOFDone) {
zzEOFDone = true;
yyclose();
}
}
代码示例来源:origin: com.ximpleware/vtd-xml
/**
* Pushes the specified amount of characters back into the input stream.
*
* They will be read again by then next call of the scanning method
*
* @param number the number of characters to be read again.
* This number must not be greater than yylength()!
*/
public void yypushback(int number) {
if ( number > yylength() )
zzScanError(ZZ_PUSHBACK_2BIG);
zzMarkedPos -= number;
}
代码示例来源:origin: org.agmip.thirdparty/ximpleware-vtd-xml
boolean eof = zzRefill();
case 57:
{ isName = 1;
yypushback(1);
return sym(FNAME,fname);
yypushback(1);
return sym(FNAME,fname);
yypushback(1);
return sym(FNAME,fname);
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 = "*";
return sym(NAME,name);
代码示例来源:origin: org.agmip.thirdparty/ximpleware-vtd-xml
public void unrecovered_syntax_error(Symbol cur_token) throws XPathParseExceptionHuge{
Yylex scanner = (Yylex)getScanner();
throw new XPathParseExceptionHuge("XPath Syntax error: "+cur_token, scanner.getOffset());
}
代码示例来源:origin: com.ximpleware/vtd-xml
boolean eof = zzRefill();
case 57:
{ isName = 1;
yypushback(1);
return sym(FNAME,fname);
yypushback(1);
return sym(FNAME,fname);
yypushback(1);
return sym(FNAME,fname);
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 = "*";
return sym(NAME,name);
代码示例来源:origin: dryade/vtd-xml
public void unrecovered_syntax_error(Symbol cur_token) throws XPathParseExceptionHuge{
Yylex scanner = (Yylex)getScanner();
throw new XPathParseExceptionHuge("XPath Syntax error: "+cur_token, scanner.getOffset());
}
代码示例来源:origin: dryade/vtd-xml
boolean eof = zzRefill();
case 57:
{ isName = 1;
yypushback(1);
return sym(FNAME,fname);
yypushback(1);
return sym(FNAME,fname);
yypushback(1);
return sym(FNAME,fname);
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 = "*";
return sym(NAME,name);
代码示例来源:origin: org.agmip.thirdparty/ximpleware-vtd-xml
/**
* Pushes the specified amount of characters back into the input stream.
*
* They will be read again by then next call of the scanning method
*
* @param number the number of characters to be read again.
* This number must not be greater than yylength()!
*/
public void yypushback(int number) {
if ( number > yylength() )
zzScanError(ZZ_PUSHBACK_2BIG);
zzMarkedPos -= number;
}
代码示例来源:origin: com.ximpleware/vtd-xml
public void unrecovered_syntax_error(Symbol cur_token) throws XPathParseExceptionHuge{
Yylex scanner = (Yylex)getScanner();
throw new XPathParseExceptionHuge("XPath Syntax error: "+cur_token, scanner.getOffset());
}
代码示例来源:origin: dryade/vtd-xml
public parser (java.io.InputStream input) {
super(new Yylex(input));
}
代码示例来源:origin: org.agmip.thirdparty/ximpleware-vtd-xml
/**
* Contains user EOF-code, which will be executed exactly once,
* when the end of file is reached
*/
private void zzDoEOF() throws java.io.IOException {
if (!zzEOFDone) {
zzEOFDone = true;
yyclose();
}
}
代码示例来源:origin: dryade/vtd-xml
/**
* Pushes the specified amount of characters back into the input stream.
*
* They will be read again by then next call of the scanning method
*
* @param number the number of characters to be read again.
* This number must not be greater than yylength()!
*/
public void yypushback(int number) {
if ( number > yylength() )
zzScanError(ZZ_PUSHBACK_2BIG);
zzMarkedPos -= number;
}
代码示例来源:origin: dryade/vtd-xml
throw new XPathParseExceptionHuge(as.getAxisString()+" axis can't operate on"+
" node(), comment(), pi(), or text()",
scanner.getOffset());
代码示例来源:origin: org.agmip.thirdparty/ximpleware-vtd-xml
public parser (java.io.Reader input) {
super(new Yylex(input));
nsHash = null;
}
代码示例来源:origin: dryade/vtd-xml
/**
* Contains user EOF-code, which will be executed exactly once,
* when the end of file is reached
*/
private void zzDoEOF() throws java.io.IOException {
if (!zzEOFDone) {
zzEOFDone = true;
yyclose();
}
}
代码示例来源:origin: com.ximpleware/vtd-xml
throw new XPathParseExceptionHuge(as.getAxisString()+" axis can't operate on"+
" node(), comment(), pi(), or text()",
scanner.getOffset());
代码示例来源:origin: dryade/vtd-xml
public parser (java.io.Reader input) {
super(new Yylex(input));
nsHash = null;
}
代码示例来源:origin: org.agmip.thirdparty/ximpleware-vtd-xml
throw new XPathParseExceptionHuge(as.getAxisString()+" axis can't operate on"+
" node(), comment(), pi(), or text()",
scanner.getOffset());
代码示例来源:origin: com.ximpleware/vtd-xml
public parser (java.io.InputStream input) {
super(new Yylex(input));
}
内容来源于网络,如有侵权,请联系作者删除!