Package org.openl.rules.tbasic.compile
Class LabelManager
- java.lang.Object
-
- org.openl.rules.tbasic.compile.LabelManager
-
public class LabelManager extends Object
- Author:
- User
-
-
Constructor Summary
Constructors Constructor Description LabelManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfinishOperationsSet()voidgenerateAllLabels(String[] labelInstructions)StringgenerateLabel(org.openl.rules.tbasic.compile.LabelManager.LabelType labelType)StringgetLabelByInstruction(String labelInstruction)booleanisLabelInstruction(String labelInstruction)booleanisReturnInstruction(String labelInstruction)Checks if the label instructions represents are return instruction.voidstartOperationsSet(boolean isLoopOperationSet)
-
-
-
Method Detail
-
finishOperationsSet
public void finishOperationsSet()
-
generateAllLabels
public void generateAllLabels(String[] labelInstructions)
-
generateLabel
public String generateLabel(org.openl.rules.tbasic.compile.LabelManager.LabelType labelType)
-
isLabelInstruction
public boolean isLabelInstruction(String labelInstruction)
-
startOperationsSet
public void startOperationsSet(boolean isLoopOperationSet)
-
isReturnInstruction
public boolean isReturnInstruction(String labelInstruction)
Checks if the label instructions represents are return instruction.- Parameters:
labelInstruction-- Returns:
- true if label instruction is a return one.
-
-