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

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

?? binaryoperator.java

?? java開發文檔之excel:jexcelapi_2_6_3.tar
?? JAVA
字號:
/*********************************************************************
*
*      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;

import common.Logger;

import java.util.Stack;

/**
 * A cell reference in a formula
 */
abstract class BinaryOperator extends Operator implements ParsedThing
{
  // The logger
  private static final Logger logger = Logger.getLogger(BinaryOperator.class);

  /**
   * Constructor
   */
  public BinaryOperator()
  {
  }

  /**
   * Reads the ptg data from the array starting at the specified position
   *
   * @param data the RPN array
   * @param pos the current position in the array, excluding the ptg identifier
   * @return the number of bytes read
   */
  public int read(byte[] data, int pos)
  {
    return 0;
  }

  /**
   * Gets the operands for this operator from the stack
   *
   * @param s the token stack
   */
  public void getOperands(Stack s)
  {
    ParseItem o1 = (ParseItem) s.pop();
    ParseItem o2 = (ParseItem) s.pop();

    add(o1);
    add(o2);
  }

  /**
   * Gets the string version of this binary operator
   *
   * @param buf a the string buffer
   */
  public void getString(StringBuffer buf)
  {
    ParseItem[] operands = getOperands();
    operands[1].getString(buf);
    buf.append(getSymbol());
    operands[0].getString(buf);
  }

  /**
   * Adjusts all the relative cell references in this formula by the
   * amount specified.  Used when copying formulas
   *
   * @param colAdjust the amount to add on to each relative cell reference
   * @param rowAdjust the amount to add on to each relative row reference
   */
  public void adjustRelativeCellReferences(int colAdjust, int rowAdjust)
  {
    ParseItem[] operands = getOperands();
    operands[1].adjustRelativeCellReferences(colAdjust, rowAdjust);
    operands[0].adjustRelativeCellReferences(colAdjust, rowAdjust);
  }

  /**
   * Called when a column is inserted on the specified sheet.  Tells
   * the formula  parser to update all of its cell references beyond this
   * column
   *
   * @param sheetIndex the sheet on which the column was inserted
   * @param col the column number which was inserted
   * @param currentSheet TRUE if this formula is on the sheet in which the
   * column was inserted, FALSE otherwise
   */
  void columnInserted(int sheetIndex, int col, boolean currentSheet)
  {
    ParseItem[] operands = getOperands();
    operands[1].columnInserted(sheetIndex, col, currentSheet);
    operands[0].columnInserted(sheetIndex, col, currentSheet);
  }

  /**
   * Called when a column is inserted on the specified sheet.  Tells
   * the formula  parser to update all of its cell references beyond this
   * column
   *
   * @param sheetIndex the sheet on which the column was removed
   * @param col the column number which was removed
   * @param currentSheet TRUE if this formula is on the sheet in which the
   * column was inserted, FALSE otherwise
   */
  void columnRemoved(int sheetIndex, int col, boolean currentSheet)
  {
    ParseItem[] operands = getOperands();
    operands[1].columnRemoved(sheetIndex, col, currentSheet);
    operands[0].columnRemoved(sheetIndex, col, currentSheet);
  }

  /**
   * Called when a column is inserted on the specified sheet.  Tells
   * the formula  parser to update all of its cell references beyond this
   * column
   *
   * @param sheetIndex the sheet on which the row was inserted
   * @param row the row number which was inserted
   * @param currentSheet TRUE if this formula is on the sheet in which the
   * column was inserted, FALSE otherwise
   */
  void rowInserted(int sheetIndex, int row, boolean currentSheet)
  {
    ParseItem[] operands = getOperands();
    operands[1].rowInserted(sheetIndex, row, currentSheet);
    operands[0].rowInserted(sheetIndex, row, currentSheet);
  }

  /**
   * Called when a column is inserted on the specified sheet.  Tells
   * the formula  parser to update all of its cell references beyond this
   * column
   *
   * @param sheetIndex the sheet on which the row was removed
   * @param row the row number which was removed
   * @param currentSheet TRUE if this formula is on the sheet in which the
   * column was inserted, FALSE otherwise
   */
  void rowRemoved(int sheetIndex, int row, boolean currentSheet)
  {
    ParseItem[] operands = getOperands();
    operands[1].rowRemoved(sheetIndex, row, currentSheet);
    operands[0].rowRemoved(sheetIndex, row, currentSheet);
  }

