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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? token.java

?? 大名鼎鼎的java動(dòng)態(tài)腳本語言。已經(jīng)通過了sun的認(rèn)證
?? JAVA
字號(hào):
/* $Id: Token.java,v 1.29 2005/04/12 15:04:59 jstrachan Exp $ Copyright 2003 (C) James Strachan and Bob Mcwhirter. All Rights Reserved. Redistribution and use of this software and associated documentation ("Software"), with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain copyright    statements and notices.  Redistributions must also contain a    copy of this document. 2. Redistributions in binary form must reproduce the    above copyright notice, this list of conditions and the    following disclaimer in the documentation and/or other    materials provided with the distribution. 3. The name "groovy" must not be used to endorse or promote    products derived from this Software without prior written    permission of The Codehaus.  For written permission,    please contact info@codehaus.org. 4. Products derived from this Software may not be called "groovy"    nor may "groovy" appear in their names without prior written    permission of The Codehaus. "groovy" is a registered    trademark of The Codehaus. 5. Due credit should be given to The Codehaus -    http://groovy.codehaus.org/ THIS SOFTWARE IS PROVIDED BY THE CODEHAUS AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE CODEHAUS OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */package org.codehaus.groovy.syntax;import org.codehaus.groovy.GroovyBugError;/** *  A <code>CSTNode</code> produced by the <code>Lexer</code>. * *  @see Lexer *  @see Parser *  @see Token *  @see Reduction *  @see Types * *  @author <a href="mailto:bob@werken.com">bob mcwhirter</a> *  @author <a href="mailto:cpoirier@dreaming.org">Chris Poirier</a> * *  @version $Id: Token.java,v 1.29 2005/04/12 15:04:59 jstrachan Exp $ */public class Token extends CSTNode{    public static final Token NULL = new Token();    public static final Token EOF  = new Token( Types.EOF, "", -1, -1 );  //---------------------------------------------------------------------------  // TOKEN INITIALIZATION AND SUCH    private int type        = Types.UNKNOWN;  // the actual type identified by the lexer    private int meaning     = Types.UNKNOWN;  // an interpretation applied to the token after the fact    private String     text = "";             // the text of the token    private int   startLine = -1;             // the source line on which the token begins    private int startColumn = -1;             // the source column on which the token begins   /**    *  Initializes the Token with the specified information.    */    public Token( int type, String text, int startLine, int startColumn )    {        this.type        = type;        this.meaning     = type;        this.text        = text;        this.startLine   = startLine;        this.startColumn = startColumn;    }   /**    *  Initializes the NULL Token.    */    private Token() { }   /**    *  Returns a copy of this Token.    */    public Token dup()    {        Token token = new Token( this.type, this.text, this.startLine, this.startColumn );        token.setMeaning( this.meaning );        return token;    }  //---------------------------------------------------------------------------  // NODE IDENTIFICATION AND MEANING   /**    *  Returns the meaning of this node.  If the node isEmpty(), returns    *  the type of Token.NULL.    */    public int getMeaning()    {        return meaning;    }   /**    *  Sets the meaning for this node (and it's root Token).  Not    *  valid if the node isEmpty().  Returns this token, for    *  convenience.    */    public CSTNode setMeaning( int meaning )    {        this.meaning = meaning;        return this;    }   /**    *  Returns the actual type of the node.  If the node isEmpty(), returns    *  the type of Token.NULL.    */    public int getType()    {        return type;    }  //---------------------------------------------------------------------------  // MEMBER ACCESS   /**    *  Returns the number of elements in the node (including root).    */    public int size()    {        return 1;    }   /**    *  Returns the specified element, or null.    */    public CSTNode get( int index )    {        if( index > 0 )        {            throw new GroovyBugError( "attempt to access Token element other than root" );        }        return this;    }   /**    *  Returns the root of the node.  By convention, all nodes have    *  a Token as the first element (or root), which indicates the type    *  of the node.  May return null if the node <code>isEmpty()</code>.    */    public Token getRoot()    {        return this;    }   /**    *  Returns the text of the root node.  Uses <code>getRoot(true)</code>    *  to get the root, so you will only receive null in return if the    *  root token returns it.    */    public String getRootText()    {        return text;    }   /**    *  Returns the text of the token.  Equivalent to    *  <code>getRootText()</code> when called directly.    */    public String getText()    {        return text;    }   /**    *  Not advisable, but if you need to adjust the token's text, this    *  will do it.    */    public void setText( String text )    {        this.text = text;    }   /**    *  Returns the starting line of the node.  Returns -1    *  if not known.    */    public int getStartLine()    {        return startLine;    }   /**    *  Returns the starting column of the node.  Returns -1    *  if not known.    */    public int getStartColumn()    {        return startColumn;    }  //---------------------------------------------------------------------------  // OPERATIONS   /**    *  Creates a <code>Reduction</code> from this token.  Returns self if the    *  node is already a <code>Reduction</code>.    */    public Reduction asReduction()    {        return new Reduction( this );    }   /**    *  Creates a <code>Reduction</code> from this token, adding the supplied    *  node as the second element.    */    public Reduction asReduction( CSTNode second )    {        Reduction created = asReduction();        created.add( second );        return created;    }   /**    *  Creates a <code>Reduction</code> from this token, adding the supplied    *  nodes as the second and third element, respectively.    */    public Reduction asReduction( CSTNode second, CSTNode third )    {        Reduction created = asReduction( second );        created.add( third );        return created;    }   /**    *  Creates a <code>Reduction</code> from this token, adding the supplied    *  nodes as the second, third, and fourth element, respectively.    */    public Reduction asReduction( CSTNode second, CSTNode third, CSTNode fourth )    {        Reduction created = asReduction( second, third );        created.add( fourth );        return created;    }  //---------------------------------------------------------------------------  // TOKEN FACTORIES   /**    *  Creates a token that represents a keyword.  Returns null if the    *  specified text isn't a keyword.    */    public static Token newKeyword( String text, int startLine, int startColumn )    {        int type = Types.lookupKeyword( text );        if( type != Types.UNKNOWN )        {            return new Token( type, text, startLine, startColumn );        }        return null;    }   /**    *  Creates a token that represents a double-quoted string.    */    public static Token newString( String text, int startLine, int startColumn )    {        return new Token( Types.STRING, text, startLine, startColumn );    }   /**    *  Creates a token that represents an identifier.    */    public static Token newIdentifier( String text, int startLine, int startColumn )    {        return new Token( Types.IDENTIFIER, text, startLine, startColumn );    }   /**    *  Creates a token that represents an integer.    */    public static Token newInteger( String text, int startLine, int startColumn )    {        return new Token( Types.INTEGER_NUMBER, text, startLine, startColumn );    }   /**    *  Creates a token that represents a decimal number.    */    public static Token newDecimal( String text, int startLine, int startColumn )    {        return new Token( Types.DECIMAL_NUMBER, text, startLine, startColumn );    }   /**    *  Creates a token that represents a symbol, using a library for the text.    */    public static Token newSymbol( int type, int startLine, int startColumn )    {        return new Token( type, Types.getText(type), startLine, startColumn );    }   /**    *  Creates a token that represents a symbol, using a library for the type.    */    public static Token newSymbol( String type, int startLine, int startColumn )    {        return new Token( Types.lookupSymbol(type), type, startLine, startColumn );    }   /**    *  Creates a token with the specified meaning.    */    public static Token newPlaceholder( int type )    {        Token token = new Token( Types.UNKNOWN, "", -1, -1 );        token.setMeaning( type );        return token;    }}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩欧美自拍偷拍| 国产精品久久久爽爽爽麻豆色哟哟| 国产精品69久久久久水密桃| 亚洲人成精品久久久久久| 欧美一区二区三区四区五区| 国产不卡视频一区二区三区| 亚洲国产日韩精品| 国产精品美女久久久久aⅴ国产馆| 欧美性大战久久久久久久蜜臀| 国产**成人网毛片九色| 日本视频中文字幕一区二区三区| 亚洲视频1区2区| 久久久亚洲精华液精华液精华液| 欧美狂野另类xxxxoooo| 91丨九色丨蝌蚪丨老版| 国产老妇另类xxxxx| 免费成人结看片| 亚洲国产精品视频| 亚洲欧美另类小说视频| 国产拍欧美日韩视频二区| 欧美电影免费观看高清完整版在线 | 18欧美乱大交hd1984| 亚洲欧美另类图片小说| 精品国产一二三区| 91精品国产色综合久久不卡电影| 色老头久久综合| 成人黄色网址在线观看| 国产美女精品一区二区三区| 人人精品人人爱| 亚洲一区二区精品久久av| 国产精品久久久久久久久免费桃花 | 久久精品国产亚洲5555| 五月天亚洲精品| 亚洲国产日日夜夜| 亚洲国产综合人成综合网站| 一色屋精品亚洲香蕉网站| 国产蜜臀97一区二区三区| 久久精品欧美一区二区三区麻豆| 欧美刺激午夜性久久久久久久| 欧美人伦禁忌dvd放荡欲情| 在线观看日韩高清av| 色诱视频网站一区| 91亚洲大成网污www| 99精品视频在线观看| av亚洲精华国产精华精| 成人美女视频在线看| 波波电影院一区二区三区| 岛国av在线一区| 成人97人人超碰人人99| av一本久道久久综合久久鬼色| 9i在线看片成人免费| 99国产精品99久久久久久| 91亚洲精华国产精华精华液| 色婷婷香蕉在线一区二区| 国产日韩欧美制服另类| 国产亚洲自拍一区| 国产精品久久久久一区| 亚洲人一二三区| 亚洲午夜国产一区99re久久| 爽好多水快深点欧美视频| 日韩av一级片| 国产精品18久久久久久久久久久久| 国产成人av福利| 91免费看片在线观看| 欧美日韩第一区日日骚| 精品捆绑美女sm三区| 中文字幕乱码日本亚洲一区二区 | 午夜天堂影视香蕉久久| 琪琪一区二区三区| 国产成人免费在线视频| 99久久伊人久久99| 欧美肥胖老妇做爰| 久久网站最新地址| 亚洲黄色av一区| 男男gaygay亚洲| 成人一级片网址| 欧美日韩aaaaaa| 久久久久久久久久久久电影 | 国产一区二区不卡在线 | 99久久亚洲一区二区三区青草 | 精品视频资源站| 精品盗摄一区二区三区| 亚洲私人影院在线观看| 日本麻豆一区二区三区视频| 国产成人午夜视频| 欧美剧情片在线观看| 久久午夜老司机| 亚洲综合色噜噜狠狠| 国内久久精品视频| 欧美亚洲另类激情小说| 久久综合九色综合97_久久久| 国产福利一区在线| 在线精品视频免费观看| 久久综合久久99| 性久久久久久久| 成人中文字幕电影| 日韩午夜精品电影| 一区二区三区资源| 国产一区二区三区精品欧美日韩一区二区三区| 99re热视频这里只精品| 欧美videos中文字幕| 亚洲成人自拍一区| a美女胸又www黄视频久久| 欧美电视剧在线看免费| 亚洲午夜在线视频| 99视频精品全部免费在线| 日韩欧美一区二区视频| 亚洲综合久久av| www.亚洲色图| 国产无人区一区二区三区| 天堂在线亚洲视频| 在线观看日韩av先锋影音电影院| 中文字幕+乱码+中文字幕一区| 麻豆精品一区二区综合av| 色婷婷久久一区二区三区麻豆| 国产视频一区二区在线| 久久精品av麻豆的观看方式| 欧美色图第一页| 夜夜操天天操亚洲| 91网站在线播放| 国产精品丝袜一区| 国产美女在线观看一区| 精品伦理精品一区| 麻豆精品在线看| 69p69国产精品| 三级久久三级久久久| 在线亚洲欧美专区二区| 亚洲欧美日韩中文播放| 99久久精品国产网站| 中文久久乱码一区二区| 国产a久久麻豆| 国产欧美日韩中文久久| 国产精品69毛片高清亚洲| 精品国产乱码久久久久久久 | 国产不卡在线播放| 欧美国产日韩精品免费观看| 国产一区二区三区四区五区入口 | 国产精品亚洲成人| 26uuu色噜噜精品一区二区| 久久精品国产99国产| 日韩欧美的一区二区| 久久99这里只有精品| 欧美成人官网二区| 国产美女娇喘av呻吟久久| 久久久久久久综合日本| 国产高清在线观看免费不卡| 国产精品丝袜一区| 91老司机福利 在线| 亚洲一区二区三区四区五区中文| 欧美三级中文字幕| 日本不卡一区二区三区高清视频| 日韩一级片网址| 国产精品资源网站| 中文字幕一区二区三区不卡在线| 91视频xxxx| 午夜电影网一区| 精品国产一区二区三区久久久蜜月| 国产一二三精品| 亚洲欧洲成人自拍| 欧美午夜精品理论片a级按摩| 日韩精品免费专区| 午夜婷婷国产麻豆精品| 日韩欧美黄色影院| 成人小视频免费在线观看| 国产精品不卡在线| 精品视频在线免费观看| 久久精品免费观看| 国产精品美女一区二区| 欧美日韩精品一区二区天天拍小说 | 国产一区二区精品久久91| 亚洲欧洲日产国码二区| 欧美日韩在线播放| 狠狠色丁香久久婷婷综合丁香| 欧美高清在线视频| 欧美日本韩国一区二区三区视频 | 国产风韵犹存在线视精品| 亚洲欧美精品午睡沙发| 欧美一区二区播放| 成人国产视频在线观看| 亚洲一区二区不卡免费| 久久亚洲精华国产精华液| 91麻豆.com| 国产精品综合一区二区| 一级做a爱片久久| 久久久久亚洲蜜桃| 欧美色倩网站大全免费| 成人一区二区三区视频在线观看| 亚洲国产精品精华液网站| 久久品道一品道久久精品| 欧洲另类一二三四区| 国产成人免费视频 | 丁香桃色午夜亚洲一区二区三区| 亚洲一区二区精品视频| 欧美国产精品中文字幕| 欧美久久久久久久久| 99re视频精品| 国产精品资源网| 奇米888四色在线精品| 17c精品麻豆一区二区免费| 精品国产成人在线影院 |