lubomir@850: /** lubomir@850: * Back 2 Browser Bytecode Translator jaroslav@1787: * Copyright (C) 2012-2015 Jaroslav Tulach lubomir@850: * lubomir@850: * This program is free software: you can redistribute it and/or modify lubomir@850: * it under the terms of the GNU General Public License as published by lubomir@850: * the Free Software Foundation, version 2 of the License. lubomir@850: * lubomir@850: * This program is distributed in the hope that it will be useful, lubomir@850: * but WITHOUT ANY WARRANTY; without even the implied warranty of lubomir@850: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the lubomir@850: * GNU General Public License for more details. lubomir@850: * lubomir@850: * You should have received a copy of the GNU General Public License lubomir@850: * along with this program. Look for COPYING file in the top folder. lubomir@850: * If not, see http://opensource.org/licenses/GPL-2.0. lubomir@850: */ lubomir@850: package org.apidesign.vm4brwsr; lubomir@850: lubomir@850: /** lubomir@869: * Defines obfuscation level of produced JavaScript files. lubomir@860: * lubomir@860: * @since 0.5 lubomir@850: */ lubomir@850: public enum ObfuscationLevel { jaroslav@882: /** Generated JavaScript is (sort of) human readable. Useful for debugging. jaroslav@882: * Dynamic capabilities of the virtual machine work on all classes. jaroslav@882: */ lubomir@850: NONE, jaroslav@882: /** White spaces are removed. Names of external symbols remain unchanged. jaroslav@882: * Dynamic capabilities of the virtual machine work on all classes. jaroslav@882: */ lubomir@869: MINIMAL, jaroslav@882: // temporarily commented out before merge. not well defined yet: jaroslav@882: // MEDIUM, jaroslav@882: /** Aggressive obfuscation of everything. Compact, unreadable "one-liner". jaroslav@882: * One cannot load classes dynamically. Useful mostly for static compilation jaroslav@882: * of self contained application. jaroslav@882: */ lubomir@869: FULL lubomir@850: }