Class LoopStatementMaker
java.lang.Object
org.jd.core.v1.service.converter.classfiletojavasyntax.util.LoopStatementMaker
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static Statement
createForStatementWithoutLineNumber
(BasicBlock basicBlock, Statements statements, Expression condition, Statements subStatements) protected static BaseExpression
extractInit
(Statements statements, int lineNumber) protected static Expressions
extractUpdate
(Statements statements, int firstLineNumber) static Statement
makeDoWhileLoop
(BasicBlock loopBasicBlock, BasicBlock lastSubBasicBlock, Expression condition, Statements subStatements, Statements jumps) protected static Statement
makeForEachArray
(Map<String, BaseType> typeBounds, LocalVariableMaker localVariableMaker, Statements statements, Expression condition, Statements subStatements) protected static Statement
makeForEachList
(Map<String, BaseType> typeBounds, LocalVariableMaker localVariableMaker, Statements statements, Expression condition, Statements subStatements) protected static Statement
makeLabels
(int loopIndex, int continueOffset, int breakOffset, Statement loop, Statements jumps) protected static Statement
makeLoop
(Map<String, BaseType> typeBounds, LocalVariableMaker localVariableMaker, BasicBlock loopBasicBlock, Statements statements, Expression condition, Statements subStatements) static Statement
makeLoop
(Map<String, BaseType> typeBounds, LocalVariableMaker localVariableMaker, BasicBlock loopBasicBlock, Statements statements, Expression condition, Statements subStatements, Statements jumps) protected static Statement
makeLoop
(BasicBlock loopBasicBlock, Statements statements, Statements subStatements) static Statement
makeLoop
(BasicBlock loopBasicBlock, Statements statements, Statements subStatements, Statements jumps)
-
Field Details
-
REMOVE_LAST_CONTINUE_STATEMENT_VISITOR
-
-
Constructor Details
-
LoopStatementMaker
public LoopStatementMaker()
-
-
Method Details
-
makeLoop
public static Statement makeLoop(Map<String, BaseType> typeBounds, LocalVariableMaker localVariableMaker, BasicBlock loopBasicBlock, Statements statements, Expression condition, Statements subStatements, Statements jumps) -
makeLoop
protected static Statement makeLoop(Map<String, BaseType> typeBounds, LocalVariableMaker localVariableMaker, BasicBlock loopBasicBlock, Statements statements, Expression condition, Statements subStatements) -
makeLoop
public static Statement makeLoop(BasicBlock loopBasicBlock, Statements statements, Statements subStatements, Statements jumps) -
makeLoop
protected static Statement makeLoop(BasicBlock loopBasicBlock, Statements statements, Statements subStatements) -
makeDoWhileLoop
public static Statement makeDoWhileLoop(BasicBlock loopBasicBlock, BasicBlock lastSubBasicBlock, Expression condition, Statements subStatements, Statements jumps) -
extractInit
-
extractUpdate
-
createForStatementWithoutLineNumber
protected static Statement createForStatementWithoutLineNumber(BasicBlock basicBlock, Statements statements, Expression condition, Statements subStatements) -
makeForEachArray
protected static Statement makeForEachArray(Map<String, BaseType> typeBounds, LocalVariableMaker localVariableMaker, Statements statements, Expression condition, Statements subStatements) -
makeForEachList
protected static Statement makeForEachList(Map<String, BaseType> typeBounds, LocalVariableMaker localVariableMaker, Statements statements, Expression condition, Statements subStatements) -
makeLabels
protected static Statement makeLabels(int loopIndex, int continueOffset, int breakOffset, Statement loop, Statements jumps)
-