rt/vm/src/main/java/org/apidesign/vm4brwsr/ObfuscationLevel.java
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Tue, 24 Feb 2015 11:12:53 +0100
changeset 1787 ea12a3bb4b33
parent 882 60d9ea48ec99
permissions -rw-r--r--
Using year range 2012-2015 in copyright header
lubomir@850
     1
/**
lubomir@850
     2
 * Back 2 Browser Bytecode Translator
jaroslav@1787
     3
 * Copyright (C) 2012-2015 Jaroslav Tulach <jaroslav.tulach@apidesign.org>
lubomir@850
     4
 *
lubomir@850
     5
 * This program is free software: you can redistribute it and/or modify
lubomir@850
     6
 * it under the terms of the GNU General Public License as published by
lubomir@850
     7
 * the Free Software Foundation, version 2 of the License.
lubomir@850
     8
 *
lubomir@850
     9
 * This program is distributed in the hope that it will be useful,
lubomir@850
    10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
lubomir@850
    11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
lubomir@850
    12
 * GNU General Public License for more details.
lubomir@850
    13
 *
lubomir@850
    14
 * You should have received a copy of the GNU General Public License
lubomir@850
    15
 * along with this program. Look for COPYING file in the top folder.
lubomir@850
    16
 * If not, see http://opensource.org/licenses/GPL-2.0.
lubomir@850
    17
 */
lubomir@850
    18
package org.apidesign.vm4brwsr;
lubomir@850
    19
lubomir@850
    20
/**
lubomir@869
    21
 * Defines obfuscation level of produced JavaScript files.
lubomir@860
    22
 *
lubomir@860
    23
 * @since 0.5
lubomir@850
    24
 */
lubomir@850
    25
public enum ObfuscationLevel {
jaroslav@882
    26
    /** Generated JavaScript is (sort of) human readable. Useful for debugging.
jaroslav@882
    27
     * Dynamic capabilities of the virtual machine work on all classes.
jaroslav@882
    28
     */
lubomir@850
    29
    NONE,
jaroslav@882
    30
    /** White spaces are removed. Names of external symbols remain unchanged.
jaroslav@882
    31
     * Dynamic capabilities of the virtual machine work on all classes.
jaroslav@882
    32
     */
lubomir@869
    33
    MINIMAL,
jaroslav@882
    34
// temporarily commented out before merge. not well defined yet:
jaroslav@882
    35
//    MEDIUM,
jaroslav@882
    36
    /** Aggressive obfuscation of everything. Compact, unreadable "one-liner".
jaroslav@882
    37
     * One cannot load classes dynamically. Useful mostly for static compilation
jaroslav@882
    38
     * of self contained application.
jaroslav@882
    39
     */
lubomir@869
    40
    FULL
lubomir@850
    41
}