⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 yylex.java

📁 java直接操作execl文件,读写建立新文件
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
/***********************************************************************      Copyright (C) 2002 Andrew Khan** This library is free software; you can redistribute it and/or* modify it under the terms of the GNU Lesser General Public* License as published by the Free Software Foundation; either* version 2.1 of the License, or (at your option) any later version.** This library 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* Lesser General Public License for more details.** You should have received a copy of the GNU Lesser General Public* License along with this library; if not, write to the Free Software* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA***************************************************************************/package jxl.biff.formula;/** * This file is generated by JLex.  Do not alter the contents of this file * because changes will be overridden */import jxl.biff.WorkbookMethods;class Yylex {	private final int YY_BUFFER_SIZE = 512;	private final int YY_F = -1;	private final int YY_NO_STATE = -1;	private final int YY_NOT_ACCEPT = 0;	private final int YY_START = 1;	private final int YY_END = 2;	private final int YY_NO_ANCHOR = 4;	private final int YY_BOL = 65536;	private final int YY_EOF = 65537;  int getPos() { return yychar ; }  private boolean emptyString;  private ExternalSheet externalSheet;  private WorkbookMethods nameTable;  void setExternalSheet(ExternalSheet es)  {    externalSheet = es;  }  void setNameTable(WorkbookMethods nt)  {    nameTable = nt;  }	private java.io.BufferedReader yy_reader;	private int yy_buffer_index;	private int yy_buffer_read;	private int yy_buffer_start;	private int yy_buffer_end;	private char yy_buffer[];	private int yychar;	private int yyline;	private boolean yy_at_bol;	private int yy_lexical_state;	Yylex (java.io.Reader reader) {		this ();		if (null == reader) {			throw (new Error("Error: Bad input stream initializer."));		}		yy_reader = new java.io.BufferedReader(reader);	}	Yylex (java.io.InputStream instream) {		this ();		if (null == instream) {			throw (new Error("Error: Bad input stream initializer."));		}		yy_reader = new java.io.BufferedReader(new java.io.InputStreamReader(instream));	}	private Yylex () {		yy_buffer = new char[YY_BUFFER_SIZE];		yy_buffer_read = 0;		yy_buffer_index = 0;		yy_buffer_start = 0;		yy_buffer_end = 0;		yychar = 0;		yyline = 0;		yy_at_bol = true;		yy_lexical_state = YYINITIAL;	}	private boolean yy_eof_done = false;	private final int YYSTRING = 1;	private final int YYINITIAL = 0;	private final int yy_state_dtrans[] = {		0,		28	};	private void yybegin (int state) {		yy_lexical_state = state;	}	private int yy_advance ()		throws java.io.IOException {		int next_read;		int i;		int j;		if (yy_buffer_index < yy_buffer_read) {			return yy_buffer[yy_buffer_index++];		}		if (0 != yy_buffer_start) {			i = yy_buffer_start;			j = 0;			while (i < yy_buffer_read) {				yy_buffer[j] = yy_buffer[i];				++i;				++j;			}			yy_buffer_end = yy_buffer_end - yy_buffer_start;			yy_buffer_start = 0;			yy_buffer_read = j;			yy_buffer_index = j;			next_read = yy_reader.read(yy_buffer,					yy_buffer_read,					yy_buffer.length - yy_buffer_read);			if (-1 == next_read) {				return YY_EOF;			}			yy_buffer_read = yy_buffer_read + next_read;		}		while (yy_buffer_index >= yy_buffer_read) {			if (yy_buffer_index >= yy_buffer.length) {				yy_buffer = yy_double(yy_buffer);			}			next_read = yy_reader.read(yy_buffer,					yy_buffer_read,					yy_buffer.length - yy_buffer_read);			if (-1 == next_read) {				return YY_EOF;			}			yy_buffer_read = yy_buffer_read + next_read;		}		return yy_buffer[yy_buffer_index++];	}	private void yy_move_end () {		if (yy_buffer_end > yy_buffer_start &&		    '\n' == yy_buffer[yy_buffer_end-1])			yy_buffer_end--;		if (yy_buffer_end > yy_buffer_start &&		    '\r' == yy_buffer[yy_buffer_end-1])			yy_buffer_end--;	}	private boolean yy_last_was_cr=false;	private void yy_mark_start () {		int i;		for (i = yy_buffer_start; i < yy_buffer_index; ++i) {			if ('\n' == yy_buffer[i] && !yy_last_was_cr) {				++yyline;			}			if ('\r' == yy_buffer[i]) {				++yyline;				yy_last_was_cr=true;			} else yy_last_was_cr=false;		}		yychar = yychar			+ yy_buffer_index - yy_buffer_start;		yy_buffer_start = yy_buffer_index;	}	private void yy_mark_end () {		yy_buffer_end = yy_buffer_index;	}	private void yy_to_mark () {		yy_buffer_index = yy_buffer_end;		yy_at_bol = (yy_buffer_end > yy_buffer_start) &&		            ('\r' == yy_buffer[yy_buffer_end-1] ||		             '\n' == yy_buffer[yy_buffer_end-1] ||		             2028/*LS*/ == yy_buffer[yy_buffer_end-1] ||		             2029/*PS*/ == yy_buffer[yy_buffer_end-1]);	}	private java.lang.String yytext () {		return (new java.lang.String(yy_buffer,			yy_buffer_start,			yy_buffer_end - yy_buffer_start));	}	private int yylength () {		return yy_buffer_end - yy_buffer_start;	}	private char[] yy_double (char buf[]) {		int i;		char newbuf[];		newbuf = new char[2*buf.length];		for (i = 0; i < buf.length; ++i) {			newbuf[i] = buf[i];		}		return newbuf;	}	private final int YY_E_INTERNAL = 0;	private final int YY_E_MATCH = 1;	private java.lang.String yy_error_string[] = {		"Error: Internal error.\n",		"Error: Unmatched input.\n"	};	private void yy_error (int code,boolean fatal) {		java.lang.System.out.print(yy_error_string[code]);		java.lang.System.out.flush();		if (fatal) {			throw new Error("Fatal Error.\n");		}	}	private int[][] unpackFromString(int size1, int size2, String st) {		int colonIndex = -1;		String lengthString;		int sequenceLength = 0;		int sequenceInteger = 0;		int commaIndex;		String workString;		int res[][] = new int[size1][size2];		for (int i= 0; i < size1; i++) {			for (int j= 0; j < size2; j++) {				if (sequenceLength != 0) {					res[i][j] = sequenceInteger;					sequenceLength--;					continue;				}				commaIndex = st.indexOf(',');				workString = (commaIndex==-1) ? st :					st.substring(0, commaIndex);				st = st.substring(commaIndex+1);				colonIndex = workString.indexOf(':');				if (colonIndex == -1) {					res[i][j]=Integer.parseInt(workString);					continue;				}				lengthString =					workString.substring(colonIndex+1);				sequenceLength=Integer.parseInt(lengthString);				workString=workString.substring(0,colonIndex);				sequenceInteger=Integer.parseInt(workString);				res[i][j] = sequenceInteger;				sequenceLength--;			}		}		return res;	}	private int yy_acpt[] = {		/* 0 */ YY_NOT_ACCEPT,		/* 1 */ YY_NO_ANCHOR,		/* 2 */ YY_NO_ANCHOR,		/* 3 */ YY_NO_ANCHOR,		/* 4 */ YY_NO_ANCHOR,		/* 5 */ YY_NO_ANCHOR,		/* 6 */ YY_NO_ANCHOR,		/* 7 */ YY_NO_ANCHOR,		/* 8 */ YY_NO_ANCHOR,		/* 9 */ YY_NO_ANCHOR,		/* 10 */ YY_NO_ANCHOR,		/* 11 */ YY_NO_ANCHOR,		/* 12 */ YY_NO_ANCHOR,		/* 13 */ YY_NO_ANCHOR,		/* 14 */ YY_NO_ANCHOR,		/* 15 */ YY_NO_ANCHOR,		/* 16 */ YY_NO_ANCHOR,		/* 17 */ YY_NO_ANCHOR,		/* 18 */ YY_NO_ANCHOR,		/* 19 */ YY_NO_ANCHOR,		/* 20 */ YY_NO_ANCHOR,		/* 21 */ YY_NO_ANCHOR,		/* 22 */ YY_NO_ANCHOR,		/* 23 */ YY_NO_ANCHOR,		/* 24 */ YY_NO_ANCHOR,		/* 25 */ YY_NO_ANCHOR,		/* 26 */ YY_NO_ANCHOR,		/* 27 */ YY_NO_ANCHOR,		/* 28 */ YY_NO_ANCHOR,		/* 29 */ YY_NO_ANCHOR,		/* 30 */ YY_NOT_ACCEPT,		/* 31 */ YY_NO_ANCHOR,		/* 32 */ YY_NO_ANCHOR,		/* 33 */ YY_NO_ANCHOR,		/* 34 */ YY_NO_ANCHOR,		/* 35 */ YY_NO_ANCHOR,		/* 36 */ YY_NOT_ACCEPT,		/* 37 */ YY_NO_ANCHOR,		/* 38 */ YY_NOT_ACCEPT,		/* 39 */ YY_NO_ANCHOR,		/* 40 */ YY_NOT_ACCEPT,		/* 41 */ YY_NO_ANCHOR,		/* 42 */ YY_NOT_ACCEPT,		/* 43 */ YY_NOT_ACCEPT,		/* 44 */ YY_NOT_ACCEPT,		/* 45 */ YY_NOT_ACCEPT,		/* 46 */ YY_NOT_ACCEPT,		/* 47 */ YY_NOT_ACCEPT,		/* 48 */ YY_NOT_ACCEPT,

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -