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 StatementcreateForStatementWithoutLineNumber(BasicBlock basicBlock, Statements statements, Expression condition, Statements subStatements) protected static BaseExpressionextractInit(Statements statements, int lineNumber) protected static ExpressionsextractUpdate(Statements statements, int firstLineNumber) static StatementmakeDoWhileLoop(BasicBlock loopBasicBlock, BasicBlock lastSubBasicBlock, Expression condition, Statements subStatements, Statements jumps) protected static StatementmakeForEachArray(Map<String, BaseType> typeBounds, LocalVariableMaker localVariableMaker, Statements statements, Expression condition, Statements subStatements) protected static StatementmakeForEachList(Map<String, BaseType> typeBounds, LocalVariableMaker localVariableMaker, Statements statements, Expression condition, Statements subStatements) protected static StatementmakeLabels(int loopIndex, int continueOffset, int breakOffset, Statement loop, Statements jumps) protected static StatementmakeLoop(Map<String, BaseType> typeBounds, LocalVariableMaker localVariableMaker, BasicBlock loopBasicBlock, Statements statements, Expression condition, Statements subStatements) static StatementmakeLoop(Map<String, BaseType> typeBounds, LocalVariableMaker localVariableMaker, BasicBlock loopBasicBlock, Statements statements, Expression condition, Statements subStatements, Statements jumps) protected static StatementmakeLoop(BasicBlock loopBasicBlock, Statements statements, Statements subStatements) static StatementmakeLoop(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)
-