  /**
   * Gets the token representation of this item in RPN
   *
   * @return the bytes applicable to this formula
   */
  byte[] getBytes()
  {
    // Get the data for the operands
    ParseItem[] operands = getOperands();
    byte[] data = new byte[0];

    // Get the operands in reverse order to get the RPN
    for (int i = operands.length - 1; i >= 0; i--)
    {
      byte[] opdata = operands[i].getBytes();

      // Grow the array
      byte[] newdata = new byte[data.length + opdata.length];
      System.arraycopy(data, 0, newdata, 0, data.length);
      System.arraycopy(opdata, 0, newdata, data.length, opdata.length);
      data = newdata;
    }

    // Add on the operator byte
    byte[] newdata = new byte[data.length + 1];
    System.arraycopy(data, 0, newdata, 0, data.length);
    newdata[data.length] = getToken().getCode();

    return newdata;
  }

  /**
   * Abstract method which gets the binary operator string symbol
   *
   * @return the string symbol for this token
   */
  abstract String getSymbol();

  /**
   * Abstract method which gets the token for this operator
   *
   * @return the string symbol for this token
   */
  abstract Token getToken();

  /**
   * If this formula was on an imported sheet, check that
   * cell references to another sheet are warned appropriately
   * Does nothing, as operators don't have cell references
   */
  void handleImportedCellReferences()
  {
    ParseItem[] operands = getOperands();
    operands[0].handleImportedCellReferences();
    operands[1].handleImportedCellReferences();
  }

}





