public final class ExpressionParser extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static short |
ptgAdd |
static short |
ptgArea |
static short |
ptgArea3d |
static short |
ptgAreaErr |
static short |
ptgAreaErr3d |
static short |
ptgAreaN |
static short |
ptgArray |
static short |
ptgAtr |
static short |
ptgBool |
static short |
ptgConcat |
static short |
ptgDiv |
static short |
ptgEndSheet |
static short |
ptgEQ |
static short |
ptgErr |
static short |
ptgExp |
static short |
ptgFunc |
static short |
ptgFuncVar |
static short |
ptgGE |
static short |
ptgGT |
static short |
ptgInt |
static short |
ptgIsect |
static short |
ptgLE |
static short |
ptgLT |
static short |
ptgMemArea |
static short |
ptgMemAreaA |
static short |
ptgMemAreaN |
static short |
ptgMemAreaNV |
static short |
ptgMemErr |
static short |
ptgMemFunc |
static short |
ptgMissArg |
static short |
ptgMlt |
static short |
ptgName |
static short |
ptgNameX |
static short |
ptgNE |
static short |
ptgNum |
static short |
ptgParen |
static short |
ptgPercent |
static short |
ptgPower |
static short |
ptgRange |
static short |
ptgRef |
static short |
ptgRef3d |
static short |
ptgRefErr |
static short |
ptgRefErr3d |
static short |
ptgRefN |
static short |
ptgStr |
static short |
ptgSub |
static short |
ptgUMinus |
static short |
ptgUnion |
static short |
ptgUPlus |
| Constructor and Description |
|---|
ExpressionParser() |
| Modifier and Type | Method and Description |
|---|---|
static Ptg[] |
getCellRangePtgs(Stack expression)
getCellRangePtgs handles locating which cells are refereced in an expression stack.
|
static int |
getExpressionLocByLocation(String loc,
Stack expression)
returns the position in the expression stack for the ptg associated with this location
|
static int |
getExpressionLocByPtg(Ptg ptg,
Stack expression)
returns the position in the expression stack for the desired ptg
|
static List<Ptg> |
getPtgsByLocation(String loc,
Stack expression) |
static Stack |
parseExpression(byte[] function,
XLSRecord rec)
Parse the byte array, create component Ptg's and insert
them into a stack.
|
static Stack |
parseExpression(byte[] function,
XLSRecord rec,
int expressionLen)
Parse the byte array, create component Ptg's and insert them into
a stack.
|
public static final short ptgExp
public static final short ptgAdd
public static final short ptgSub
public static final short ptgMlt
public static final short ptgDiv
public static final short ptgPower
public static final short ptgConcat
public static final short ptgLT
public static final short ptgLE
public static final short ptgEQ
public static final short ptgGE
public static final short ptgGT
public static final short ptgNE
public static final short ptgIsect
public static final short ptgUnion
public static final short ptgRange
public static final short ptgUPlus
public static final short ptgUMinus
public static final short ptgPercent
public static final short ptgParen
public static final short ptgAtr
public static final short ptgMissArg
public static final short ptgStr
public static final short ptgEndSheet
public static final short ptgErr
public static final short ptgBool
public static final short ptgInt
public static final short ptgNum
public static final short ptgArray
public static final short ptgFunc
public static final short ptgFuncVar
public static final short ptgName
public static final short ptgRef
public static final short ptgArea
public static final short ptgMemArea
public static final short ptgMemErr
public static final short ptgMemFunc
public static final short ptgRefErr
public static final short ptgAreaErr
public static final short ptgRefN
public static final short ptgAreaN
public static final short ptgNameX
public static final short ptgRef3d
public static final short ptgArea3d
public static final short ptgRefErr3d
public static final short ptgAreaErr3d
public static final short ptgMemAreaA
public static final short ptgMemAreaNV
public static final short ptgMemAreaN
public static Stack parseExpression(byte[] function, XLSRecord rec)
function - rec - public static Stack parseExpression(byte[] function, XLSRecord rec, int expressionLen)
function - rec - expressionLen - public static List<Ptg> getPtgsByLocation(String loc, Stack expression) throws FormulaNotFoundException
FormulaNotFoundExceptionpublic static int getExpressionLocByLocation(String loc, Stack expression) throws FormulaNotFoundException
loc - Stringexpression - FormulaNotFoundExceptionpublic static int getExpressionLocByPtg(Ptg ptg, Stack expression) throws FormulaNotFoundException
ptg - Ptg to lookk upexpression - FormulaNotFoundExceptionpublic static Ptg[] getCellRangePtgs(Stack expression) throws FormulaNotFoundException
FormulaNotFoundExceptionCopyright © 2002–2019 Starter Inc.. All rights reserved.