Search in sources :

Example 1 with BlockStatement

use of com.strobel.decompiler.languages.java.ast.BlockStatement in project j2objc by google.

the class MethodTranslator method visitBlockStatement.

@Override
public TreeNode visitBlockStatement(BlockStatement node, Void data) {
    Block block = new Block();
    visitChildren(node, (TreeNode tn) -> block.addStatement((Statement) tn));
    return block;
}
Also used : TreeNode(com.google.devtools.j2objc.ast.TreeNode) ExpressionStatement(com.google.devtools.j2objc.ast.ExpressionStatement) ForStatement(com.google.devtools.j2objc.ast.ForStatement) EnhancedForStatement(com.google.devtools.j2objc.ast.EnhancedForStatement) BlockStatement(com.strobel.decompiler.languages.java.ast.BlockStatement) BreakStatement(com.google.devtools.j2objc.ast.BreakStatement) TryCatchStatement(com.strobel.decompiler.languages.java.ast.TryCatchStatement) ContinueStatement(com.google.devtools.j2objc.ast.ContinueStatement) IfElseStatement(com.strobel.decompiler.languages.java.ast.IfElseStatement) DoStatement(com.google.devtools.j2objc.ast.DoStatement) VariableDeclarationStatement(com.google.devtools.j2objc.ast.VariableDeclarationStatement) WhileStatement(com.google.devtools.j2objc.ast.WhileStatement) Statement(com.google.devtools.j2objc.ast.Statement) GotoStatement(com.strobel.decompiler.languages.java.ast.GotoStatement) DoWhileStatement(com.strobel.decompiler.languages.java.ast.DoWhileStatement) IfStatement(com.google.devtools.j2objc.ast.IfStatement) ReturnStatement(com.google.devtools.j2objc.ast.ReturnStatement) ForEachStatement(com.strobel.decompiler.languages.java.ast.ForEachStatement) Block(com.google.devtools.j2objc.ast.Block)

Aggregations

Block (com.google.devtools.j2objc.ast.Block)1 BreakStatement (com.google.devtools.j2objc.ast.BreakStatement)1 ContinueStatement (com.google.devtools.j2objc.ast.ContinueStatement)1 DoStatement (com.google.devtools.j2objc.ast.DoStatement)1 EnhancedForStatement (com.google.devtools.j2objc.ast.EnhancedForStatement)1 ExpressionStatement (com.google.devtools.j2objc.ast.ExpressionStatement)1 ForStatement (com.google.devtools.j2objc.ast.ForStatement)1 IfStatement (com.google.devtools.j2objc.ast.IfStatement)1 ReturnStatement (com.google.devtools.j2objc.ast.ReturnStatement)1 Statement (com.google.devtools.j2objc.ast.Statement)1 TreeNode (com.google.devtools.j2objc.ast.TreeNode)1 VariableDeclarationStatement (com.google.devtools.j2objc.ast.VariableDeclarationStatement)1 WhileStatement (com.google.devtools.j2objc.ast.WhileStatement)1 BlockStatement (com.strobel.decompiler.languages.java.ast.BlockStatement)1 DoWhileStatement (com.strobel.decompiler.languages.java.ast.DoWhileStatement)1 ForEachStatement (com.strobel.decompiler.languages.java.ast.ForEachStatement)1 GotoStatement (com.strobel.decompiler.languages.java.ast.GotoStatement)1 IfElseStatement (com.strobel.decompiler.languages.java.ast.IfElseStatement)1 TryCatchStatement (com.strobel.decompiler.languages.java.ast.TryCatchStatement)1