public class NSFFormula extends NSFHandle
Constructor and Description |
---|
NSFFormula(DominoAPI api,
byte[] data)
Constructs a formula object using the provided compiled formula data in memory.
|
NSFFormula(NSFSession session,
long handle,
int length) |
NSFFormula(NSFSession session,
String formulaText) |
Modifier and Type | Method and Description |
---|---|
protected void |
doFree()
This method is called when the final reference to this object is freed.
|
long |
getCompiledFormulaPtr() |
String |
getFormulaText(boolean selectionFormula) |
int |
getLength() |
NSFBase |
getParent() |
boolean |
isRefValid()
Checks whether the object's inner reference is valid.
|
_checkRefValidity, equals, getHandle, getSession, hashCode, setHandle, toString
addChild, addChildStruct, debugPrintChildHierarchy, finalize, free, free, free, getAPI, getChildObjectCount, getChildObjectCount, getChildStructCount, isFreed, isTraceCreation, removeChild, removeChildStruct, removeFromParent, retain, setNeedsFree, setTraceCreation
public NSFFormula(NSFSession session, String formulaText) throws FormulaException, DominoException
FormulaException
DominoException
public NSFFormula(NSFSession session, long handle, int length)
public NSFFormula(DominoAPI api, byte[] data)
data
parameter's contents into a new array in memory.
Unlike the other constructors, this does not actually use a native Domino handle.
api
- the DominoAPI
instance to use for operationsdata
- the in-memory compiled formula datapublic long getCompiledFormulaPtr()
public int getLength()
public String getFormulaText(boolean selectionFormula) throws DominoException
selectionFormula
- whether or not the formula represents a view selection formulaDominoException
- if there is a problem decompiling the formulapublic boolean isRefValid()
NSFBase
isRefValid
in class NSFHandle
protected void doFree()
NSFBase
Implemented classes are expected to release any memory or network resources they have open. They are also expected to write this defensively, allowing the method to be called multiple times on the same object without problem.
Copyright © 2014–2018. All rights reserved.