boolean expression handling routines

Functions

long org::endurox::TypedUbf.boolcbfDispatch (String funcname)
native boolean org::endurox::TypedUbf.Bboolev (BExprTree tree)
native boolean org::endurox::TypedUbf.Bqboolev (String expr)
native double org::endurox::TypedUbf.Bfloatev (BExprTree tree)

Detailed Description

Group of methods related to executing the boolean expression on UBF buffer. In case if compiled boolean expression is used, then AtmiCtx.Bboolco() shall be used.

Exceptions:
UbfBNOTFLDException p_ub is not fielded buffer or argument NULL.
UbfBEINVALException tree parameter is NULL.
UbfBALIGNERRException Corrupted buffer or pointing to not aligned memory area.
UbfBNOTFLDException Buffer not fielded, not correctly allocated or corrupted.
UbfBBADFLDException Invalid field id passed.
UbfBNOTPRESException Field not present.
UbfFMALLOCException Malloc failed.
UbfBSYNTAXException Synax error in script.
UbfBBADNAMEException Bad field name specified.

Function Documentation

native boolean org.endurox.TypedUbf.Bboolev ( BExprTree  tree  )  [inherited]

Evaluate boolean expression by given expression tree. For more information see Bboolev(3) manpage.

Parameters:
tree compiled boolean expression
Returns:
true or false
native double org.endurox.TypedUbf.Bfloatev ( BExprTree  tree  )  [inherited]

Evaluate compiled expression and return the result as a float value. For more information see Bfloatev(3) manpage

Parameters:
tree compiled boolean expression
Returns:
evaluated floating point value
long org.endurox.TypedUbf.boolcbfDispatch ( String  funcname  )  [package, inherited]

Dispatch callback function. The callback object must be registered in the ubfcbMap. If not there, then AtmiTPENOENTException exception is thrown

Parameters:
funcname function name received from expression evaluator.
Exceptions:
AtmiTPENOENTException if function is not registered in the system
native boolean org.endurox.TypedUbf.Bqboolev ( String  expr  )  [inherited]

Evaluate the boolean expression immediately and the release the compiled expression. For more information see Bboolco(3) and Bboolev(3) manpages.

Parameters:
expr boolean expression string
Returns:
true or false
 All Classes Namespaces Files Functions Variables

Generated on 29 Jan 2022 for endurox-java by  doxygen 1.6.1