Uses of Class
de.inetsoftware.jwebassembly.module.BranchManager.ParsedBlock
Packages that use BranchManager.ParsedBlock
-
Uses of BranchManager.ParsedBlock in de.inetsoftware.jwebassembly.module
Subclasses of BranchManager.ParsedBlock in de.inetsoftware.jwebassembly.moduleModifier and TypeClassDescriptionprivate static class
Description of a parsed IF operation.private static class
Description of a parsed switch structure.private static class
Description of a parsed try-Catch structure.Fields in de.inetsoftware.jwebassembly.module with type parameters of type BranchManager.ParsedBlockModifier and TypeFieldDescriptionprivate final ArrayList
<BranchManager.ParsedBlock> BranchManager.allParsedOperations
private final HashMap
<Integer, BranchManager.ParsedBlock> BranchManager.loops
Methods in de.inetsoftware.jwebassembly.module with parameters of type BranchManager.ParsedBlockModifier and TypeMethodDescriptionprivate boolean
BranchManager.addBreakIfLoopContinue
(BranchManager.BranchNode parent, BranchManager.ParsedBlock startBlock) Add a break to the node if the block jump to the continue position of an outer loop.private void
BranchManager.calculateGoto
(BranchManager.BranchNode parent, BranchManager.ParsedBlock gotoBlock, List<BranchManager.ParsedBlock> parsedOperations) The not consumed GOTO operators of IF THEN ELSE must be break or continue in a loop.private void
BranchManager.calculateLoop
(BranchManager.BranchNode parent, BranchManager.ParsedBlock loopBlock, List<BranchManager.ParsedBlock> parsedOperations) Calculate the needed nodes for a loop.int
BranchManager.ParsedBlock.compareTo
(BranchManager.ParsedBlock o) private void
BranchManager.convertToLoop
(BranchManager.ParsedBlock gotoBlock, int conditionStart, int conditionEnd) Convert the GOTO block with condition at the end into a loop block and move the condition from the end to the start like wasm it required.Method parameters in de.inetsoftware.jwebassembly.module with type arguments of type BranchManager.ParsedBlockModifier and TypeMethodDescriptionprivate void
BranchManager.addLoops
(List<BranchManager.ParsedBlock> parsedOperations) In the compiled Java byte code there is no marker for the start of loop.private void
BranchManager.calculate
(BranchManager.BranchNode parent, List<BranchManager.ParsedBlock> parsedOperations) Calculate the branch tree for the given branch and parsed sub operations.private void
BranchManager.calculateGoto
(BranchManager.BranchNode parent, BranchManager.ParsedBlock gotoBlock, List<BranchManager.ParsedBlock> parsedOperations) The not consumed GOTO operators of IF THEN ELSE must be break or continue in a loop.private void
BranchManager.calculateIf
(BranchManager.BranchNode parent, BranchManager.IfParsedBlock startBlock, List<BranchManager.ParsedBlock> parsedOperations) Calculate the ELSE and END position of an IF control structure.private void
BranchManager.calculateLoop
(BranchManager.BranchNode parent, BranchManager.ParsedBlock loopBlock, List<BranchManager.ParsedBlock> parsedOperations) Calculate the needed nodes for a loop.private void
BranchManager.calculateSwitch
(BranchManager.BranchNode parent, BranchManager.SwitchParsedBlock switchBlock, List<BranchManager.ParsedBlock> parsedOperations) Calculate the blocks of a switch.private void
BranchManager.calculateTry
(BranchManager.BranchNode parent, BranchManager.TryCatchParsedBlock tryBlock, List<BranchManager.ParsedBlock> parsedOperations) Calculate the needed nodes for try/catch Sample: The follow Java code:private void
BranchManager.calculateTrySubOperations
(BranchManager.BranchNode catchNode, BranchManager.BranchNode node, List<BranchManager.ParsedBlock> parsedOperations) Calculate branch operations inside the CATCH/FINALLY blocks.private static void
BranchManager.normalizeEmptyThenBlocks
(List<BranchManager.ParsedBlock> parsedOperations) Normalize all empty THEN blocks like:private BranchManager.IfPositions
BranchManager.searchElsePosition
(BranchManager.IfParsedBlock startBlock, List<BranchManager.ParsedBlock> parsedOperations) Search the start positions of the THEN and ELSE branch from an IF control structure.