Note: This class is included because it is needed by
other parts of the library. You should not use this or any other class within
this package within your applications as a future version will
be incompatible. If you are interested in this functionality
please contact InterSystems.
This is the base class for nodes within an XGEN document.
A node represents a specific action within an XGEN document.
for an overview of XGEN.
method %OnGenerateCode(pTargetClass As %Dictionary.CompiledClass, pCode As %Stream.TmpCharacter, pDocument As %XGEN.AbstractDocument)
Generate code for this node.
This method is called when a class containing an XGEN
document is compiled.
pTargetClass is the class that contains the XGEN document.
pCode is a stream containing the generated code.
pDocument is the top-level XGEN document object that contains this node.
A subclass will provide an implementation of this method that will
generate specific lines of code.
Do pCode.WriteLine(..%Indent()_"Set " _ ..target _ "=" _ $$$quote(..value))