|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jxl.biff.formula.ParseItem | +--jxl.biff.formula.Operator | +--jxl.biff.formula.Attribute
A special attribute control token - typically either a SUM function or an IF function
Field Summary | |
private static int |
gotoMask
|
private VariableArgFunction |
ifConditions
If this attribute is an IF functions, sets the associated if conditions |
private static int |
ifMask
|
private int |
options
The options used by the attribute |
private WorkbookSettings |
settings
The workbook settings |
private static int |
sumMask
|
private int |
word
The word contained in this attribute |
Fields inherited from class jxl.biff.formula.Operator |
operands |
Fields inherited from class jxl.biff.formula.ParseItem |
parent |
Constructor Summary | |
Attribute(StringFunction sf,
WorkbookSettings ws)
Constructor for use when this is called when parsing a string |
|
Attribute(WorkbookSettings ws)
Constructor |
Method Summary | |
(package private) byte[] |
getBytes()
Gets the token representation of this item in RPN. |
private byte[] |
getIf()
Gets the associated if conditions with this attribute |
void |
getOperands(java.util.Stack s)
Gets the operands for this operator from the stack |
(package private) int |
getPrecedence()
Gets the precedence for this operator. |
void |
getString(java.lang.StringBuffer buf)
Gets the string representation of this item |
boolean |
isFunction()
Queries whether this attribute is a function |
boolean |
isGoto()
Queries whether this attribute is a goto |
boolean |
isIf()
Queries whether this attribute is an IF |
boolean |
isSum()
Queries whether this attribute is a sum |
int |
read(byte[] data,
int pos)
Reads the ptg data from the array starting at the specified position |
(package private) void |
setIfConditions(VariableArgFunction vaf)
Sets the if conditions for this attribute, if it represents an IF function |
Methods inherited from class jxl.biff.formula.Operator |
add, getOperands |
Methods inherited from class jxl.biff.formula.ParseItem |
setParent |
Methods inherited from class java.lang.Object |
|
Field Detail |
private int options
private int word
private WorkbookSettings settings
private static final int sumMask
private static final int ifMask
private static final int gotoMask
private VariableArgFunction ifConditions
Constructor Detail |
public Attribute(WorkbookSettings ws)
public Attribute(StringFunction sf, WorkbookSettings ws)
sf
- the built in functionws
- the workbook settingsMethod Detail |
void setIfConditions(VariableArgFunction vaf)
vaf
- a VariableArgFunction
valuepublic int read(byte[] data, int pos)
read
in interface ParsedThing
data
- the RPN arraypos
- the current position in the array, excluding the ptg identifierpublic boolean isFunction()
public boolean isSum()
public boolean isIf()
public boolean isGoto()
public void getOperands(java.util.Stack s)
getOperands
in class Operator
public void getString(java.lang.StringBuffer buf)
ParseItem
getString
in class ParseItem
jxl.biff.formula.ParseItem
ws
- the workbook settingsbyte[] getBytes()
getBytes
in class ParseItem
private byte[] getIf()
int getPrecedence()
getPrecedence
in class Operator
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |