Class RemoveFinallyStatementsVisitor
- java.lang.Object
-
- org.jd.core.v1.service.converter.classfiletojavasyntax.visitor.RemoveFinallyStatementsVisitor
-
- All Implemented Interfaces:
StatementVisitor
public class RemoveFinallyStatementsVisitor extends java.lang.Object implements StatementVisitor
-
-
Field Summary
Fields Modifier and Type Field Description protected DeclaredSyntheticLocalVariableVisitor
declaredSyntheticLocalVariableVisitor
protected LocalVariableMaker
localVariableMaker
protected int
statementCountInFinally
protected int
statementCountToRemove
-
Constructor Summary
Constructors Constructor Description RemoveFinallyStatementsVisitor(LocalVariableMaker localVariableMaker)
-
Method Summary
-
-
-
Field Detail
-
declaredSyntheticLocalVariableVisitor
protected DeclaredSyntheticLocalVariableVisitor declaredSyntheticLocalVariableVisitor
-
localVariableMaker
protected LocalVariableMaker localVariableMaker
-
statementCountInFinally
protected int statementCountInFinally
-
statementCountToRemove
protected int statementCountToRemove
-
-
Constructor Detail
-
RemoveFinallyStatementsVisitor
public RemoveFinallyStatementsVisitor(LocalVariableMaker localVariableMaker)
-
-
Method Detail
-
init
public void init()
-
visit
public void visit(Statements statements)
- Specified by:
visit
in interfaceStatementVisitor
-
getInfiniteWhileStatement
private static WhileStatement getInfiniteWhileStatement(Statement statement)
-
visit
public void visit(IfElseStatement statement)
- Specified by:
visit
in interfaceStatementVisitor
-
visit
public void visit(SwitchStatement statement)
- Specified by:
visit
in interfaceStatementVisitor
-
visit
public void visit(TryStatement statement)
- Specified by:
visit
in interfaceStatementVisitor
-
removeFinallyStatements
public void removeFinallyStatements(Statements list)
-
visit
public void visit(DoWhileStatement statement)
- Specified by:
visit
in interfaceStatementVisitor
-
visit
public void visit(ForEachStatement statement)
- Specified by:
visit
in interfaceStatementVisitor
-
visit
public void visit(ForStatement statement)
- Specified by:
visit
in interfaceStatementVisitor
-
visit
public void visit(IfStatement statement)
- Specified by:
visit
in interfaceStatementVisitor
-
visit
public void visit(SynchronizedStatement statement)
- Specified by:
visit
in interfaceStatementVisitor
-
visit
public void visit(TryStatement.CatchClause statement)
- Specified by:
visit
in interfaceStatementVisitor
-
visit
public void visit(WhileStatement statement)
- Specified by:
visit
in interfaceStatementVisitor
-
visit
public void visit(SwitchStatement.LabelBlock statement)
- Specified by:
visit
in interfaceStatementVisitor
-
visit
public void visit(SwitchStatement.MultiLabelsBlock statement)
- Specified by:
visit
in interfaceStatementVisitor
-
visit
public void visit(AssertStatement statement)
- Specified by:
visit
in interfaceStatementVisitor
-
visit
public void visit(BreakStatement statement)
- Specified by:
visit
in interfaceStatementVisitor
-
visit
public void visit(ByteCodeStatement statement)
- Specified by:
visit
in interfaceStatementVisitor
-
visit
public void visit(CommentStatement statement)
- Specified by:
visit
in interfaceStatementVisitor
-
visit
public void visit(ContinueStatement statement)
- Specified by:
visit
in interfaceStatementVisitor
-
visit
public void visit(ExpressionStatement statement)
- Specified by:
visit
in interfaceStatementVisitor
-
visit
public void visit(LabelStatement statement)
- Specified by:
visit
in interfaceStatementVisitor
-
visit
public void visit(LambdaExpressionStatement statement)
- Specified by:
visit
in interfaceStatementVisitor
-
visit
public void visit(LocalVariableDeclarationStatement statement)
- Specified by:
visit
in interfaceStatementVisitor
-
visit
public void visit(ReturnExpressionStatement statement)
- Specified by:
visit
in interfaceStatementVisitor
-
visit
public void visit(ReturnStatement statement)
- Specified by:
visit
in interfaceStatementVisitor
-
visit
public void visit(SwitchStatement.DefaultLabel statement)
- Specified by:
visit
in interfaceStatementVisitor
-
visit
public void visit(SwitchStatement.ExpressionLabel statement)
- Specified by:
visit
in interfaceStatementVisitor
-
visit
public void visit(ThrowStatement statement)
- Specified by:
visit
in interfaceStatementVisitor
-
visit
public void visit(TryStatement.Resource statement)
- Specified by:
visit
in interfaceStatementVisitor
-
visit
public void visit(TypeDeclarationStatement statement)
- Specified by:
visit
in interfaceStatementVisitor
-
safeAccept
protected void safeAccept(BaseStatement list)
-
safeAcceptListStatement
protected void safeAcceptListStatement(java.util.List<? extends Statement> list)
-
-