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

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

?? fscript.java

?? 一個j2me的腳本引擎
?? JAVA
字號:
package murlen.util.fscriptME;

import java.util.Vector;

/**
 * <b>Femto Script - an incredibly simplistic scripting language</b>
   <p>
  <I>Copyright (C) 2002 murlen.</I></p>
    <p>
    This program is free software; you can redistribute it and/or
    modify it under the terms of the GNU General Public
    License as published by the Free Software Foundation; either
    version 2 of the License, or (at your option) any later version.</p>
    <p>
    This software is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    General Public License for more details.</p>
    <p>
    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc.,59 Temple Place, Suite 330, Boston MA 0211-1307 USA
    </p>
 * @author murlen
 * @author Joachim Van der Auwera - extension concept
 * @version 0.5
 */
public class FScript {
    
    
    private Parser parser;
    private LineLoader code;
    
    /** Constructor */
    public FScript() {
        
        parser=new Parser(this);
        code=new LineLoader();
        parser.setCode(code);
        
    }
    
    public void addLines(String s){
        code.addLines(s);
    }
    
    /**
     * Run the parser over currently loaded code
     *@return any return value of the script's execution (will be one of 
     *FScript's supported type objects, Integer,String)
     */
    public Object runCode() throws  FSException {
        //reset the internal variable state
	try {
		parser.reset();
		return parser.parse(0,code.lineCount()-1);
	} catch(Parser.ExitException e){
		//exit exceptions bubble up to here
		return parser.getReturnValue();
	}
    }
    
    /**
     * Resets the internal code store
     */
    public void reset(){
        code.reset();
        parser.reset();
    }
    
    /**
    * Forces an exit from the currently running script 
    * equivalent of 'exit' keyword in FScriptME itself.
    * intended to be called from within functions implemented in FScript 
    * subclasses
    *@param o, object that will be returned from the entry point (runCode or cont)
    **/
    public void exit(Object o) throws FSException{
	    parser.exit(o);
    }
    
    /**
     * Continues execution from current point - only really
     * useful in a document processing application where you may
     * wish to add code, execute, add some more code..etc..
     *@return any return value of the script's execution (will be one of 
     *FScript's supported type objects, Integer,String)
     */
    public Object cont() throws FSException {
        if (code.getCurLine()==0){
            return runCode();
        }
        else {
            return parser.parse(code.getCurLine()+1,code.lineCount()-1);
        }
    }
    
    /**
     * Returns more details on any error states, indicated by
     * FSExceptions.
     * @return String, see below <br>
     * s[0]=the error text <BR>
     * s[1]=the line number <BR>
     * s[2]=the line text <BR>
     * s[3]=the current token <BR>
     * s[4]=a variable dump (current scope) <BR>
     * s[5]=a global variable dump (only if currnent scope is not global <BR>
     */
    public String[] getError() {
        return parser.getError();
    }
    
    /**
     * Override this method to allow external access to variables
     * in your code.
     * @param name, the name of the variable the parser is requesting
     * e.g
     * add this...
     * <br>
     * if (name.equals("one") { return new Integer(1) }
     * <br>
     * to allow the code
     * <br>
     * a=one
     * <br>
     * to work in FScript
     * @return Object - currently expected to be String or Integer
     */
    protected Object getVar(String name)throws FSException {
        throw new FSException("Unrecognized External: " + name);
    }
    
    /**
     * Override this method to allow external access to variables
     * in your code.
     *<p>As getVar(String name) but allows an index variable to be
     *passed so code such as :
     * name=list[2]
     * is possible
     * @param name, the name of the variable the parser is requesting
     * @return Object - currently expected to be String, Integer
     */
    protected Object getVar(String name,Object index)throws FSException {
        throw new FSException("Unrecognized External: " + name);
    }
    
    /**
     * Logical inverse of getVar
     * @param name the variable name
     * @param value the value to set it to
     */
    protected void setVar(String name,Object value) throws FSException {
        throw new FSException("Unrecognized External: " + name);
    }
    
    /**
     * Logical inverse of getVar (with index)
     * @param name the variable name
     * @param index the index into the 'array'
     * @param value the value to set it to
     */
    protected void setVar(String name,Object index,Object value)
    throws FSException {
        throw new FSException("Unrecognized External: " + name);
    }
       
