Home > Class Reference > ENSLIB namespace > Ens.Rule.Compiler


class Ens.Rule.Compiler extends %Library.RegisteredObject

Legacy: Provided the ability to compile persistent rule definitions into routines.

Property Inventory (Including Private)

Method Inventory (Including Private)

Properties (Including Private)

property Code as %GlobalCharacterStream [ Transient ];
This holds the generated code
Property methods: CodeDelete(), CodeGet(), CodeGetObject(), CodeGetObjectId(), CodeGetSwizzled(), CodeIsValid(), CodeNewObject(), CodeOid(), CodeOpen(), CodeSet(), CodeSetObject(), CodeSetObjectId(), CodeUnSwizzle()

Methods (Including Private)

classmethod AllocateRoutineName() as %String [ Language = objectscript ]
Returns a routine name in which compiled rule can be placed.
classmethod CompileRule(pRuleDef As RuleDefinition, pRoutineName As %String) as %Status [ Language = objectscript ]
Generate executable code for the given rule definition and store it into routine pRoutineName.
classmethod DeleteRoutine(pName As %String) as %Status [ Language = objectscript ]
Delete the given routine from the rule cache
classmethod MakeRoutineName(id As %Integer) as %String [ Language = objectscript ]
Return a rule cache routine name Try to use values that collate
classmethod PurgeRuleCache() as %Status [ Language = objectscript ]
Delete all routines from Rule Cache

Inherited Members

Inherited Methods (Including Private)