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 TypeMethodDescriptionvoid
IJavaBlock.addAll
(IJavaBlock b) void
IJavaIf.addBranch
(IJavaPredicate p, IJavaBlock b) Add an alternative block (if or else-if) to this element.void
IJavaSwitch.addCase
(List<Integer> keys, IJavaBlock b) Add a case to the switchvoid
IJavaSwitch.addCase
(Map<Integer, String> casekeymap, IJavaBlock b) void
IJavaTry.addCatchBlock
(int index, IJavaType type, List<IJavaType> addTypes, IJavaIdentifier ident, IJavaDefinition def, IJavaBlock block) void
IJavaTry.addCatchBlock
(IJavaType type, List<IJavaType> addTypes, IJavaIdentifier ident, IJavaDefinition def, IJavaBlock block) void
IJavaBlock.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 IJavaStatement
JUtil.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'.void
IJavaBlock.insertAll
(int index, IJavaBlock b) Insert all statements of another block in this block.void
IJavaIf.insertBranch
(int index, IJavaPredicate p, IJavaBlock b) Insert a branch (if, else-if) to this statement.void
IJavaBlock.insertMultiple
(int index, IJavaBlock src, int start, int end, boolean removeSourceStatements) static IJavaCatchBlock
JUtil.isTryCatchall
(IJavaBlock b, int i) Determine whether the provided statement is a try-catch-all (single catch block, that catches all exceptions)static void
JUtil.moveStatements
(IJavaBlock src, int srcbegin, int srcend, IJavaBlock dst, int dstindex) abstract int
AbstractJBlockOptimizer.optimizeBlock
(IJavaBlock b, IJavaElement parent) Optimize a block of AST code.protected int
AbstractJBlockOptimizer.performInternal
(IJavaBlock b, IJavaElement parent) The default implementation callsAbstractJBlockOptimizer.optimizeBlock(IJavaBlock, IJavaElement)
on all blocks of the AST method to be optimized.protected int
AbstractJStatementOptimizer.performInternal
(IJavaBlock b) The default implementation callsAbstractJStatementOptimizer.optimizeStatement(IJavaStatement)
on all statements of the AST method to be optimized.static int
JUtil.removeStatementsDeep
(IJavaBlock b, Predicate<IJavaStatement> checker) void
IJavaCatchBlock.setBlock
(IJavaBlock block) void
IJavaDoWhile.setBody
(IJavaBlock b) Set the body.void
IJavaFor.setBody
(IJavaBlock b) Set the loop post-iteration statement.void
IJavaForEach.setBody
(IJavaBlock b) Set the loop post-iteration statement.void
IJavaSynchronizedBlock.setBody
(IJavaBlock b) Set the body.void
IJavaWhile.setBody
(IJavaBlock b) Set the loop body.void
IJavaIf.setBranchBody
(int index, IJavaBlock b) Set a branch (if, else-if) body.IJavaIf.setDefaultBlock
(IJavaBlock b) Set the default 'else' block.void
IJavaSwitch.setDefaultBlock
(IJavaBlock b) Set the default case block for the switch.void
IJavaTry.setFinallyBlock
(IJavaBlock blk) void
IJavaTry.setTryBody
(IJavaBlock b) Set the try block protected by catch clauses.