Skip to main content

%CSP.RuleBlock

Class %CSP.RuleBlock Extends %CSP.Rule [ System = 3 ]

The %CSP.RuleBlock class is the super class of all rule generated classes for block structured tags, e.g. csp:if, that represent elements within the DOM model.

Properties

Container

Property Container As %CSP.RuleBlock;

The object instance for the containing block or "".

EndLabel

Property EndLabel As %String;

The label used for the end of this block, e.g. the /csp:if clause for csp:if or after the loop for csp:while

NextLabel

Property NextLabel As %String;

The label used for the next block, e.g. the csp:else clause for csp:if or the next iteration for csp:while

Methods

NewBlock

Method NewBlock()

Get a new block and associated labels for this nested code block.

RemoveBlock

Method RemoveBlock()

Remove the this nested block.

GetCurrentBlock

Method GetCurrentBlock() As %CSP.RuleBlock

Get current block without creating a new one.

GetNewLabel

Method GetNewLabel() As %String

Get a new block label.