?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲少妇屁股交4| 蜜桃91丨九色丨蝌蚪91桃色| 在线播放日韩导航| 国产精选一区二区三区| 亚洲成av人片一区二区三区| 国产精品高潮呻吟| 日韩午夜电影av| 在线观看一区不卡| 国产成人精品免费一区二区| 日韩国产欧美三级| 亚洲精选视频在线| 国产精品家庭影院| 久久综合给合久久狠狠狠97色69| 欧美日韩亚洲高清一区二区| 99re8在线精品视频免费播放| 久久99精品一区二区三区 | 一区二区久久久久久| 欧美激情在线看| 久久蜜桃av一区二区天堂 | 蜜桃久久久久久| 国产一区美女在线| 欧美日韩国产一级片| 免费日本视频一区| 中文字幕欧美三区| 久久一日本道色综合| 欧美一级免费观看| 欧美丰满美乳xxx高潮www| 欧美性高清videossexo| 91麻豆国产福利精品| 91视视频在线观看入口直接观看www | 国产精品正在播放| 国产美女精品在线| 国产一区二区三区在线观看精品 | 国产精品网站在线观看| 中文字幕欧美一区| 欧美极品美女视频| 国产精品热久久久久夜色精品三区 | 欧美丝袜自拍制服另类| 欧美日韩一级黄| 555www色欧美视频| 日韩一区二区三区三四区视频在线观看| 91久久免费观看| 精品视频在线视频| 欧美精品v国产精品v日韩精品| 欧美日韩成人综合在线一区二区| 欧美日本国产视频| 欧美一区二区三区爱爱| 欧美xxxxxxxx| 欧美国产精品一区| 亚洲精品第1页| 日日夜夜精品视频天天综合网| 秋霞午夜av一区二区三区| 麻豆精品视频在线观看| 国产成人综合自拍| 色综合天天天天做夜夜夜夜做| 欧美在线色视频| 日韩欧美一级精品久久| 国产日韩成人精品| 综合久久久久综合| 视频一区视频二区中文| 精品亚洲aⅴ乱码一区二区三区| 国产乱对白刺激视频不卡| 91在线观看成人| 精品视频在线免费| 久久一区二区三区四区| 亚洲狼人国产精品| 日韩**一区毛片| 丰满岳乱妇一区二区三区| 色综合天天综合网天天狠天天| 在线成人免费视频| 国产精品污网站| 亚洲成人综合视频| 91麻豆精东视频| 国产在线不卡视频| 亚洲色图欧美激情| 亚洲一区二区精品视频| 久久精品国产**网站演员| 高清国产午夜精品久久久久久| 一本大道久久a久久综合| 欧美久久久久中文字幕| 久久精品一区二区三区不卡| 亚洲另类在线制服丝袜| 国产在线精品一区二区三区不卡| 99精品视频在线播放观看| 5858s免费视频成人| 国产精品久久久久7777按摩| 日韩精品亚洲一区二区三区免费| 国产一区二区91| 欧美精品少妇一区二区三区| 国产精品久久毛片av大全日韩| 丝袜美腿亚洲一区二区图片| 成人av在线网| 精品乱人伦小说| 亚洲第一狼人社区| 99久久婷婷国产| 久久久三级国产网站| 亚洲不卡在线观看| 91啪九色porn原创视频在线观看| 日韩精品专区在线影院重磅| 91色综合久久久久婷婷| 精品国产一区二区亚洲人成毛片| 亚洲免费观看高清完整版在线观看 | 国产亲近乱来精品视频| 亚洲一区免费在线观看| 成人av在线播放网址| 久久这里只有精品视频网| 亚洲二区在线视频| 色综合久久88色综合天天| 久久久国产综合精品女国产盗摄| 天天操天天色综合| 色婷婷久久久综合中文字幕 | 亚洲私人黄色宅男| 国产乱色国产精品免费视频| 91精品欧美综合在线观看最新 | 国产福利精品一区| 日韩欧美国产一区二区三区| 亚洲国产aⅴ成人精品无吗| 99re这里都是精品| 国产精品无码永久免费888| 寂寞少妇一区二区三区| 欧美一区二区免费观在线| 亚洲国产精品视频| 在线视频观看一区| 亚洲日本乱码在线观看| 成人av综合在线| 中文字幕巨乱亚洲| 粉嫩av一区二区三区在线播放| 精品日韩在线一区| 久久精品99国产精品日本| 91精品国产一区二区三区| 日韩影院精彩在线| 久久综合九色综合97婷婷| 久久精品久久综合| 日韩国产高清在线| 97久久久精品综合88久久| 国产精品久久久久久一区二区三区 | 国产偷v国产偷v亚洲高清| 国产成人日日夜夜| 中文字幕精品—区二区四季| 成人激情动漫在线观看| 国产三级精品视频| 九色综合国产一区二区三区| 日韩欧美一级片| 国产成人综合精品三级| 国产精品美女久久久久久| 99精品国产热久久91蜜凸| 亚洲乱码一区二区三区在线观看| 欧美在线影院一区二区| 日本午夜精品视频在线观看 | 中文字幕 久热精品 视频在线| 福利电影一区二区三区| 国产欧美日韩久久| 91蜜桃婷婷狠狠久久综合9色| 亚洲最大的成人av| 日韩西西人体444www| 国产一区二区在线观看免费| 国产欧美日韩精品a在线观看| 97久久超碰精品国产| 香蕉久久夜色精品国产使用方法 | 国产很黄免费观看久久| 日韩一区在线看| 538在线一区二区精品国产| 国产一区二区精品久久99| 国产精品每日更新在线播放网址| 在线观看亚洲精品视频| 日本aⅴ亚洲精品中文乱码| 中文字幕佐山爱一区二区免费| 色婷婷av一区二区三区gif| 免费在线观看一区| 日本一区二区综合亚洲| 欧美日韩中文国产| 国产一区二区三区久久悠悠色av | 激情六月婷婷综合| 亚洲欧洲一区二区在线播放| 91精品啪在线观看国产60岁| 国产91丝袜在线观看| 一区二区三区**美女毛片| 日韩午夜精品电影| 一本久久综合亚洲鲁鲁五月天 | 久久新电视剧免费观看| 久久精品国产一区二区三 | 欧美在线高清视频| 午夜不卡av在线| 久久久99精品免费观看不卡| 91黄视频在线观看| 国产精品影视在线观看| 亚洲最快最全在线视频| 国产日韩高清在线| 91精品国产综合久久香蕉的特点 | 国产**成人网毛片九色| 亚洲成人激情av| 中文字幕日韩精品一区| 日韩一区二区不卡| 色噜噜狠狠一区二区三区果冻| 紧缚捆绑精品一区二区| 亚洲成av人片| 亚洲美女淫视频| 国产拍欧美日韩视频二区| 日韩欧美一区在线| 欧美三级韩国三级日本三斤|