7#include "fxjs/xfa/cjx_occur.h"
10#include "fxjs/xfa/cfxjse_value.h"
11#include "v8/include/v8-primitive.h"
12#include "xfa/fxfa/parser/cxfa_occur.h"
14CJX_Occur::CJX_Occur(CXFA_Occur* node) :
CJX_Node(node) {}
22void CJX_Occur::max(
v8::Isolate* pIsolate,
23 v8::Local<v8::Value>* pValue,
26 CXFA_Occur* occur =
static_cast<CXFA_Occur*>(
GetXFANode());
28 *pValue = fxv8::NewNumberHelper(pIsolate, occur
->GetMax());
35void CJX_Occur::min(
v8::Isolate* pIsolate,
36 v8::Local<v8::Value>* pValue,
39 CXFA_Occur* occur =
static_cast<CXFA_Occur*>(
GetXFANode());
41 *pValue = fxv8::NewNumberHelper(pIsolate, occur
->GetMin());
bool DynamicTypeIs(TypeTag eType) const override
CXFA_Node * GetXFANode() const
bool DynamicTypeIs(TypeTag eType) const override
void SetMax(int32_t iMax)
void SetMin(int32_t iMin)