| Modifier and Type | Field and Description |
|---|---|
| private final byte[] | _byteEncoding
immutable |
| private final int | |
| private static final Formula | |
| private static final int |
| Access | Constructor and Description |
|---|---|
| public | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public Formula | |
| public static Formula | |
| public int | Returns: total formula encoding length. The formula encoding includes:
tokenDataLength
|
| public int | Returns: the encoded length of the plain formula tokens. This does not include the leading ushort field, nor any trailing array constant data.This method is often used when the formula length does not appear immediately before the encoded token data. |
| public CellReference | Returns: the firstRow & firstColumn of an array formula or shared formula that this formula belongs to.null if this formula is not part of an array or shared formula.Gets the locator for the corresponding |
| public Map | |
| public Ptg[] | |
| public static Ptg[] | |
| public boolean | |
| public static Formula | read(int encodedTokenLen, LittleEndianInput in)
Convenience method for |
| public static Formula | Returns: A new formula object as read from the stream. Possibly empty, nevernull.number of bytes in the stream taken by the plain formula tokens encodedTokenLen, LittleEndianInput in, int the total number of bytes in the formula (includes trailing encoding
for array constants, but does not include 2 bytes for initial totalEncodedLen)ushort encodedTokenLen field.When there are no array constants present, |
| public void | serialize(LittleEndianOutput out)
Writes The formula encoding is includes:
|
| public void | |
| public void |
| _byteEncoding | back to summary |
|---|---|
| private final byte[] _byteEncoding immutable | |
| _encodedTokenLen | back to summary |
|---|---|
| private final int _encodedTokenLen | |
| EMPTY | back to summary |
|---|---|
| private static final Formula EMPTY | |
| MAX_ENCODED_LEN | back to summary |
|---|---|
| private static final int MAX_ENCODED_LEN | |
| Formula | back to summary |
|---|---|
| public Formula(Formula other) | |
| Formula | back to summary |
|---|---|
| private Formula(byte[] byteEncoding, int encodedTokenLen) | |
| copy | back to summary |
|---|---|
| public Formula copy() | |
| create | back to summary |
|---|---|
| public static Formula create(Ptg[] ptgs) Creates a Formula object from a supplied | |
| getEncodedSize | back to summary |
|---|---|
public int getEncodedSize()
| |
| getEncodedTokenSize | back to summary |
|---|---|
| public int getEncodedTokenSize() This method is often used when the formula length does not appear immediately before the encoded token data.
| |
| getExpReference | back to summary |
|---|---|
| public CellReference getExpReference() Gets the locator for the corresponding
| |
| getGenericProperties | back to summary |
|---|---|
| public Map Implements org.
| |
| getTokens | back to summary |
|---|---|
| public Ptg[] getTokens() | |
| getTokens | back to summary |
|---|---|
| public static Ptg[] getTokens(Formula formula) Gets the | |
| isSame | back to summary |
|---|---|
| public boolean isSame(Formula other) | |
| read | back to summary |
|---|---|
| public static Formula read(int encodedTokenLen, LittleEndianInput in) Convenience method for | |
| read | back to summary |
|---|---|
| public static Formula read(int encodedTokenLen, LittleEndianInput in, int totalEncodedLen) When there are no array constants present,
| |
| serialize | back to summary |
|---|---|
| public void serialize(LittleEndianOutput out) Writes The formula encoding is includes:
| |
| serializeArrayConstantData | back to summary |
|---|---|
| public void serializeArrayConstantData(LittleEndianOutput out) | |
| serializeTokens | back to summary |
|---|---|
| public void serializeTokens(LittleEndianOutput out) | |