    /**
     * Override this call to implement custom functions
     * See the BasicIO class for an example
     *
     * @param name the function name
     * @param params an ArrayList of parameter values
     * @return an Object, currently expected to be Integer or String
     */
    protected Object callFunction(String name, Vector params) throws FSException {
        throw new FSException("Unrecognized External: " + name);
    }
    
    /**
     *Sets a variable in script space = the value passed in - the variable
     *must be have the correct type - note that if the varialble is not defined in the 
     *script, calls will be made to subclass setVar methods - therefore this method 
     *should be used with caution from within an overriden setVar.
     *@param name the name of the variable
     *@param value the value to set variable to (String,Integer)*/
    public final void setScriptVar(String name,Object value) throws FSException{
        parser.setVar(name,value);
    }
    
   /**
     *Gets a variable in script space note that if the varialble is not defined in the 
     *script, calls will be made to subclass getVar methods - therefore this method 
     *should be used with caution from within an overriden getVar.
     *@param name the name of the variable
     *@return the value of the variable (String,Integer)*/
    public final Object getScriptVar(String name) throws FSException{
        return parser.getVar(name);
    }
    
    /**Calls a function in the script - note that if the function is not defined calls
     *will be made to the subclass callFunction methods - therefore this method should
     *be used with caution from within an overriden callFunction.
     *@param name the name of the function
     *@param params the parameters to pass (must be correct type and number)
     *@return the return value of the function (String,Integer)*/
    
