Source code: jreversepro/revengine/BranchConstants.java
1 /*
2 * @(#)BranchConstants.java
3 *
4 * JReversePro - Java Decompiler / Disassembler.
5 * Copyright (C) 2000 2001 Karthik Kumar.
6 * EMail: akkumar@users.sourceforge.net
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it , under the terms of the GNU General License as published
10 * by the Free Software Foundation; either version 2 of the License,
11 * or (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16 * See the GNU General License for more details.
17 * You should have received a copy of the GNU General License
18 * along with this program.If not, write to
19 * The Free Software Foundation, Inc.,
20 * 59 Temple Place - Suite 330,
21 * Boston, MA 02111-1307, USA.
22 */
23 package jreversepro.revengine;
24
25 /**
26 * This interface contains the constants used by branch types.
27 * @author Karthik Kumar
28 **/
29 public interface BranchConstants {
30
31 /**
32 * Invalid Type.
33 **/
34 int TYPE_INVALID = 0;
35
36 /**
37 * A goto branch.
38 **/
39 int TYPE_GOTO = 1;
40
41 /**
42 * A conditinal branch.
43 **/
44 int TYPE_BRANCH = 2;
45
46 /**
47 * Branch of Jump Sub Routine type.
48 **/
49 int TYPE_JSR = 3;
50
51 /**
52 * Branch signifying return type.
53 **/
54 int TYPE_RET = 4;
55
56 /**
57 * If branch.
58 **/
59 int TYPE_IF = 10;
60
61 /**
62 * Else branch.
63 **/
64 int TYPE_ELSE = 11;
65
66 /**
67 * Else..If branch.
68 **/
69 int TYPE_ELSE_IF = 12;
70
71 /**
72 * while branch.
73 **/
74 int TYPE_WHILE = 13;
75
76 /**
77 * Do..while branch
78 **/
79 int TYPE_DO_WHILE = 14;
80
81 /**
82 * try branch.
83 **/
84 int TYPE_TRY = 15;
85
86 /**
87 * try branch that contains one implicit catch any block.
88 * for synchronized and finally these kind of branches appear.
89 **/
90 int TYPE_TRY_ANY = 16;
91
92 /**
93 * Branch signifying catch block
94 **/
95 int TYPE_CATCH = 17;
96
97 /**
98 * Branch signifying catch block whose catch datatype /
99 * handler type is 'ANY'.
100 **/
101 int TYPE_CATCH_ANY = 18;
102
103 /**
104 * Branch signifying 'synchronized' block.
105 **/
106 int TYPE_SYNC = 19;
107
108 /**
109 * Branch signifiying switch block.
110 **/
111 int TYPE_SWITCH = 20;
112
113 /**
114 * Branch signifiying case block
115 **/
116 int TYPE_CASE = 21;
117 }