createArray
CDocBuilderValue createArray(length: int)
Description
Creates an array value, an analogue of new Array (length)
in JS.
Please note, that for the
.docbuilder
file theCDocBuilderContext.createArray
method is not used.
Parameters
- length
int
- The array length.
Example
Java
CDocBuilder.initialize("");
CDocBuilder builder = new CDocBuilder();
CDocBuilderContext context = builder.getContext();
CDocBuilderValue arrayValue = context.createArray(2);
CDocBuilder.dispose();