Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
Flags |
|
| 1.0;1 |
1 | /* | |
2 | * Copyright (C) 1998-2000 Semiotek Inc. All Rights Reserved. | |
3 | * | |
4 | * Redistribution and use in source and binary forms, with or without | |
5 | * modification, are permitted under the terms of either of the following | |
6 | * Open Source licenses: | |
7 | * | |
8 | * The GNU General Public License, version 2, or any later version, as | |
9 | * published by the Free Software Foundation | |
10 | * (http://www.fsf.org/copyleft/gpl.html); | |
11 | * | |
12 | * or | |
13 | * | |
14 | * The Semiotek Public License (http://webmacro.org/LICENSE.) | |
15 | * | |
16 | * This software is provided "as is", with NO WARRANTY, not even the | |
17 | * implied warranties of fitness to purpose, or merchantability. You | |
18 | * assume all risks and liabilities associated with its use. | |
19 | * | |
20 | * See www.webmacro.org for more information on the WebMacro project. | |
21 | */ | |
22 | ||
23 | ||
24 | package org.webmacro; | |
25 | ||
26 | /** | |
27 | * This class contains some static final settings which control the | |
28 | * behavior of WebMacro at runtime. There are two ways you can take | |
29 | * advantage of this class: | |
30 | * <ul> | |
31 | * <li>Change these constants and recompile the sources | |
32 | * <li>Insert a copy of this class earlier in your classpath | |
33 | * </ul> | |
34 | * Note that if you insert the copy earlier in your classpath your | |
35 | * JIT may be able to optimize out code that depends on the static | |
36 | * final constants, but it will not be able to optimize in code that | |
37 | * your compiler has already removed! So if you want to try the | |
38 | * classpath trick, you probably need to compile the WebMacro | |
39 | * sources with these constants set to "true" first. | |
40 | */ | |
41 | public final class Flags | |
42 | { | |
43 | ||
44 | /** | |
45 | * Nobody is allowed to create one | |
46 | */ | |
47 | private Flags () | |
48 | 0 | { |
49 | 0 | } |
50 | ||
51 | /** | |
52 | * Use debug statements in performance critical code? | |
53 | */ | |
54 | public static final boolean DEBUG = false; | |
55 | ||
56 | /** | |
57 | * Use in profiling statements in performance critical code? | |
58 | */ | |
59 | public static final boolean PROFILE = true; | |
60 | ||
61 | } | |
62 | ||
63 |