亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? parser.java

?? linux下編程用 編譯軟件
?? JAVA
?? 第 1 頁 / 共 3 頁
字號:
            (              getTokenAhead(1).kind == END ||              (getTokenAhead(1).kind == WS && getTokenAhead(2).kind == END)            )           )          {            buffer.append(t.getImage().substring(0, t.getImage().length() - 2));            /* Skip the closing > that we have already checked. */            last = mustBe(t.kind);            break comment;          }        else          append(t);        mustBe(t.kind);      }    hTag = new Token(start, last);    handleComment();  }  /**  * Read a script. The text, returned without any changes,  * is terminated only by the closing tag SCRIPT.  */  protected void Script()                 throws ParseException  {    Token name;    Token start = hTag = mustBe(BEGIN);    optional(WS);    name = mustBe(SCRIPT);    optional(WS);    restOfTag(false, name, start);    buffer.setLength(0);    script:     while (!SCRIPT_CLOSE.matches(this))      {        append(getNextToken());      }    consume(SCRIPT_CLOSE);    _handleText();    endTag(false);    _handleEndTag(makeTagElement(name.getImage(), false));  }  /**  * Process SGML insertion that is not a comment.  */  protected void Sgml()               throws ParseException  {    if (COMMENT_OPEN.matches(this))      Comment();    else // skip till ">"      {        Token start = hTag = mustBe(BEGIN);        optional(WS);        mustBe(EXCLAMATION);        buffer.setLength(0);        read:         while (true)          {            t = getNextToken();            if (t.kind == Constants.ENTITY)              {                resolveAndAppendEntity(t);              }            else if (t.kind == EOF)              {                error("unexpected eof", t);                break read;              }            else if (t.kind == END)              break read;            else              append(t);          }        try          {            parseMarkupDeclarations(buffer);          }        catch (IOException ex)          {            error("Unable to parse SGML insertion: '" + buffer + "'",                  new Token(start, t)                 );          }      }  }  /**  * Read a style definition. The text, returned without any changes,  * is terminated only by the closing tag STYLE.  */  protected void Style()                throws ParseException  {    Token name;    Token start = hTag = mustBe(BEGIN);    optional(WS);    name = mustBe(STYLE);    optional(WS);    restOfTag(false, name, start);    buffer.setLength(0);    style:     while (!STYLE_CLOSE.matches(this))      {        append(getNextToken());      }    consume(STYLE_CLOSE);    _handleText();    endTag(false);    _handleEndTag(makeTagElement(name.getImage(), false));  }  /**   * Read a html tag.   */  protected void Tag()              throws ParseException  {    mark(true);    boolean closing = false;    Token name;    Token start = hTag = mustBe(BEGIN);    optional(WS);    name = getNextToken();    optional(WS);    if (name.kind == SLASH)      {        closing = true;        name = getNextToken();      }    restOfTag(closing, name, start);  }  /**   * A hook, for operations, preceeding call to handleText.   * Handle text in a string buffer.   * In non - preformatted mode, all line breaks immediately following the   * start tag and immediately before an end tag is discarded,   * \r, \n and \t are replaced by spaces, multiple space are replaced   * by the single one and the result is  moved into array,   * passing it  to handleText().   */  protected void _handleText()  {    char[] text;    if (preformatted > 0)      text = textProcessor.preprocessPreformatted(buffer);    else      text = textProcessor.preprocess(buffer);    if (text != null && text.length > 0)      {        TagElement pcdata = new TagElement(dtd.getElement("#pcdata"));        attributes = htmlAttributeSet.EMPTY_HTML_ATTRIBUTE_SET;        _handleEmptyTag(pcdata);        handleText(text);        if (titleOpen)          title.append(text);      }  }  /**   * Add the image of this token to the buffer.   * @param t A token to append.   */  protected final void append(Token t)  {    if (t.kind != EOF)      t.appendTo(buffer);  }  /**   * Consume pattern that must match.   * @param p A pattern to consume.   */  protected final void consume(pattern p)  {    node n;    for (int i = 0; i < p.nodes.length; i++)      {        n = p.nodes [ i ];        if (n.optional)          optional(n.kind);        else          mustBe(n.kind);      }  }  /**   * The method is called when the HTML end (closing) tag is found or if   * the parser concludes that the one should be present in the   * current position. The method is called immediatly   * before calling the handleEndTag().   * @param omitted True if the tag is no actually present in the document,   * but is supposed by the parser (like &lt;/html&gt; at the end of the   * document).   */  protected void endTag(boolean omitted)  {  }  /**   * Handle HTML comment. The default method returns without action.   * @param comment   */  protected void handleComment(char[] comment)  {  }  /**   * This is additionally called in when the HTML content terminates   * without closing the HTML comment. This can only happen if the   * HTML document contains errors (for example, the closing --;gt is   * missing.   */  protected void handleEOFInComment()  {    error("Unclosed comment");  }  /**   * Handle the tag with no content, like &lt;br&gt;. The method is   * called for the elements that, in accordance with the current DTD,   * has an empty content.   * @param The tag being handled.   * @throws javax.swing.text.ChangedCharSetException   */  protected void handleEmptyTag(TagElement tag)                         throws javax.swing.text.ChangedCharSetException  {  }  /**   * The method is called when the HTML closing tag ((like &lt;/table&gt;)   * is found or if the parser concludes that the one should be present   * in the current position.   * @param The tag   */  protected void handleEndTag(TagElement tag)  {  }  /* Handle error that has occured in the given line. */  protected void handleError(int line, String message)  {  }  /**   * The method is called when the HTML opening tag ((like &lt;table&gt;)   * is found or if the parser concludes that the one should be present   * in the current position.   * @param The tag   */  protected void handleStartTag(TagElement tag)  {  }  /**   * Handle the text section.   * <p> For non-preformatted section, the parser replaces   * \t, \r and \n by spaces and then multiple spaces   * by a single space. Additionaly, all whitespace around   * tags is discarded.   * </p>   * <p> For pre-formatted text (inside TEXAREA and PRE), the parser preserves   * all tabs and spaces, but removes <b>one</b>  bounding \r, \n or \r\n,   * if it is present. Additionally, it replaces each occurence of \r or \r\n   * by a single \n.</p>   *   * @param text A section text.   */  protected void handleText(char[] text)  {  }  /**   * Handle HTML &lt;title&gt; tag. This method is invoked when   * both title starting and closing tags are already behind.   * The passed argument contains the concatenation of all   * title text sections.   * @param The title text.   */  protected void handleTitle(char[] title)  {  }  /**   * Constructs the tag from the given element. In this implementation,   * this is defined, but never called.   * @return the tag   */  protected TagElement makeTag(Element element)  {    return makeTag(element, false);  }  /**   * Constructs the tag from the given element.   * @param the tag base {@link javax.swing.text.html.parser.Element}   * @param isSupposed true if the tag is not actually present in the   * html input, but the parser supposes that it should to occur in   * the current location.   * @return the tag   */  protected TagElement makeTag(Element element, boolean isSupposed)  {    return new TagElement(element, isSupposed);  }  /**   * This is called when the tag, representing the given element,   * occurs first time in the document.   * @param element   */  protected void markFirstTime(Element element)  {  }  /**   * Consume the token that was checked before and hence MUST be present.   * @param kind The kind of token to consume.   */  protected Token mustBe(int kind)  {    if (getTokenAhead().kind == kind)      return getNextToken();    else      {        String ei = "";        if (kind < 1000)          ei = " ('" + (char) kind + "') ";        throw new AssertionError("The token of kind " + kind + ei +                                 " MUST be here,"                                );      }  }  /**   * Handle attribute without value. The default method uses   * the only allowed attribute value from DTD.   * If the attribute is unknown or allows several values,   * the HTML.NULL_ATTRIBUTE_VALUE is used. The attribute with   * this value is added to the attribute set.   * @param element The name of element.   * @param attribute The name of attribute without value.   */  protected void noValueAttribute(String element, String attribute)  {    Object value = HTML.NULL_ATTRIBUTE_VALUE;    Element e = (Element) dtd.elementHash.get(element.toLowerCase());    if (e != null)      {        AttributeList attr = e.getAttribute(attribute);        if (attr != null)          {            Vector values = attr.values;            if (values != null && values.size() == 1)              value = values.get(0);          }      }    attributes.addAttribute(attribute, value);  }  /**   * Consume the optional token, if present.   * @param kind The kind of token to consume.   */  protected Token optional(int kind)  {    if (getTokenAhead().kind == kind)      return getNextToken();    else      return null;  }  /** Parse the html document. */  protected void parseDocument()                        throws ParseException  {    while (getTokenAhead().kind != EOF)      {        advanced = false;        if (TAG.matches(this))          Tag();        else if (COMMENT_OPEN.matches(this))          Comment();        else if (STYLE_OPEN.matches(this))          Style();        else if (SCRIPT_OPEN.matches(this))          Script();        else if (SGML.matches(this))          Sgml();        else          CDATA(true);        // Surely HTML error, treat as a text.        if (!advanced)          {            Token wrong = getNextToken();            error("unexpected '" + wrong.getImage() + "'", wrong);            buffer.setLength(0);            buffer.append(wrong.getImage());            _handleText();          }      }  }  /**   * Read the element attributes, adding them into attribute set.   * @param element The element name (needed to access attribute   * information in dtd).   */  protected void readAttributes(String element)  {    Token name;    Token value;    Token next;    String attrValue;    attributes = new htmlAttributeSet();    optional(WS);    attributeReading:     while (getTokenAhead().kind == NUMTOKEN)      {        name = getNextToken();        optional(WS);        next = getTokenAhead();        if (next.kind == EQ)          {            mustBe(EQ);            optional(WS);            next = getNextToken();            switch (next.kind)              {                case QUOT :                  // read "quoted" attribute.                  buffer.setLength(0);                  readTillTokenE(QUOT);                  attrValue = buffer.toString();                  break;                case AP :                  // read 'quoted' attribute.                  buffer.setLength(0);                  readTillTokenE(AP);

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
在线观看网站黄不卡| 99精品热视频| 成人美女视频在线看| 欧美日韩国产另类不卡| 久久蜜臀精品av| 亚洲国产成人av好男人在线观看| 日韩av一级电影| 色综合久久66| 久久久.com| 日韩国产在线观看| 99riav久久精品riav| 精品国产第一区二区三区观看体验| 一区二区三区精品视频| 成人精品免费网站| 日韩一区二区三区精品视频| 亚洲欧美日本在线| 成人精品免费看| 久久精品视频一区| 精油按摩中文字幕久久| 欧美日韩在线亚洲一区蜜芽| 国产精品久久久久aaaa樱花| 精品一区二区免费在线观看| 欧美色手机在线观看| 亚洲三级在线免费观看| 成人一区二区三区在线观看| 久久久久久久性| 国产在线精品视频| 欧美成人性战久久| 青青草国产精品亚洲专区无| 欧美精品v国产精品v日韩精品| 亚洲尤物视频在线| 色综合久久久久| 亚洲欧洲日韩一区二区三区| av影院午夜一区| 国产精品久久久久久久岛一牛影视| 国产成人综合网| 久久精品人人做人人综合| 国模一区二区三区白浆| 精品国产乱码91久久久久久网站| 久久国产视频网| 精品国产露脸精彩对白| 国产不卡视频在线播放| 国产农村妇女精品| 不卡一区二区三区四区| 亚洲三级小视频| 欧美午夜在线一二页| 亚洲成人av一区二区| 欧美浪妇xxxx高跟鞋交| 蜜臀久久99精品久久久久宅男| 日韩一区二区三区在线| 国产制服丝袜一区| 亚洲人成网站精品片在线观看| 91麻豆精东视频| 亚洲激情第一区| 宅男在线国产精品| 国产精品一区二区视频| 中文字幕中文字幕中文字幕亚洲无线| 91香蕉视频黄| 日韩av中文字幕一区二区三区| 精品国产一区二区三区四区四 | 不卡一区在线观看| 一区二区三区日本| 91麻豆精品国产自产在线观看一区| 免费久久99精品国产| 国产亚洲va综合人人澡精品| 色婷婷久久久亚洲一区二区三区 | 国产美女在线精品| 中文字幕一区二区三中文字幕| 在线一区二区三区做爰视频网站| 日韩av在线播放中文字幕| 中文一区在线播放| 欧美电影一区二区| 丁香激情综合五月| 日韩中文字幕1| 亚洲手机成人高清视频| 欧美成人猛片aaaaaaa| jlzzjlzz亚洲女人18| 亚洲一区二区三区四区五区黄| 久久亚洲捆绑美女| 欧美军同video69gay| 懂色av一区二区三区蜜臀| 五月激情综合色| 国产精品久久久一区麻豆最新章节| 欧美巨大另类极品videosbest| 高清国产一区二区| 青草国产精品久久久久久| 中文字幕中文在线不卡住| 欧美精品一区二区在线播放| 欧美日韩欧美一区二区| av一区二区三区四区| 国产一区二区看久久| 亚洲第一主播视频| 亚洲免费电影在线| 欧美国产禁国产网站cc| 亚洲精品一区二区三区99| 欧美另类一区二区三区| 欧美影视一区在线| 一本久久a久久精品亚洲| 国产成人精品免费| 久久91精品国产91久久小草| 午夜亚洲福利老司机| 一区二区三区中文在线| 国产精品久久久久影院| 国产欧美视频一区二区| 久久久久97国产精华液好用吗| 欧美一区二区在线免费观看| 在线视频观看一区| 在线一区二区三区四区| 色综合视频在线观看| av色综合久久天堂av综合| 成人污污视频在线观看| 国产成人一级电影| 国产成人午夜视频| 成人小视频免费在线观看| 国产伦精品一区二区三区免费 | 亚洲成a人片在线观看中文| 亚洲精品视频在线| 亚洲激情综合网| 亚洲国产精品久久久久秋霞影院 | 亚洲国产精品高清| 日本一区二区视频在线| 久久精品亚洲国产奇米99| 国产亚洲一二三区| 中文字幕精品一区二区精品绿巨人| 国产无一区二区| 国产精品免费人成网站| 中文字幕一区二| 亚洲人妖av一区二区| 一区二区三区国产| 亚洲风情在线资源站| 日韩av一二三| 国产精品99久久久久久有的能看 | 欧美久久久久久蜜桃| 91精品国产福利在线观看 | 亚洲欧美欧美一区二区三区| 亚洲狠狠丁香婷婷综合久久久| 亚洲高清一区二区三区| 人人爽香蕉精品| 国产激情一区二区三区四区| 99精品久久久久久| 在线播放亚洲一区| 国产亚洲欧美在线| 亚洲午夜久久久久久久久电影院| 五月婷婷综合激情| 国模冰冰炮一区二区| 成人激情午夜影院| 欧美色综合影院| 久久欧美中文字幕| 一区二区三区日韩精品视频| 久久99国内精品| 一本到不卡精品视频在线观看| 欧美精品在线观看一区二区| 久久综合久久鬼色中文字| 亚洲婷婷综合色高清在线| 蜜桃一区二区三区在线观看| 成人99免费视频| 日韩免费电影网站| 亚洲蜜臀av乱码久久精品| 麻豆国产精品777777在线| 成人高清视频在线| 日韩欧美另类在线| 亚洲蜜臀av乱码久久精品| 国产一区二三区| 欧美日产在线观看| 国产精品女主播在线观看| 日本视频一区二区三区| 91视频一区二区三区| 久久嫩草精品久久久久| 亚洲va中文字幕| eeuss鲁片一区二区三区| 日韩丝袜美女视频| 夜夜嗨av一区二区三区四季av| 国产乱淫av一区二区三区| 欧美一区在线视频| 一区二区高清免费观看影视大全| 国产美女一区二区| 欧美一级二级三级乱码| 亚洲成人免费av| 色av一区二区| 国产精品日产欧美久久久久| 国产一区二区三区美女| 91精品国产综合久久精品 | 一色屋精品亚洲香蕉网站| 久久精品二区亚洲w码| 欧美日韩1234| 午夜视频一区二区三区| 日本韩国一区二区| 亚洲丝袜自拍清纯另类| 成人av在线播放网站| 国产精品嫩草久久久久| 岛国一区二区三区| 国产女同性恋一区二区| 国产91色综合久久免费分享| 精品卡一卡二卡三卡四在线| 日韩成人免费在线| 欧美一区二区三区精品| 日本中文在线一区| 欧美一区二区三区视频免费播放 | 91视频精品在这里| 一区二区中文字幕在线|