gpt4 book ai didi

com.ximpleware.xpath.Yylex.yytext()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-18 11:57:31 28 4
gpt4 key购买 nike

本文整理了Java中com.ximpleware.xpath.Yylex.yytext()方法的一些代码示例,展示了Yylex.yytext()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Yylex.yytext()方法的具体详情如下:
包路径:com.ximpleware.xpath.Yylex
类名称:Yylex
方法名:yytext

Yylex.yytext介绍

[英]Returns the text matched by the current regular expression.
[中]返回与当前正则表达式匹配的文本。

代码示例

代码示例来源:origin: org.agmip.thirdparty/ximpleware-vtd-xml

/**
 * Same as next_token but also prints the token to standard out
 * for debugging.
 *
 * This code was contributed by Karl Meissner <meissnersd@yahoo.com>
 */
public java_cup.runtime.Symbol debug_next_token() throws java.io.IOException, XPathParseException {
 java_cup.runtime.Symbol s = next_token();
 System.out.println( " --"+ yytext() + "--" + getTokenName(s.sym) + "--");
 return s;
}

代码示例来源:origin: dryade/vtd-xml

/**
 * Same as next_token but also prints the token to standard out
 * for debugging.
 *
 * This code was contributed by Karl Meissner <meissnersd@yahoo.com>
 */
public java_cup.runtime.Symbol debug_next_token() throws java.io.IOException, XPathParseException {
 java_cup.runtime.Symbol s = next_token();
 System.out.println( " --"+ yytext() + "--" + getTokenName(s.sym) + "--");
 return s;
}

代码示例来源:origin: com.ximpleware/vtd-xml

/**
 * Same as next_token but also prints the token to standard out
 * for debugging.
 *
 * This code was contributed by Karl Meissner <meissnersd@yahoo.com>
 */
public java_cup.runtime.Symbol debug_next_token() throws java.io.IOException, XPathParseException {
 java_cup.runtime.Symbol s = next_token();
 System.out.println( " --"+ yytext() + "--" + getTokenName(s.sym) + "--");
 return s;
}

代码示例来源:origin: dryade/vtd-xml

case 28: 
 { isName = 0;
    len = yytext().length();
    name = new NameType();
            if (!XMLChar.isNCNameStartChar(yytext().charAt(0)))
      throw new XPathParseException("Invalid char in name token:  "+yytext()+ "@position 0");
      if (!XMLChar.isNCNameChar(yytext().charAt(i)))
        throw new XPathParseException("Invalid char in name token:  "+yytext()+ "@position "+i);
    name.prefix = yytext().substring(0,len-2);
    name.localname = "*";
    name.qname = new String(yytext());
    name.qname = new String(yytext());
    if (!XMLChar.isNCNameStartChar(name.qname.charAt(0)))
      throw new XPathParseException("Invalid char in name token:  "+yytext()+ "@position 0");
        throw new XPathParseException("Invalid char in name token:  "+yytext()+ "@position "+i);
      if (name.qname.charAt(i)==':'){
        colonPosition = i;
      name.prefix = yytext().substring(0,colonPosition);
      name.localname = yytext().substring(colonPosition+1);				
case 3: 
 { isName = 0;
    number = new Double(yytext());

代码示例来源:origin: com.ximpleware/vtd-xml

case 28: 
 { isName = 0;
    len = yytext().length();
    name = new NameType();
            if (!XMLChar.isNCNameStartChar(yytext().charAt(0)))
      throw new XPathParseException("Invalid char in name token:  "+yytext()+ "@position 0");
      if (!XMLChar.isNCNameChar(yytext().charAt(i)))
        throw new XPathParseException("Invalid char in name token:  "+yytext()+ "@position "+i);
    name.prefix = yytext().substring(0,len-2);
    name.localname = "*";
    name.qname = new String(yytext());
    name.qname = new String(yytext());
    if (!XMLChar.isNCNameStartChar(name.qname.charAt(0)))
      throw new XPathParseException("Invalid char in name token:  "+yytext()+ "@position 0");
        throw new XPathParseException("Invalid char in name token:  "+yytext()+ "@position "+i);
      if (name.qname.charAt(i)==':'){
        colonPosition = i;
      name.prefix = yytext().substring(0,colonPosition);
      name.localname = yytext().substring(colonPosition+1);				
case 3: 
 { isName = 0;
    number = new Double(yytext());

代码示例来源: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 XPathParseException("Invalid char in name token:  "+yytext()+ "@position 0");
      if (!XMLChar.isNCNameChar(yytext().charAt(i)))
        throw new XPathParseException("Invalid char in name token:  "+yytext()+ "@position "+i);
    name.prefix = yytext().substring(0,len-2);
    name.localname = "*";
    name.qname = new String(yytext());
    name.qname = new String(yytext());
    if (!XMLChar.isNCNameStartChar(name.qname.charAt(0)))
      throw new XPathParseException("Invalid char in name token:  "+yytext()+ "@position 0");
        throw new XPathParseException("Invalid char in name token:  "+yytext()+ "@position "+i);
      if (name.qname.charAt(i)==':'){
        colonPosition = i;
      name.prefix = yytext().substring(0,colonPosition);
      name.localname = yytext().substring(colonPosition+1);				
case 3: 
 { isName = 0;
    number = new Double(yytext());

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com