Private #containAttribute selectors for names containing the value.
Private #endAttribute selectors for names ending with the value.
Private #lastLast generated name.
Private #startAttribute selectors for names starting with the value.
Readonly [toReadonly sizeStatic Readonly [species]Private #generateAdd an attribute selector to be applied to the renaming process after this call.
node = node.addAttributeSelector({
operator: OPERATOR.EXACT_OR_BEGINS_FOLLOWED_BY_HYPHEN,
value : "col",
});
Maps the given attribute to an already generated one or generate a new one.
const { operator, value } = node.attributeSelector({
operator: OPERATOR.EXACT_OR_BEGINS_FOLLOWED_BY_HYPHEN,
value : "col",
});
Optional thisArg: anyConverts the current node instance to a JSON compatible object.
const obj = node.toJSON();
const obj = JSON.stringify(node);
Static fromJSONCreates a new node instance from the JSON output.
const node = Node.fromJSON(obj);
Generated using TypeDoc
New Node instance.
Example