KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > soot > options > ShimpleOptions


1
2 /* Soot - a J*va Optimization Framework
3  * Copyright (C) 2003 Ondrej Lhotak
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the
17  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18  * Boston, MA 02111-1307, USA.
19  */

20
21 /* THIS FILE IS AUTO-GENERATED FROM soot_options.xml. DO NOT MODIFY. */
22
23 package soot.options;
24 import java.util.*;
25
26 /** Option parser for Shimple Control. */
27 public class ShimpleOptions
28 {
29     private Map options;
30
31     public ShimpleOptions( Map options ) {
32         this.options = options;
33     }
34     
35     /** Enabled --
36     
37      * .
38     
39      *
40      */

41     public boolean enabled() {
42         return soot.PhaseOptions.getBoolean( options, "enabled" );
43     }
44     
45     /** Shimple Node Elimination Optimizations --
46     
47      * Node elimination optimizations.
48     
49      * Perform some optimizations, such as dead code
50      * elimination and local aggregation, before/after
51      * eliminating nodes.
52      */

53     public boolean node_elim_opt() {
54         return soot.PhaseOptions.getBoolean( options, "node-elim-opt" );
55     }
56     
57     /** Local Name Standardization --
58     
59      * Uses naming scheme of the Local Name Standardizer..
60     
61      * If enabled, the Local Name Standardizer is applied
62      * whenever Shimple creates new locals. Normally,
63      * Shimple will retain the original local names as far
64      * as possible and use an underscore notation to denote
65      * SSA subscripts. This transformation does not
66      * otherwise affect Shimple behaviour.
67      */

68     public boolean standard_local_names() {
69         return soot.PhaseOptions.getBoolean( options, "standard-local-names" );
70     }
71     
72     /** Extended SSA (SSI) --
73     
74      * Compute extended SSA (SSI) form..
75     
76      * If enabled, Shimple will created extended SSA (SSI)
77      * form.
78      */

79     public boolean extended() {
80         return soot.PhaseOptions.getBoolean( options, "extended" );
81     }
82     
83     /** Debugging Output --
84     
85      * Enables debugging output, if any..
86     
87      * If enabled, Soot may print out warnings and
88      * messages useful for debugging the Shimple module.
89      * Automatically enabled by the global debug switch.
90      *
91      */

92     public boolean debug() {
93         return soot.PhaseOptions.getBoolean( options, "debug" );
94     }
95     
96 }
97         
Popular Tags