Uses of Interface
com.pnfsoftware.jeb.core.units.code.java.IJavaBlock
Packages that use IJavaBlock
Package
Description
Types used to manipulate 
dexdec-generated (Dex decompiler) Java Abstract Syntax Tree
 (AST) objects.- 
Uses of IJavaBlock in com.pnfsoftware.jeb.core.units.code.java
Methods in com.pnfsoftware.jeb.core.units.code.java that return IJavaBlockModifier and TypeMethodDescriptionIJavaElementFactory.createBlock()IJavaElementFactory.createBlock(IJavaStatement firstStatement) IJavaBlock.duplicate()IJavaCatchBlock.getBlock()IJavaDoWhile.getBody()Get the loop body.IJavaFor.getBody()Get the loop body.IJavaForEach.getBody()Get the loop body.IJavaMethod.getBody()Get the body of the method.IJavaSynchronizedBlock.getBody()Get the body.IJavaWhile.getBody()Get the loop body.IJavaIf.getBranchBody(int index) Get a branch (if, else-if) body.IJavaSwitch.getCaseBody(int key) Get a case body by key.IJavaSwitch.getCaseBody(String stringkey) IJavaTry.getCatchBody(int index) Get a catch body.IJavaIf.getDefaultBlock()Get the default branch (else) body, if any.IJavaSwitch.getDefaultBlock()Get the default case block.IJavaTry.getFinallyBlock()Get the finally block, if there is one.IJavaTry.getTryBody()Get the try block.IJavaIf.setDefaultBlock(IJavaBlock b) Set the default 'else' block.Methods in com.pnfsoftware.jeb.core.units.code.java that return types with arguments of type IJavaBlockModifier and TypeMethodDescriptionIJavaCompound.getBlocks()Get the list of blocks contained in this compound.IJavaSwitch.getCaseBodies()Get the case bodies.Methods in com.pnfsoftware.jeb.core.units.code.java with parameters of type IJavaBlockModifier and TypeMethodDescriptionvoidIJavaBlock.addAll(IJavaBlock b) voidIJavaIf.addBranch(IJavaPredicate p, IJavaBlock b) Add an alternative block (if or else-if) to this element.voidIJavaSwitch.addCase(List<Integer> keys, IJavaBlock b) Add a case to the switchvoidIJavaSwitch.addCase(Map<Integer, String> casekeymap, IJavaBlock b) voidIJavaTry.addCatchBlock(int index, IJavaType type, List<IJavaType> addTypes, IJavaIdentifier ident, IJavaDefinition def, IJavaBlock block) voidIJavaTry.addCatchBlock(IJavaType type, List<IJavaType> addTypes, IJavaIdentifier ident, IJavaDefinition def, IJavaBlock block) voidIJavaBlock.addMultiple(IJavaBlock src, int start, int end, boolean removeSourceStatements) IJavaElementFactory.createDoWhile(IJavaBlock b, IJavaPredicate p) IJavaElementFactory.createFor(IJavaStatement pre, IJavaPredicate p, IJavaStatement post, IJavaBlock b) IJavaElementFactory.createForEach(IJavaDefinition var, IJavaExpression iterable, IJavaBlock b) IJavaElementFactory.createIf(IJavaPredicate p, IJavaBlock b) IJavaElementFactory.createSynchronizedBlock(IJavaExpression lock, IJavaBlock b) IJavaElementFactory.createTry(IJavaBlock b) IJavaElementFactory.createWhile(IJavaPredicate p, IJavaBlock b) static IJavaStatementJUtil.getFirstRealStatement(IJavaBlock b, int i) This convenience method attempts to determine the next "real" statement to be executed in the block, starting at the provided index 'i'.voidIJavaBlock.insertAll(int index, IJavaBlock b) Insert all statements of another block in this block.voidIJavaIf.insertBranch(int index, IJavaPredicate p, IJavaBlock b) Insert a branch (if, else-if) to this statement.voidIJavaBlock.insertMultiple(int index, IJavaBlock src, int start, int end, boolean removeSourceStatements) static IJavaCatchBlockJUtil.isTryCatchall(IJavaBlock b, int i) Determine whether the provided statement is a try-catch-all (single catch block, that catches all exceptions)static voidJUtil.moveStatements(IJavaBlock src, int srcbegin, int srcend, IJavaBlock dst, int dstindex) abstract intAbstractJBlockOptimizer.optimizeBlock(IJavaBlock b, IJavaElement parent) Optimize a block of AST code.protected intAbstractJBlockOptimizer.performInternal(IJavaBlock b, IJavaElement parent) The default implementation callsAbstractJBlockOptimizer.optimizeBlock(IJavaBlock, IJavaElement)on all blocks of the AST method to be optimized.protected intAbstractJStatementOptimizer.performInternal(IJavaBlock b) The default implementation callsAbstractJStatementOptimizer.optimizeStatement(IJavaStatement)on all statements of the AST method to be optimized.static intJUtil.removeStatementsDeep(IJavaBlock b, Predicate<IJavaStatement> checker) voidIJavaCatchBlock.setBlock(IJavaBlock block) voidIJavaDoWhile.setBody(IJavaBlock b) Set the body.voidIJavaFor.setBody(IJavaBlock b) Set the loop post-iteration statement.voidIJavaForEach.setBody(IJavaBlock b) Set the loop post-iteration statement.voidIJavaSynchronizedBlock.setBody(IJavaBlock b) Set the body.voidIJavaWhile.setBody(IJavaBlock b) Set the loop body.voidIJavaIf.setBranchBody(int index, IJavaBlock b) Set a branch (if, else-if) body.IJavaIf.setDefaultBlock(IJavaBlock b) Set the default 'else' block.voidIJavaSwitch.setDefaultBlock(IJavaBlock b) Set the default case block for the switch.voidIJavaTry.setFinallyBlock(IJavaBlock blk) voidIJavaTry.setTryBody(IJavaBlock b) Set the try block protected by catch clauses.