Class ScopeInstr
java.lang.Object
org.ek9lang.compiler.ir.IRInstr
org.ek9lang.compiler.ir.ScopeInstr
-
Method Summary
Modifier and TypeMethodDescriptionaddOperand
(String operand) Add operand to this instruction.addOperands
(String... operands) Add multiple operands to this instruction.static ScopeInstr
Create scope enter instruction: SCOPE_ENTER scope_id.static ScopeInstr
Create scope enter instruction with debug info: SCOPE_ENTER scope_id.static ScopeInstr
Create scope exit instruction: SCOPE_EXIT scope_id.static ScopeInstr
Create scope exit instruction with debug info: SCOPE_EXIT scope_id.Get object name for SCOPE_REGISTER instructions.Get scope ID for this scope instruction.static ScopeInstr
Create scope register instruction: SCOPE_REGISTER object, scope_id Register object for automatic cleanup when scope exits.static ScopeInstr
Create scope register instruction with debug info: SCOPE_REGISTER object, scope_id.Methods inherited from class org.ek9lang.compiler.ir.IRInstr
accept, equals, getDebugInfo, getOpcode, getOperands, getResult, hashCode, hasResult, isControlFlow, isMemoryManagement, isMethodCall, toString
-
Method Details
-
enter
Create scope enter instruction: SCOPE_ENTER scope_id. Establishes a new memory management scope for exception safety. -
enter
Create scope enter instruction with debug info: SCOPE_ENTER scope_id. -
exit
Create scope exit instruction: SCOPE_EXIT scope_id. Automatically RELEASE all objects registered in this scope. -
exit
Create scope exit instruction with debug info: SCOPE_EXIT scope_id. -
register
Create scope register instruction: SCOPE_REGISTER object, scope_id Register object for automatic cleanup when scope exits. -
register
Create scope register instruction with debug info: SCOPE_REGISTER object, scope_id. -
addOperand
Description copied from class:IRInstr
Add operand to this instruction.- Overrides:
addOperand
in classIRInstr
-
addOperands
Description copied from class:IRInstr
Add multiple operands to this instruction.- Overrides:
addOperands
in classIRInstr
-
getScopeId
Get scope ID for this scope instruction. -
getObject
Get object name for SCOPE_REGISTER instructions.
-