| java.lang.Object net.sf.jdec.blockhelpers.BranchHelper
BranchHelper | public class BranchHelper (Code) | | Helper functions for loops/switches
author: sbelur |
Method Summary | |
public static void | addBranchLabel(int classIndex, int i, IFBlock ifst, int currentForIndex, byte[] info) | public static boolean | addReturnInIfBlock(int current, IFBlock ifb) | public static boolean | addReturnInIfBlock(int current) | public static Case | checkForEnclosingSwitchCase(byte[] info, IFBlock ifst, int currentForIndex) | public static boolean | checkForInvalidDefault(int defStart, int switchStart) | public static boolean | checkForReturn(byte[] code, int i) | public static boolean | continueFindingBranchType(int i, byte info) | public static java.lang.String | getBranchType(int if_else_begin, int GotoStart, byte[] info, ArrayList loops, StringBuffer sb) | public static java.lang.String | getBranchType(int if_else_begin, int GotoStart, byte[] info, ArrayList loops, StringBuffer sb, boolean b) | public static java.lang.String | getBranchTypeAtI(int i, IFBlock ifst, StringBuffer sb) | public static int | getReqdGoto(int start, byte[] info, int end) | public static int | getSwitchOffset(byte[] info, int counter, java.lang.String lbl) | public static java.lang.String | setJDecLabelForContinue(int start, int end) |
addBranchLabel | public static void addBranchLabel(int classIndex, int i, IFBlock ifst, int currentForIndex, byte[] info)(Code) | | |
addReturnInIfBlock | public static boolean addReturnInIfBlock(int current, IFBlock ifb)(Code) | | |
addReturnInIfBlock | public static boolean addReturnInIfBlock(int current)(Code) | | |
checkForEnclosingSwitchCase | public static Case checkForEnclosingSwitchCase(byte[] info, IFBlock ifst, int currentForIndex)(Code) | | |
checkForInvalidDefault | public static boolean checkForInvalidDefault(int defStart, int switchStart)(Code) | | |
checkForReturn | public static boolean checkForReturn(byte[] code, int i)(Code) | | |
continueFindingBranchType | public static boolean continueFindingBranchType(int i, byte info)(Code) | | NOTE: This is not general purpose method tofind load inst...Skips
ceratian loads see usages
|
getReqdGoto | public static int getReqdGoto(int start, byte[] info, int end)(Code) | | |
|
|