    public final Object callScriptFunction(String name,Vector params) throws 
                                            FSException{
        return parser.callFunction(name,params);
    }
    
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
99久久伊人网影院| 伊人性伊人情综合网| 国产亚洲一区二区三区在线观看| 久久色在线观看| 久久久久久亚洲综合影院红桃| 国产三级久久久| 最好看的中文字幕久久| 亚洲午夜免费视频| 亚洲丝袜精品丝袜在线| 亚洲一区二区三区在线| 青青草91视频| 国产丶欧美丶日本不卡视频| 国产精品资源网| 成人av在线资源| 91老师片黄在线观看| 国产91精品久久久久久久网曝门 | 欧美亚洲高清一区二区三区不卡| 91成人看片片| 91精品国产色综合久久| 国产欧美一区二区三区在线老狼| 一区二区中文字幕在线| 一级女性全黄久久生活片免费| 午夜久久久久久久久| 韩日av一区二区| 成人免费视频视频| 欧美精选一区二区| 日韩手机在线导航| 一区在线观看视频| 欧美bbbbb| 成人av在线影院| 欧美日韩精品高清| 久久久一区二区三区捆绑**| 亚洲永久精品国产| 国产美女久久久久| 欧美做爰猛烈大尺度电影无法无天| 91精品啪在线观看国产60岁| 中文字幕 久热精品 视频在线 | 91精品国产aⅴ一区二区| 337p日本欧洲亚洲大胆色噜噜| 国产校园另类小说区| 亚洲人成精品久久久久久| 青青草97国产精品免费观看无弹窗版| 麻豆精品国产传媒mv男同| av在线不卡免费看| 精品国产伦理网| 亚洲欧美精品午睡沙发| 久久99这里只有精品| 欧洲在线/亚洲| 欧美激情中文不卡| 秋霞电影一区二区| 一本到一区二区三区| 26uuu另类欧美亚洲曰本| 亚洲成人7777| 99在线视频精品| 欧美日韩国产小视频在线观看| 欧美激情一区在线观看| 麻豆传媒一区二区三区| 欧美性淫爽ww久久久久无| 欧美国产日韩a欧美在线观看| 全国精品久久少妇| 欧美写真视频网站| 欧美激情综合五月色丁香小说| 看电视剧不卡顿的网站| 欧洲一区二区三区免费视频| 国产欧美1区2区3区| 国产一区二区精品久久91| 2022国产精品视频| 国产在线精品一区二区不卡了| 日韩欧美中文字幕公布| 麻豆成人av在线| 欧美成人三级在线| 另类人妖一区二区av| 日韩视频一区二区三区| 久久99精品国产| 精品国产不卡一区二区三区| 国产综合成人久久大片91| 精品久久一区二区三区| 国产在线不卡一卡二卡三卡四卡| 欧美电影免费观看高清完整版在| 日本欧美韩国一区三区| 日韩精品综合一本久道在线视频| 久久成人综合网| 26uuu精品一区二区| 国产精品中文有码| 国产精品乱码妇女bbbb| kk眼镜猥琐国模调教系列一区二区| 国产农村妇女毛片精品久久麻豆 | 久久尤物电影视频在线观看| 国产原创一区二区三区| 久久精品夜色噜噜亚洲a∨| 粉嫩绯色av一区二区在线观看| 欧美国产精品久久| 色婷婷综合视频在线观看| 亚洲国产精品麻豆| 日韩色在线观看| 国产在线精品国自产拍免费| 国产精品无遮挡| 色婷婷激情一区二区三区| 亚洲国产视频a| 日韩精品一区二区三区四区| 国产福利一区在线| 亚洲视频在线观看三级| 欧美日本一区二区| 国产一区二区成人久久免费影院| 欧美极品美女视频| 在线观看一区二区精品视频| 日韩成人精品在线观看| 久久蜜桃av一区精品变态类天堂| 成人av网址在线| 午夜精品福利一区二区三区av| 精品国产一区二区在线观看| 成人av网站在线| 石原莉奈在线亚洲二区| 国产日韩亚洲欧美综合| 欧美性受极品xxxx喷水| 激情五月婷婷综合| 亚洲少妇30p| 日韩欧美国产电影| jvid福利写真一区二区三区| 亚洲国产综合91精品麻豆| 欧美va天堂va视频va在线| www.一区二区| 美女一区二区三区| 中文字幕一区二区三区在线不卡 | 麻豆91在线观看| 亚洲色图.com| 日韩欧美国产综合在线一区二区三区| 成人污污视频在线观看| 日韩综合在线视频| 成人欧美一区二区三区| 欧美一级欧美三级| 91丨porny丨首页| 久久精品国产免费看久久精品| 综合自拍亚洲综合图不卡区| 日韩一级高清毛片| 91在线观看污| 国产精品一卡二卡在线观看| 亚洲综合成人网| 久久久久高清精品| 欧美一区二区在线看| 91热门视频在线观看| 国产精品一区二区果冻传媒| 日韩福利视频导航| 亚洲精品免费播放| 国产亚洲欧洲一区高清在线观看| 欧美日韩国产中文| 一本大道久久精品懂色aⅴ| 国产一区二区三区免费观看| 午夜成人在线视频| 亚洲免费资源在线播放| 国产女人18毛片水真多成人如厕 | 国产成人一区在线| 日本免费在线视频不卡一不卡二| 亚洲人成网站色在线观看| 国产午夜精品久久久久久免费视 | 精品一区二区三区影院在线午夜| 亚洲视频一二区| 国产婷婷精品av在线| 日韩一级黄色片| 欧美伦理视频网站| 91老师片黄在线观看| 成人午夜大片免费观看| 国产一区二区成人久久免费影院| 免费在线观看日韩欧美| 日韩中文字幕麻豆| 五月婷婷色综合| 亚洲国产精品久久人人爱蜜臀| 亚洲天堂成人网| 亚洲欧洲精品一区二区三区| 国产视频911| 久久在线免费观看| 亚洲精品一区二区三区福利| 日韩一区二区三区视频在线| 欧美人狂配大交3d怪物一区| 在线精品视频小说1| 一本大道久久a久久精二百| 成人教育av在线| 国产成人av电影在线| 国产高清精品网站| 国产激情一区二区三区四区| 国产精品一品视频| 国产大片一区二区| 国产91高潮流白浆在线麻豆 | 久久久亚洲午夜电影| 欧美tk—视频vk| 精品国产成人在线影院| 久久综合九色综合欧美亚洲| 久久久久国产精品麻豆ai换脸 | 美女尤物国产一区| 捆绑调教一区二区三区| 激情六月婷婷久久| 国产精品一区免费在线观看| 国产成人亚洲综合a∨猫咪| 国产乱国产乱300精品| 另类小说欧美激情| 国产精品一品二品| 91网站在线播放| 在线日韩av片| 在线播放视频一区| 日韩视频免费直播|