endurox-java
 All Classes Namespaces Files Functions Variables Groups Pages
Functions
boolean expression handling routines

Functions

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
UbfBNOTFLDExceptionp_ub is not fielded buffer or argument NULL.
UbfBEINVALExceptiontree parameter is NULL.
UbfBALIGNERRExceptionCorrupted buffer or pointing to not aligned memory area.
UbfBNOTFLDExceptionBuffer not fielded, not correctly allocated or corrupted.
UbfBBADFLDExceptionInvalid field id passed.
UbfBNOTPRESExceptionField not present.
UbfFMALLOCExceptionMalloc failed.
UbfBSYNTAXExceptionSynax error in script.
UbfBBADNAMEExceptionBad field name specified.

Function Documentation

native boolean org.endurox.TypedUbf.Bboolev ( BExprTree  tree)

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

Parameters
treecompiled boolean expression
Returns
true or false
native double org.endurox.TypedUbf.Bfloatev ( BExprTree  tree)

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

Parameters
treecompiled boolean expression
Returns
evaluated floating point value
native boolean org.endurox.TypedUbf.Bqboolev ( String  expr)

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

Parameters
exprboolean expression string
Returns
true or false