📄 parenthesis.java
字号:
// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi
// Source File Name: Parenthesis.java
package jxl.biff.formula;
import java.util.Stack;
// Referenced classes of package jxl.biff.formula:
// Operator, ParseItem, ParsedThing, Token
class Parenthesis extends Operator
implements ParsedThing
{
public Parenthesis()
{
}
public int read(byte data[], int pos)
{
return 0;
}
public void getOperands(Stack s)
{
ParseItem pi = (ParseItem)s.pop();
add(pi);
}
public void getString(StringBuffer buf)
{
ParseItem operands[] = getOperands();
buf.append('(');
operands[0].getString(buf);
buf.append(')');
}
public void adjustRelativeCellReferences(int colAdjust, int rowAdjust)
{
ParseItem operands[] = getOperands();
operands[0].adjustRelativeCellReferences(colAdjust, rowAdjust);
}
void columnInserted(int sheetIndex, int col, boolean currentSheet)
{
ParseItem operands[] = getOperands();
operands[0].columnInserted(sheetIndex, col, currentSheet);
}
void columnRemoved(int sheetIndex, int col, boolean currentSheet)
{
ParseItem operands[] = getOperands();
operands[0].columnRemoved(sheetIndex, col, currentSheet);
}
void rowInserted(int sheetIndex, int row, boolean currentSheet)
{
ParseItem operands[] = getOperands();
operands[0].rowInserted(sheetIndex, row, currentSheet);
}
void rowRemoved(int sheetIndex, int row, boolean currentSheet)
{
ParseItem operands[] = getOperands();
operands[0].rowRemoved(sheetIndex, row, currentSheet);
}
Token getToken()
{
return Token.PARENTHESIS;
}
byte[] getBytes()
{
ParseItem operands[] = getOperands();
byte data[] = operands[0].getBytes();
byte newdata[] = new byte[data.length + 1];
System.arraycopy(data, 0, newdata, 0, data.length);
newdata[data.length] = getToken().getCode();
return newdata;
}
int getPrecedence()
{
return 4;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -