sometsome 1.0.2 → 3.10.42

Sign up to get free protection for your applications and to get access to all the features.
Files changed (732) hide show
  1. checksums.yaml +4 -4
  2. data/lib/proguard4.7/README +33 -0
  3. data/lib/proguard4.7/bin/proguard.bat +14 -0
  4. data/lib/proguard4.7/bin/proguard.sh +11 -0
  5. data/lib/proguard4.7/bin/proguardgui.bat +14 -0
  6. data/lib/proguard4.7/bin/proguardgui.sh +15 -0
  7. data/lib/proguard4.7/bin/retrace.bat +14 -0
  8. data/lib/proguard4.7/bin/retrace.sh +12 -0
  9. data/lib/proguard4.7/build/build.sh +94 -0
  10. data/lib/proguard4.7/build/build.xml +171 -0
  11. data/lib/proguard4.7/build/makefile +94 -0
  12. data/lib/proguard4.7/docs/FAQ.html +253 -0
  13. data/lib/proguard4.7/docs/GPL.html +406 -0
  14. data/lib/proguard4.7/docs/GPL_exception.html +56 -0
  15. data/lib/proguard4.7/docs/acknowledgements.html +76 -0
  16. data/lib/proguard4.7/docs/alternatives.html +699 -0
  17. data/lib/proguard4.7/docs/checkmark.gif +0 -0
  18. data/lib/proguard4.7/docs/downloads.html +623 -0
  19. data/lib/proguard4.7/docs/drop1.gif +0 -0
  20. data/lib/proguard4.7/docs/drop2.gif +0 -0
  21. data/lib/proguard4.7/docs/drop3.gif +0 -0
  22. data/lib/proguard4.7/docs/favicon.ico +0 -0
  23. data/lib/proguard4.7/docs/feedback.html +120 -0
  24. data/lib/proguard4.7/docs/index.html +92 -0
  25. data/lib/proguard4.7/docs/license.html +60 -0
  26. data/lib/proguard4.7/docs/main.html +102 -0
  27. data/lib/proguard4.7/docs/manual/ant.html +634 -0
  28. data/lib/proguard4.7/docs/manual/attention.gif +0 -0
  29. data/lib/proguard4.7/docs/manual/examples.html +1504 -0
  30. data/lib/proguard4.7/docs/manual/gui.html +479 -0
  31. data/lib/proguard4.7/docs/manual/index.html +51 -0
  32. data/lib/proguard4.7/docs/manual/introduction.html +173 -0
  33. data/lib/proguard4.7/docs/manual/limitations.html +69 -0
  34. data/lib/proguard4.7/docs/manual/optimizations.html +172 -0
  35. data/lib/proguard4.7/docs/manual/refcard.html +486 -0
  36. data/lib/proguard4.7/docs/manual/retrace/examples.html +345 -0
  37. data/lib/proguard4.7/docs/manual/retrace/index.html +37 -0
  38. data/lib/proguard4.7/docs/manual/retrace/introduction.html +79 -0
  39. data/lib/proguard4.7/docs/manual/retrace/usage.html +127 -0
  40. data/lib/proguard4.7/docs/manual/sections.html +60 -0
  41. data/lib/proguard4.7/docs/manual/style.css +105 -0
  42. data/lib/proguard4.7/docs/manual/troubleshooting.html +729 -0
  43. data/lib/proguard4.7/docs/manual/usage.html +1243 -0
  44. data/lib/proguard4.7/docs/manual/wtk.html +70 -0
  45. data/lib/proguard4.7/docs/quality.html +56 -0
  46. data/lib/proguard4.7/docs/results.html +170 -0
  47. data/lib/proguard4.7/docs/saikoalogo.png +0 -0
  48. data/lib/proguard4.7/docs/screenshot_console.gif +0 -0
  49. data/lib/proguard4.7/docs/screenshot_console_small.gif +0 -0
  50. data/lib/proguard4.7/docs/screenshot_gui1.gif +0 -0
  51. data/lib/proguard4.7/docs/screenshot_gui2.gif +0 -0
  52. data/lib/proguard4.7/docs/screenshot_gui3.gif +0 -0
  53. data/lib/proguard4.7/docs/screenshot_gui4.gif +0 -0
  54. data/lib/proguard4.7/docs/screenshot_gui5.gif +0 -0
  55. data/lib/proguard4.7/docs/screenshot_gui6.gif +0 -0
  56. data/lib/proguard4.7/docs/screenshot_gui7.gif +0 -0
  57. data/lib/proguard4.7/docs/screenshot_gui8.gif +0 -0
  58. data/lib/proguard4.7/docs/screenshots.html +67 -0
  59. data/lib/proguard4.7/docs/screenshots_gui_small.gif +0 -0
  60. data/lib/proguard4.7/docs/sections.html +64 -0
  61. data/lib/proguard4.7/docs/sflogo.png +0 -0
  62. data/lib/proguard4.7/docs/steel.gif +0 -0
  63. data/lib/proguard4.7/docs/style.css +223 -0
  64. data/lib/proguard4.7/docs/testimonials.html +133 -0
  65. data/lib/proguard4.7/docs/title.gif +0 -0
  66. data/lib/proguard4.7/docs/title.html +17 -0
  67. data/lib/proguard4.7/examples/android.pro +149 -0
  68. data/lib/proguard4.7/examples/annotations/examples.pro +60 -0
  69. data/lib/proguard4.7/examples/annotations/examples/Applet.java +22 -0
  70. data/lib/proguard4.7/examples/annotations/examples/Application.java +20 -0
  71. data/lib/proguard4.7/examples/annotations/examples/Bean.java +56 -0
  72. data/lib/proguard4.7/examples/annotations/examples/NativeCallBack.java +44 -0
  73. data/lib/proguard4.7/examples/annotations/lib/annotations.jar +0 -0
  74. data/lib/proguard4.7/examples/annotations/lib/annotations.pro +118 -0
  75. data/lib/proguard4.7/examples/annotations/src/proguard/annotation/Keep.java +18 -0
  76. data/lib/proguard4.7/examples/annotations/src/proguard/annotation/KeepApplication.java +18 -0
  77. data/lib/proguard4.7/examples/annotations/src/proguard/annotation/KeepClassMemberNames.java +18 -0
  78. data/lib/proguard4.7/examples/annotations/src/proguard/annotation/KeepClassMembers.java +18 -0
  79. data/lib/proguard4.7/examples/annotations/src/proguard/annotation/KeepGettersSetters.java +18 -0
  80. data/lib/proguard4.7/examples/annotations/src/proguard/annotation/KeepImplementations.java +18 -0
  81. data/lib/proguard4.7/examples/annotations/src/proguard/annotation/KeepName.java +18 -0
  82. data/lib/proguard4.7/examples/annotations/src/proguard/annotation/KeepPublicClassMemberNames.java +18 -0
  83. data/lib/proguard4.7/examples/annotations/src/proguard/annotation/KeepPublicClassMembers.java +18 -0
  84. data/lib/proguard4.7/examples/annotations/src/proguard/annotation/KeepPublicGettersSetters.java +18 -0
  85. data/lib/proguard4.7/examples/annotations/src/proguard/annotation/KeepPublicImplementations.java +18 -0
  86. data/lib/proguard4.7/examples/annotations/src/proguard/annotation/KeepPublicProtectedClassMemberNames.java +18 -0
  87. data/lib/proguard4.7/examples/annotations/src/proguard/annotation/KeepPublicProtectedClassMembers.java +19 -0
  88. data/lib/proguard4.7/examples/ant/android-8.xml +177 -0
  89. data/lib/proguard4.7/examples/ant/applets.xml +88 -0
  90. data/lib/proguard4.7/examples/ant/applications1.xml +15 -0
  91. data/lib/proguard4.7/examples/ant/applications2.xml +74 -0
  92. data/lib/proguard4.7/examples/ant/applications3.xml +98 -0
  93. data/lib/proguard4.7/examples/ant/library.xml +102 -0
  94. data/lib/proguard4.7/examples/ant/midlets.xml +52 -0
  95. data/lib/proguard4.7/examples/ant/proguard.xml +78 -0
  96. data/lib/proguard4.7/examples/ant/servlets.xml +88 -0
  97. data/lib/proguard4.7/examples/applets.pro +69 -0
  98. data/lib/proguard4.7/examples/applications.pro +75 -0
  99. data/lib/proguard4.7/examples/dictionaries/compact.txt +18 -0
  100. data/lib/proguard4.7/examples/dictionaries/keywords.txt +58 -0
  101. data/lib/proguard4.7/examples/dictionaries/shakespeare.txt +23 -0
  102. data/lib/proguard4.7/examples/dictionaries/windows.txt +209 -0
  103. data/lib/proguard4.7/examples/library.pro +79 -0
  104. data/lib/proguard4.7/examples/midlets.pro +67 -0
  105. data/lib/proguard4.7/examples/proguard.pro +57 -0
  106. data/lib/proguard4.7/examples/proguardall.pro +62 -0
  107. data/lib/proguard4.7/examples/proguardgui.pro +50 -0
  108. data/lib/proguard4.7/examples/retrace.pro +43 -0
  109. data/lib/proguard4.7/examples/scala.pro +132 -0
  110. data/lib/proguard4.7/examples/servlets.pro +70 -0
  111. data/lib/proguard4.7/lib/proguard.jar +0 -0
  112. data/lib/proguard4.7/lib/proguardgui.jar +0 -0
  113. data/lib/proguard4.7/lib/retrace.jar +0 -0
  114. data/lib/proguard4.7/src/proguard/ArgumentWordReader.java +111 -0
  115. data/lib/proguard4.7/src/proguard/ClassPath.java +94 -0
  116. data/lib/proguard4.7/src/proguard/ClassPathEntry.java +282 -0
  117. data/lib/proguard4.7/src/proguard/ClassSpecification.java +259 -0
  118. data/lib/proguard4.7/src/proguard/ClassSpecificationVisitorFactory.java +503 -0
  119. data/lib/proguard4.7/src/proguard/Configuration.java +328 -0
  120. data/lib/proguard4.7/src/proguard/ConfigurationConstants.java +123 -0
  121. data/lib/proguard4.7/src/proguard/ConfigurationParser.java +1285 -0
  122. data/lib/proguard4.7/src/proguard/ConfigurationWriter.java +651 -0
  123. data/lib/proguard4.7/src/proguard/DataEntryReaderFactory.java +141 -0
  124. data/lib/proguard4.7/src/proguard/DataEntryWriterFactory.java +150 -0
  125. data/lib/proguard4.7/src/proguard/DescriptorKeepChecker.java +169 -0
  126. data/lib/proguard4.7/src/proguard/DuplicateClassPrinter.java +63 -0
  127. data/lib/proguard4.7/src/proguard/FileWordReader.java +55 -0
  128. data/lib/proguard4.7/src/proguard/FullyQualifiedClassNameChecker.java +191 -0
  129. data/lib/proguard4.7/src/proguard/GPL.java +197 -0
  130. data/lib/proguard4.7/src/proguard/Initializer.java +424 -0
  131. data/lib/proguard4.7/src/proguard/InputReader.java +233 -0
  132. data/lib/proguard4.7/src/proguard/KeepClassMemberChecker.java +87 -0
  133. data/lib/proguard4.7/src/proguard/KeepClassSpecification.java +137 -0
  134. data/lib/proguard4.7/src/proguard/LineWordReader.java +74 -0
  135. data/lib/proguard4.7/src/proguard/MANIFEST.MF +2 -0
  136. data/lib/proguard4.7/src/proguard/MemberSpecification.java +114 -0
  137. data/lib/proguard4.7/src/proguard/OutputWriter.java +296 -0
  138. data/lib/proguard4.7/src/proguard/ParseException.java +51 -0
  139. data/lib/proguard4.7/src/proguard/ProGuard.java +512 -0
  140. data/lib/proguard4.7/src/proguard/SeedPrinter.java +97 -0
  141. data/lib/proguard4.7/src/proguard/SubclassedClassFilter.java +62 -0
  142. data/lib/proguard4.7/src/proguard/Targeter.java +88 -0
  143. data/lib/proguard4.7/src/proguard/UpToDateChecker.java +232 -0
  144. data/lib/proguard4.7/src/proguard/WordReader.java +387 -0
  145. data/lib/proguard4.7/src/proguard/ant/ClassPathElement.java +191 -0
  146. data/lib/proguard4.7/src/proguard/ant/ClassSpecificationElement.java +258 -0
  147. data/lib/proguard4.7/src/proguard/ant/ConfigurationElement.java +53 -0
  148. data/lib/proguard4.7/src/proguard/ant/ConfigurationTask.java +441 -0
  149. data/lib/proguard4.7/src/proguard/ant/FilterElement.java +85 -0
  150. data/lib/proguard4.7/src/proguard/ant/KeepSpecificationElement.java +87 -0
  151. data/lib/proguard4.7/src/proguard/ant/MemberSpecificationElement.java +218 -0
  152. data/lib/proguard4.7/src/proguard/ant/ProGuardTask.java +352 -0
  153. data/lib/proguard4.7/src/proguard/ant/package.html +3 -0
  154. data/lib/proguard4.7/src/proguard/ant/task.properties +2 -0
  155. data/lib/proguard4.7/src/proguard/classfile/ClassConstants.java +316 -0
  156. data/lib/proguard4.7/src/proguard/classfile/ClassPool.java +152 -0
  157. data/lib/proguard4.7/src/proguard/classfile/Clazz.java +261 -0
  158. data/lib/proguard4.7/src/proguard/classfile/Field.java +32 -0
  159. data/lib/proguard4.7/src/proguard/classfile/LibraryClass.java +548 -0
  160. data/lib/proguard4.7/src/proguard/classfile/LibraryField.java +77 -0
  161. data/lib/proguard4.7/src/proguard/classfile/LibraryMember.java +108 -0
  162. data/lib/proguard4.7/src/proguard/classfile/LibraryMethod.java +83 -0
  163. data/lib/proguard4.7/src/proguard/classfile/Member.java +57 -0
  164. data/lib/proguard4.7/src/proguard/classfile/Method.java +32 -0
  165. data/lib/proguard4.7/src/proguard/classfile/ProgramClass.java +572 -0
  166. data/lib/proguard4.7/src/proguard/classfile/ProgramField.java +93 -0
  167. data/lib/proguard4.7/src/proguard/classfile/ProgramMember.java +168 -0
  168. data/lib/proguard4.7/src/proguard/classfile/ProgramMethod.java +99 -0
  169. data/lib/proguard4.7/src/proguard/classfile/VisitorAccepter.java +47 -0
  170. data/lib/proguard4.7/src/proguard/classfile/attribute/Attribute.java +142 -0
  171. data/lib/proguard4.7/src/proguard/classfile/attribute/BootstrapMethodInfo.java +89 -0
  172. data/lib/proguard4.7/src/proguard/classfile/attribute/BootstrapMethodsAttribute.java +95 -0
  173. data/lib/proguard4.7/src/proguard/classfile/attribute/CodeAttribute.java +202 -0
  174. data/lib/proguard4.7/src/proguard/classfile/attribute/ConstantValueAttribute.java +62 -0
  175. data/lib/proguard4.7/src/proguard/classfile/attribute/DeprecatedAttribute.java +66 -0
  176. data/lib/proguard4.7/src/proguard/classfile/attribute/EnclosingMethodAttribute.java +132 -0
  177. data/lib/proguard4.7/src/proguard/classfile/attribute/ExceptionInfo.java +100 -0
  178. data/lib/proguard4.7/src/proguard/classfile/attribute/ExceptionsAttribute.java +80 -0
  179. data/lib/proguard4.7/src/proguard/classfile/attribute/InnerClassesAttribute.java +80 -0
  180. data/lib/proguard4.7/src/proguard/classfile/attribute/InnerClassesInfo.java +119 -0
  181. data/lib/proguard4.7/src/proguard/classfile/attribute/LineNumberInfo.java +50 -0
  182. data/lib/proguard4.7/src/proguard/classfile/attribute/LineNumberTableAttribute.java +100 -0
  183. data/lib/proguard4.7/src/proguard/classfile/attribute/LocalVariableInfo.java +99 -0
  184. data/lib/proguard4.7/src/proguard/classfile/attribute/LocalVariableTableAttribute.java +79 -0
  185. data/lib/proguard4.7/src/proguard/classfile/attribute/LocalVariableTypeInfo.java +107 -0
  186. data/lib/proguard4.7/src/proguard/classfile/attribute/LocalVariableTypeTableAttribute.java +79 -0
  187. data/lib/proguard4.7/src/proguard/classfile/attribute/SignatureAttribute.java +100 -0
  188. data/lib/proguard4.7/src/proguard/classfile/attribute/SourceDirAttribute.java +62 -0
  189. data/lib/proguard4.7/src/proguard/classfile/attribute/SourceFileAttribute.java +62 -0
  190. data/lib/proguard4.7/src/proguard/classfile/attribute/SyntheticAttribute.java +66 -0
  191. data/lib/proguard4.7/src/proguard/classfile/attribute/UnknownAttribute.java +82 -0
  192. data/lib/proguard4.7/src/proguard/classfile/attribute/annotation/Annotation.java +143 -0
  193. data/lib/proguard4.7/src/proguard/classfile/attribute/annotation/AnnotationDefaultAttribute.java +73 -0
  194. data/lib/proguard4.7/src/proguard/classfile/attribute/annotation/AnnotationElementValue.java +76 -0
  195. data/lib/proguard4.7/src/proguard/classfile/attribute/annotation/AnnotationsAttribute.java +100 -0
  196. data/lib/proguard4.7/src/proguard/classfile/attribute/annotation/ArrayElementValue.java +82 -0
  197. data/lib/proguard4.7/src/proguard/classfile/attribute/annotation/ClassElementValue.java +95 -0
  198. data/lib/proguard4.7/src/proguard/classfile/attribute/annotation/ConstantElementValue.java +71 -0
  199. data/lib/proguard4.7/src/proguard/classfile/attribute/annotation/ElementValue.java +126 -0
  200. data/lib/proguard4.7/src/proguard/classfile/attribute/annotation/EnumConstantElementValue.java +99 -0
  201. data/lib/proguard4.7/src/proguard/classfile/attribute/annotation/ParameterAnnotationsAttribute.java +83 -0
  202. data/lib/proguard4.7/src/proguard/classfile/attribute/annotation/RuntimeInvisibleAnnotationsAttribute.java +70 -0
  203. data/lib/proguard4.7/src/proguard/classfile/attribute/annotation/RuntimeInvisibleParameterAnnotationsAttribute.java +62 -0
  204. data/lib/proguard4.7/src/proguard/classfile/attribute/annotation/RuntimeVisibleAnnotationsAttribute.java +70 -0
  205. data/lib/proguard4.7/src/proguard/classfile/attribute/annotation/RuntimeVisibleParameterAnnotationsAttribute.java +62 -0
  206. data/lib/proguard4.7/src/proguard/classfile/attribute/annotation/package.html +4 -0
  207. data/lib/proguard4.7/src/proguard/classfile/attribute/annotation/visitor/AllAnnotationVisitor.java +100 -0
  208. data/lib/proguard4.7/src/proguard/classfile/attribute/annotation/visitor/AnnotatedClassVisitor.java +62 -0
  209. data/lib/proguard4.7/src/proguard/classfile/attribute/annotation/visitor/AnnotationToMemberVisitor.java +62 -0
  210. data/lib/proguard4.7/src/proguard/classfile/attribute/annotation/visitor/AnnotationTypeFilter.java +102 -0
  211. data/lib/proguard4.7/src/proguard/classfile/attribute/annotation/visitor/AnnotationVisitor.java +40 -0
  212. data/lib/proguard4.7/src/proguard/classfile/attribute/annotation/visitor/ElementValueVisitor.java +51 -0
  213. data/lib/proguard4.7/src/proguard/classfile/attribute/annotation/visitor/package.html +3 -0
  214. data/lib/proguard4.7/src/proguard/classfile/attribute/package.html +3 -0
  215. data/lib/proguard4.7/src/proguard/classfile/attribute/preverification/DoubleType.java +66 -0
  216. data/lib/proguard4.7/src/proguard/classfile/attribute/preverification/FloatType.java +66 -0
  217. data/lib/proguard4.7/src/proguard/classfile/attribute/preverification/FullFrame.java +202 -0
  218. data/lib/proguard4.7/src/proguard/classfile/attribute/preverification/IntegerType.java +66 -0
  219. data/lib/proguard4.7/src/proguard/classfile/attribute/preverification/LessZeroFrame.java +103 -0
  220. data/lib/proguard4.7/src/proguard/classfile/attribute/preverification/LongType.java +66 -0
  221. data/lib/proguard4.7/src/proguard/classfile/attribute/preverification/MoreZeroFrame.java +161 -0
  222. data/lib/proguard4.7/src/proguard/classfile/attribute/preverification/NullType.java +66 -0
  223. data/lib/proguard4.7/src/proguard/classfile/attribute/preverification/ObjectType.java +107 -0
  224. data/lib/proguard4.7/src/proguard/classfile/attribute/preverification/SameOneFrame.java +115 -0
  225. data/lib/proguard4.7/src/proguard/classfile/attribute/preverification/SameZeroFrame.java +74 -0
  226. data/lib/proguard4.7/src/proguard/classfile/attribute/preverification/StackMapAttribute.java +91 -0
  227. data/lib/proguard4.7/src/proguard/classfile/attribute/preverification/StackMapFrame.java +117 -0
  228. data/lib/proguard4.7/src/proguard/classfile/attribute/preverification/StackMapTableAttribute.java +93 -0
  229. data/lib/proguard4.7/src/proguard/classfile/attribute/preverification/TopType.java +66 -0
  230. data/lib/proguard4.7/src/proguard/classfile/attribute/preverification/UninitializedThisType.java +66 -0
  231. data/lib/proguard4.7/src/proguard/classfile/attribute/preverification/UninitializedType.java +106 -0
  232. data/lib/proguard4.7/src/proguard/classfile/attribute/preverification/VerificationType.java +103 -0
  233. data/lib/proguard4.7/src/proguard/classfile/attribute/preverification/VerificationTypeFactory.java +112 -0
  234. data/lib/proguard4.7/src/proguard/classfile/attribute/preverification/visitor/StackMapFrameVisitor.java +40 -0
  235. data/lib/proguard4.7/src/proguard/classfile/attribute/preverification/visitor/VerificationTypeVisitor.java +65 -0
  236. data/lib/proguard4.7/src/proguard/classfile/attribute/visitor/AllAttributeVisitor.java +117 -0
  237. data/lib/proguard4.7/src/proguard/classfile/attribute/visitor/AllBootstrapMethodInfoVisitor.java +55 -0
  238. data/lib/proguard4.7/src/proguard/classfile/attribute/visitor/AllExceptionInfoVisitor.java +55 -0
  239. data/lib/proguard4.7/src/proguard/classfile/attribute/visitor/AllInnerClassesInfoVisitor.java +55 -0
  240. data/lib/proguard4.7/src/proguard/classfile/attribute/visitor/AttributeNameFilter.java +368 -0
  241. data/lib/proguard4.7/src/proguard/classfile/attribute/visitor/AttributeVisitor.java +90 -0
  242. data/lib/proguard4.7/src/proguard/classfile/attribute/visitor/BootstrapMethodInfoVisitor.java +40 -0
  243. data/lib/proguard4.7/src/proguard/classfile/attribute/visitor/ExceptionInfoVisitor.java +37 -0
  244. data/lib/proguard4.7/src/proguard/classfile/attribute/visitor/InnerClassesInfoVisitor.java +38 -0
  245. data/lib/proguard4.7/src/proguard/classfile/attribute/visitor/LineNumberInfoVisitor.java +38 -0
  246. data/lib/proguard4.7/src/proguard/classfile/attribute/visitor/LocalVariableInfoVisitor.java +38 -0
  247. data/lib/proguard4.7/src/proguard/classfile/attribute/visitor/LocalVariableTypeInfoVisitor.java +38 -0
  248. data/lib/proguard4.7/src/proguard/classfile/attribute/visitor/MultiAttributeVisitor.java +365 -0
  249. data/lib/proguard4.7/src/proguard/classfile/attribute/visitor/NonEmptyAttributeFilter.java +293 -0
  250. data/lib/proguard4.7/src/proguard/classfile/attribute/visitor/RequiredAttributeFilter.java +360 -0
  251. data/lib/proguard4.7/src/proguard/classfile/attribute/visitor/StackSizeComputer.java +378 -0
  252. data/lib/proguard4.7/src/proguard/classfile/attribute/visitor/package.html +3 -0
  253. data/lib/proguard4.7/src/proguard/classfile/constant/ClassConstant.java +105 -0
  254. data/lib/proguard4.7/src/proguard/classfile/constant/Constant.java +68 -0
  255. data/lib/proguard4.7/src/proguard/classfile/constant/DoubleConstant.java +82 -0
  256. data/lib/proguard4.7/src/proguard/classfile/constant/FieldrefConstant.java +71 -0
  257. data/lib/proguard4.7/src/proguard/classfile/constant/FloatConstant.java +82 -0
  258. data/lib/proguard4.7/src/proguard/classfile/constant/IntegerConstant.java +82 -0
  259. data/lib/proguard4.7/src/proguard/classfile/constant/InterfaceMethodrefConstant.java +71 -0
  260. data/lib/proguard4.7/src/proguard/classfile/constant/InvokeDynamicConstant.java +148 -0
  261. data/lib/proguard4.7/src/proguard/classfile/constant/LongConstant.java +82 -0
  262. data/lib/proguard4.7/src/proguard/classfile/constant/MethodHandleConstant.java +124 -0
  263. data/lib/proguard4.7/src/proguard/classfile/constant/MethodTypeConstant.java +93 -0
  264. data/lib/proguard4.7/src/proguard/classfile/constant/MethodrefConstant.java +71 -0
  265. data/lib/proguard4.7/src/proguard/classfile/constant/NameAndTypeConstant.java +119 -0
  266. data/lib/proguard4.7/src/proguard/classfile/constant/RefConstant.java +130 -0
  267. data/lib/proguard4.7/src/proguard/classfile/constant/StringConstant.java +135 -0
  268. data/lib/proguard4.7/src/proguard/classfile/constant/Utf8Constant.java +285 -0
  269. data/lib/proguard4.7/src/proguard/classfile/constant/visitor/AllConstantVisitor.java +53 -0
  270. data/lib/proguard4.7/src/proguard/classfile/constant/visitor/BootstrapMethodHandleTraveler.java +100 -0
  271. data/lib/proguard4.7/src/proguard/classfile/constant/visitor/ConstantTagFilter.java +86 -0
  272. data/lib/proguard4.7/src/proguard/classfile/constant/visitor/ConstantVisitor.java +49 -0
  273. data/lib/proguard4.7/src/proguard/classfile/constant/visitor/ExceptClassConstantFilter.java +69 -0
  274. data/lib/proguard4.7/src/proguard/classfile/constant/visitor/MethodrefTraveler.java +60 -0
  275. data/lib/proguard4.7/src/proguard/classfile/constant/visitor/package.html +3 -0
  276. data/lib/proguard4.7/src/proguard/classfile/editor/AccessFixer.java +180 -0
  277. data/lib/proguard4.7/src/proguard/classfile/editor/AnnotationAdder.java +153 -0
  278. data/lib/proguard4.7/src/proguard/classfile/editor/AnnotationsAttributeEditor.java +67 -0
  279. data/lib/proguard4.7/src/proguard/classfile/editor/AttributeAdder.java +457 -0
  280. data/lib/proguard4.7/src/proguard/classfile/editor/AttributeSorter.java +89 -0
  281. data/lib/proguard4.7/src/proguard/classfile/editor/AttributesEditor.java +269 -0
  282. data/lib/proguard4.7/src/proguard/classfile/editor/BridgeMethodFixer.java +117 -0
  283. data/lib/proguard4.7/src/proguard/classfile/editor/ClassEditor.java +255 -0
  284. data/lib/proguard4.7/src/proguard/classfile/editor/ClassElementSorter.java +52 -0
  285. data/lib/proguard4.7/src/proguard/classfile/editor/ClassMemberSorter.java +69 -0
  286. data/lib/proguard4.7/src/proguard/classfile/editor/ClassReferenceFixer.java +546 -0
  287. data/lib/proguard4.7/src/proguard/classfile/editor/CodeAttributeComposer.java +843 -0
  288. data/lib/proguard4.7/src/proguard/classfile/editor/CodeAttributeEditor.java +1104 -0
  289. data/lib/proguard4.7/src/proguard/classfile/editor/CodeAttributeEditorResetter.java +60 -0
  290. data/lib/proguard4.7/src/proguard/classfile/editor/ComparableConstant.java +249 -0
  291. data/lib/proguard4.7/src/proguard/classfile/editor/ConstantAdder.java +239 -0
  292. data/lib/proguard4.7/src/proguard/classfile/editor/ConstantPoolEditor.java +782 -0
  293. data/lib/proguard4.7/src/proguard/classfile/editor/ConstantPoolRemapper.java +662 -0
  294. data/lib/proguard4.7/src/proguard/classfile/editor/ConstantPoolShrinker.java +578 -0
  295. data/lib/proguard4.7/src/proguard/classfile/editor/ConstantPoolSorter.java +123 -0
  296. data/lib/proguard4.7/src/proguard/classfile/editor/ElementValueAdder.java +217 -0
  297. data/lib/proguard4.7/src/proguard/classfile/editor/ElementValuesEditor.java +238 -0
  298. data/lib/proguard4.7/src/proguard/classfile/editor/ExceptionAdder.java +65 -0
  299. data/lib/proguard4.7/src/proguard/classfile/editor/ExceptionInfoAdder.java +67 -0
  300. data/lib/proguard4.7/src/proguard/classfile/editor/ExceptionsAttributeEditor.java +68 -0
  301. data/lib/proguard4.7/src/proguard/classfile/editor/InnerClassesAccessFixer.java +83 -0
  302. data/lib/proguard4.7/src/proguard/classfile/editor/InstructionAdder.java +76 -0
  303. data/lib/proguard4.7/src/proguard/classfile/editor/InstructionWriter.java +278 -0
  304. data/lib/proguard4.7/src/proguard/classfile/editor/InterfaceAdder.java +62 -0
  305. data/lib/proguard4.7/src/proguard/classfile/editor/InterfaceSorter.java +152 -0
  306. data/lib/proguard4.7/src/proguard/classfile/editor/InterfacesEditor.java +122 -0
  307. data/lib/proguard4.7/src/proguard/classfile/editor/LineNumberInfoAdder.java +59 -0
  308. data/lib/proguard4.7/src/proguard/classfile/editor/LineNumberTableAttributeEditor.java +67 -0
  309. data/lib/proguard4.7/src/proguard/classfile/editor/LocalVariableInfoAdder.java +67 -0
  310. data/lib/proguard4.7/src/proguard/classfile/editor/LocalVariableTableAttributeEditor.java +67 -0
  311. data/lib/proguard4.7/src/proguard/classfile/editor/LocalVariableTypeInfoAdder.java +68 -0
  312. data/lib/proguard4.7/src/proguard/classfile/editor/LocalVariableTypeTableAttributeEditor.java +68 -0
  313. data/lib/proguard4.7/src/proguard/classfile/editor/MemberAdder.java +288 -0
  314. data/lib/proguard4.7/src/proguard/classfile/editor/MemberReferenceFixer.java +447 -0
  315. data/lib/proguard4.7/src/proguard/classfile/editor/MethodInvocationFixer.java +243 -0
  316. data/lib/proguard4.7/src/proguard/classfile/editor/NameAndTypeShrinker.java +188 -0
  317. data/lib/proguard4.7/src/proguard/classfile/editor/NamedAttributeDeleter.java +54 -0
  318. data/lib/proguard4.7/src/proguard/classfile/editor/ParameterAnnotationsAttributeEditor.java +71 -0
  319. data/lib/proguard4.7/src/proguard/classfile/editor/StackSizeUpdater.java +54 -0
  320. data/lib/proguard4.7/src/proguard/classfile/editor/SubclassAdder.java +59 -0
  321. data/lib/proguard4.7/src/proguard/classfile/editor/SubclassToAdder.java +60 -0
  322. data/lib/proguard4.7/src/proguard/classfile/editor/Utf8Shrinker.java +455 -0
  323. data/lib/proguard4.7/src/proguard/classfile/editor/VariableCleaner.java +267 -0
  324. data/lib/proguard4.7/src/proguard/classfile/editor/VariableEditor.java +130 -0
  325. data/lib/proguard4.7/src/proguard/classfile/editor/VariableRemapper.java +156 -0
  326. data/lib/proguard4.7/src/proguard/classfile/editor/VariableSizeUpdater.java +105 -0
  327. data/lib/proguard4.7/src/proguard/classfile/editor/package.html +3 -0
  328. data/lib/proguard4.7/src/proguard/classfile/instruction/BranchInstruction.java +180 -0
  329. data/lib/proguard4.7/src/proguard/classfile/instruction/ConstantInstruction.java +309 -0
  330. data/lib/proguard4.7/src/proguard/classfile/instruction/Instruction.java +920 -0
  331. data/lib/proguard4.7/src/proguard/classfile/instruction/InstructionConstants.java +449 -0
  332. data/lib/proguard4.7/src/proguard/classfile/instruction/InstructionFactory.java +300 -0
  333. data/lib/proguard4.7/src/proguard/classfile/instruction/InstructionUtil.java +67 -0
  334. data/lib/proguard4.7/src/proguard/classfile/instruction/LookUpSwitchInstruction.java +135 -0
  335. data/lib/proguard4.7/src/proguard/classfile/instruction/SimpleInstruction.java +255 -0
  336. data/lib/proguard4.7/src/proguard/classfile/instruction/SwitchInstruction.java +83 -0
  337. data/lib/proguard4.7/src/proguard/classfile/instruction/TableSwitchInstruction.java +139 -0
  338. data/lib/proguard4.7/src/proguard/classfile/instruction/VariableInstruction.java +372 -0
  339. data/lib/proguard4.7/src/proguard/classfile/instruction/package.html +9 -0
  340. data/lib/proguard4.7/src/proguard/classfile/instruction/visitor/AllInstructionVisitor.java +56 -0
  341. data/lib/proguard4.7/src/proguard/classfile/instruction/visitor/InstructionCounter.java +59 -0
  342. data/lib/proguard4.7/src/proguard/classfile/instruction/visitor/InstructionVisitor.java +42 -0
  343. data/lib/proguard4.7/src/proguard/classfile/instruction/visitor/MultiInstructionVisitor.java +131 -0
  344. data/lib/proguard4.7/src/proguard/classfile/instruction/visitor/package.html +3 -0
  345. data/lib/proguard4.7/src/proguard/classfile/io/LibraryClassReader.java +383 -0
  346. data/lib/proguard4.7/src/proguard/classfile/io/ProgramClassReader.java +919 -0
  347. data/lib/proguard4.7/src/proguard/classfile/io/ProgramClassWriter.java +735 -0
  348. data/lib/proguard4.7/src/proguard/classfile/io/RuntimeDataInput.java +223 -0
  349. data/lib/proguard4.7/src/proguard/classfile/io/RuntimeDataOutput.java +224 -0
  350. data/lib/proguard4.7/src/proguard/classfile/io/package.html +3 -0
  351. data/lib/proguard4.7/src/proguard/classfile/package.html +15 -0
  352. data/lib/proguard4.7/src/proguard/classfile/util/AccessUtil.java +105 -0
  353. data/lib/proguard4.7/src/proguard/classfile/util/ClassReferenceInitializer.java +559 -0
  354. data/lib/proguard4.7/src/proguard/classfile/util/ClassSubHierarchyInitializer.java +77 -0
  355. data/lib/proguard4.7/src/proguard/classfile/util/ClassSuperHierarchyInitializer.java +163 -0
  356. data/lib/proguard4.7/src/proguard/classfile/util/ClassUtil.java +1227 -0
  357. data/lib/proguard4.7/src/proguard/classfile/util/DescriptorClassEnumeration.java +236 -0
  358. data/lib/proguard4.7/src/proguard/classfile/util/DynamicClassReferenceInitializer.java +485 -0
  359. data/lib/proguard4.7/src/proguard/classfile/util/DynamicMemberReferenceInitializer.java +944 -0
  360. data/lib/proguard4.7/src/proguard/classfile/util/ExternalTypeEnumeration.java +106 -0
  361. data/lib/proguard4.7/src/proguard/classfile/util/InstructionSequenceMatcher.java +754 -0
  362. data/lib/proguard4.7/src/proguard/classfile/util/InternalTypeEnumeration.java +204 -0
  363. data/lib/proguard4.7/src/proguard/classfile/util/MemberFinder.java +197 -0
  364. data/lib/proguard4.7/src/proguard/classfile/util/MethodLinker.java +160 -0
  365. data/lib/proguard4.7/src/proguard/classfile/util/SimplifiedVisitor.java +834 -0
  366. data/lib/proguard4.7/src/proguard/classfile/util/StringReferenceInitializer.java +90 -0
  367. data/lib/proguard4.7/src/proguard/classfile/util/StringSharer.java +172 -0
  368. data/lib/proguard4.7/src/proguard/classfile/util/WarningPrinter.java +136 -0
  369. data/lib/proguard4.7/src/proguard/classfile/util/package.html +3 -0
  370. data/lib/proguard4.7/src/proguard/classfile/visitor/AllClassVisitor.java +47 -0
  371. data/lib/proguard4.7/src/proguard/classfile/visitor/AllFieldVisitor.java +55 -0
  372. data/lib/proguard4.7/src/proguard/classfile/visitor/AllMemberVisitor.java +57 -0
  373. data/lib/proguard4.7/src/proguard/classfile/visitor/AllMethodVisitor.java +55 -0
  374. data/lib/proguard4.7/src/proguard/classfile/visitor/BottomClassFilter.java +69 -0
  375. data/lib/proguard4.7/src/proguard/classfile/visitor/ClassAccessFilter.java +88 -0
  376. data/lib/proguard4.7/src/proguard/classfile/visitor/ClassCleaner.java +275 -0
  377. data/lib/proguard4.7/src/proguard/classfile/visitor/ClassCollector.java +58 -0
  378. data/lib/proguard4.7/src/proguard/classfile/visitor/ClassCounter.java +56 -0
  379. data/lib/proguard4.7/src/proguard/classfile/visitor/ClassHierarchyTraveler.java +91 -0
  380. data/lib/proguard4.7/src/proguard/classfile/visitor/ClassNameFilter.java +112 -0
  381. data/lib/proguard4.7/src/proguard/classfile/visitor/ClassPoolFiller.java +55 -0
  382. data/lib/proguard4.7/src/proguard/classfile/visitor/ClassPoolVisitor.java +37 -0
  383. data/lib/proguard4.7/src/proguard/classfile/visitor/ClassPresenceFilter.java +93 -0
  384. data/lib/proguard4.7/src/proguard/classfile/visitor/ClassPrinter.java +1011 -0
  385. data/lib/proguard4.7/src/proguard/classfile/visitor/ClassVersionFilter.java +85 -0
  386. data/lib/proguard4.7/src/proguard/classfile/visitor/ClassVersionSetter.java +83 -0
  387. data/lib/proguard4.7/src/proguard/classfile/visitor/ClassVisitor.java +36 -0
  388. data/lib/proguard4.7/src/proguard/classfile/visitor/ConcreteClassDownTraveler.java +100 -0
  389. data/lib/proguard4.7/src/proguard/classfile/visitor/DotClassClassVisitor.java +89 -0
  390. data/lib/proguard4.7/src/proguard/classfile/visitor/ExceptClassFilter.java +69 -0
  391. data/lib/proguard4.7/src/proguard/classfile/visitor/ExceptClassesFilter.java +90 -0
  392. data/lib/proguard4.7/src/proguard/classfile/visitor/ExceptionCounter.java +52 -0
  393. data/lib/proguard4.7/src/proguard/classfile/visitor/ExceptionExcludedOffsetFilter.java +64 -0
  394. data/lib/proguard4.7/src/proguard/classfile/visitor/ExceptionHandlerConstantVisitor.java +62 -0
  395. data/lib/proguard4.7/src/proguard/classfile/visitor/ExceptionHandlerFilter.java +70 -0
  396. data/lib/proguard4.7/src/proguard/classfile/visitor/ExceptionOffsetFilter.java +64 -0
  397. data/lib/proguard4.7/src/proguard/classfile/visitor/ExceptionRangeFilter.java +68 -0
  398. data/lib/proguard4.7/src/proguard/classfile/visitor/ImplementedClassConstantFilter.java +69 -0
  399. data/lib/proguard4.7/src/proguard/classfile/visitor/ImplementedClassFilter.java +71 -0
  400. data/lib/proguard4.7/src/proguard/classfile/visitor/ImplementingClassConstantFilter.java +70 -0
  401. data/lib/proguard4.7/src/proguard/classfile/visitor/LibraryClassFilter.java +60 -0
  402. data/lib/proguard4.7/src/proguard/classfile/visitor/LibraryMemberFilter.java +73 -0
  403. data/lib/proguard4.7/src/proguard/classfile/visitor/MemberAccessFilter.java +122 -0
  404. data/lib/proguard4.7/src/proguard/classfile/visitor/MemberClassAccessFilter.java +106 -0
  405. data/lib/proguard4.7/src/proguard/classfile/visitor/MemberCollector.java +59 -0
  406. data/lib/proguard4.7/src/proguard/classfile/visitor/MemberCounter.java +72 -0
  407. data/lib/proguard4.7/src/proguard/classfile/visitor/MemberDescriptorFilter.java +113 -0
  408. data/lib/proguard4.7/src/proguard/classfile/visitor/MemberNameFilter.java +113 -0
  409. data/lib/proguard4.7/src/proguard/classfile/visitor/MemberToClassVisitor.java +90 -0
  410. data/lib/proguard4.7/src/proguard/classfile/visitor/MemberVisitor.java +40 -0
  411. data/lib/proguard4.7/src/proguard/classfile/visitor/MethodImplementationFilter.java +70 -0
  412. data/lib/proguard4.7/src/proguard/classfile/visitor/MethodImplementationTraveler.java +128 -0
  413. data/lib/proguard4.7/src/proguard/classfile/visitor/MultiClassPoolVisitor.java +88 -0
  414. data/lib/proguard4.7/src/proguard/classfile/visitor/MultiClassVisitor.java +97 -0
  415. data/lib/proguard4.7/src/proguard/classfile/visitor/MultiMemberVisitor.java +113 -0
  416. data/lib/proguard4.7/src/proguard/classfile/visitor/NamedClassVisitor.java +49 -0
  417. data/lib/proguard4.7/src/proguard/classfile/visitor/NamedFieldVisitor.java +61 -0
  418. data/lib/proguard4.7/src/proguard/classfile/visitor/NamedMethodVisitor.java +61 -0
  419. data/lib/proguard4.7/src/proguard/classfile/visitor/ProgramClassFilter.java +60 -0
  420. data/lib/proguard4.7/src/proguard/classfile/visitor/ProgramMemberFilter.java +73 -0
  421. data/lib/proguard4.7/src/proguard/classfile/visitor/ReferencedClassVisitor.java +255 -0
  422. data/lib/proguard4.7/src/proguard/classfile/visitor/ReferencedMemberVisitor.java +73 -0
  423. data/lib/proguard4.7/src/proguard/classfile/visitor/SimilarMemberVisitor.java +125 -0
  424. data/lib/proguard4.7/src/proguard/classfile/visitor/SimpleClassPrinter.java +167 -0
  425. data/lib/proguard4.7/src/proguard/classfile/visitor/SubclassFilter.java +91 -0
  426. data/lib/proguard4.7/src/proguard/classfile/visitor/SubclassTraveler.java +60 -0
  427. data/lib/proguard4.7/src/proguard/classfile/visitor/VariableClassVisitor.java +78 -0
  428. data/lib/proguard4.7/src/proguard/classfile/visitor/VariableMemberVisitor.java +96 -0
  429. data/lib/proguard4.7/src/proguard/classfile/visitor/package.html +40 -0
  430. data/lib/proguard4.7/src/proguard/evaluation/BasicBranchUnit.java +126 -0
  431. data/lib/proguard4.7/src/proguard/evaluation/BasicInvocationUnit.java +425 -0
  432. data/lib/proguard4.7/src/proguard/evaluation/BranchUnit.java +63 -0
  433. data/lib/proguard4.7/src/proguard/evaluation/ClassConstantValueFactory.java +53 -0
  434. data/lib/proguard4.7/src/proguard/evaluation/ConstantValueFactory.java +113 -0
  435. data/lib/proguard4.7/src/proguard/evaluation/InvocationUnit.java +62 -0
  436. data/lib/proguard4.7/src/proguard/evaluation/Processor.java +908 -0
  437. data/lib/proguard4.7/src/proguard/evaluation/Stack.java +560 -0
  438. data/lib/proguard4.7/src/proguard/evaluation/TracedStack.java +342 -0
  439. data/lib/proguard4.7/src/proguard/evaluation/TracedVariables.java +199 -0
  440. data/lib/proguard4.7/src/proguard/evaluation/Variables.java +347 -0
  441. data/lib/proguard4.7/src/proguard/evaluation/value/Category1Value.java +41 -0
  442. data/lib/proguard4.7/src/proguard/evaluation/value/Category2Value.java +41 -0
  443. data/lib/proguard4.7/src/proguard/evaluation/value/ComparisonValue.java +69 -0
  444. data/lib/proguard4.7/src/proguard/evaluation/value/CompositeDoubleValue.java +81 -0
  445. data/lib/proguard4.7/src/proguard/evaluation/value/CompositeFloatValue.java +81 -0
  446. data/lib/proguard4.7/src/proguard/evaluation/value/CompositeIntegerValue.java +87 -0
  447. data/lib/proguard4.7/src/proguard/evaluation/value/CompositeLongValue.java +87 -0
  448. data/lib/proguard4.7/src/proguard/evaluation/value/ConvertedByteValue.java +64 -0
  449. data/lib/proguard4.7/src/proguard/evaluation/value/ConvertedCharacterValue.java +64 -0
  450. data/lib/proguard4.7/src/proguard/evaluation/value/ConvertedDoubleValue.java +64 -0
  451. data/lib/proguard4.7/src/proguard/evaluation/value/ConvertedFloatValue.java +64 -0
  452. data/lib/proguard4.7/src/proguard/evaluation/value/ConvertedIntegerValue.java +64 -0
  453. data/lib/proguard4.7/src/proguard/evaluation/value/ConvertedLongValue.java +64 -0
  454. data/lib/proguard4.7/src/proguard/evaluation/value/ConvertedShortValue.java +64 -0
  455. data/lib/proguard4.7/src/proguard/evaluation/value/DoubleValue.java +359 -0
  456. data/lib/proguard4.7/src/proguard/evaluation/value/FloatValue.java +359 -0
  457. data/lib/proguard4.7/src/proguard/evaluation/value/IdentifiedDoubleValue.java +67 -0
  458. data/lib/proguard4.7/src/proguard/evaluation/value/IdentifiedFloatValue.java +67 -0
  459. data/lib/proguard4.7/src/proguard/evaluation/value/IdentifiedIntegerValue.java +67 -0
  460. data/lib/proguard4.7/src/proguard/evaluation/value/IdentifiedLongValue.java +67 -0
  461. data/lib/proguard4.7/src/proguard/evaluation/value/IdentifiedReferenceValue.java +102 -0
  462. data/lib/proguard4.7/src/proguard/evaluation/value/IdentifiedValueFactory.java +75 -0
  463. data/lib/proguard4.7/src/proguard/evaluation/value/InstructionOffsetValue.java +307 -0
  464. data/lib/proguard4.7/src/proguard/evaluation/value/IntegerValue.java +1002 -0
  465. data/lib/proguard4.7/src/proguard/evaluation/value/LongValue.java +554 -0
  466. data/lib/proguard4.7/src/proguard/evaluation/value/NegatedDoubleValue.java +71 -0
  467. data/lib/proguard4.7/src/proguard/evaluation/value/NegatedFloatValue.java +71 -0
  468. data/lib/proguard4.7/src/proguard/evaluation/value/NegatedIntegerValue.java +71 -0
  469. data/lib/proguard4.7/src/proguard/evaluation/value/NegatedLongValue.java +71 -0
  470. data/lib/proguard4.7/src/proguard/evaluation/value/ParticularDoubleValue.java +216 -0
  471. data/lib/proguard4.7/src/proguard/evaluation/value/ParticularFloatValue.java +216 -0
  472. data/lib/proguard4.7/src/proguard/evaluation/value/ParticularIntegerValue.java +383 -0
  473. data/lib/proguard4.7/src/proguard/evaluation/value/ParticularLongValue.java +271 -0
  474. data/lib/proguard4.7/src/proguard/evaluation/value/ReferenceValue.java +540 -0
  475. data/lib/proguard4.7/src/proguard/evaluation/value/SpecificDoubleValue.java +186 -0
  476. data/lib/proguard4.7/src/proguard/evaluation/value/SpecificFloatValue.java +186 -0
  477. data/lib/proguard4.7/src/proguard/evaluation/value/SpecificIntegerValue.java +354 -0
  478. data/lib/proguard4.7/src/proguard/evaluation/value/SpecificLongValue.java +259 -0
  479. data/lib/proguard4.7/src/proguard/evaluation/value/SpecificValueFactory.java +97 -0
  480. data/lib/proguard4.7/src/proguard/evaluation/value/TopValue.java +79 -0
  481. data/lib/proguard4.7/src/proguard/evaluation/value/UnknownDoubleValue.java +125 -0
  482. data/lib/proguard4.7/src/proguard/evaluation/value/UnknownFloatValue.java +125 -0
  483. data/lib/proguard4.7/src/proguard/evaluation/value/UnknownIntegerValue.java +216 -0
  484. data/lib/proguard4.7/src/proguard/evaluation/value/UnknownLongValue.java +160 -0
  485. data/lib/proguard4.7/src/proguard/evaluation/value/Value.java +169 -0
  486. data/lib/proguard4.7/src/proguard/evaluation/value/ValueFactory.java +193 -0
  487. data/lib/proguard4.7/src/proguard/evaluation/value/package.html +3 -0
  488. data/lib/proguard4.7/src/proguard/gui/ClassPathPanel.java +441 -0
  489. data/lib/proguard4.7/src/proguard/gui/ClassSpecificationDialog.java +546 -0
  490. data/lib/proguard4.7/src/proguard/gui/ClassSpecificationsPanel.java +231 -0
  491. data/lib/proguard4.7/src/proguard/gui/ExtensionFileFilter.java +78 -0
  492. data/lib/proguard4.7/src/proguard/gui/FilterBuilder.java +208 -0
  493. data/lib/proguard4.7/src/proguard/gui/FilterDialog.java +320 -0
  494. data/lib/proguard4.7/src/proguard/gui/GUIResources.java +56 -0
  495. data/lib/proguard4.7/src/proguard/gui/GUIResources.properties +643 -0
  496. data/lib/proguard4.7/src/proguard/gui/KeepSpecificationsPanel.java +81 -0
  497. data/lib/proguard4.7/src/proguard/gui/ListPanel.java +341 -0
  498. data/lib/proguard4.7/src/proguard/gui/MANIFEST.MF +3 -0
  499. data/lib/proguard4.7/src/proguard/gui/MemberSpecificationDialog.java +509 -0
  500. data/lib/proguard4.7/src/proguard/gui/MemberSpecificationsPanel.java +304 -0
  501. data/lib/proguard4.7/src/proguard/gui/MessageDialogRunnable.java +90 -0
  502. data/lib/proguard4.7/src/proguard/gui/OptimizationsDialog.java +251 -0
  503. data/lib/proguard4.7/src/proguard/gui/ProGuardGUI.java +1777 -0
  504. data/lib/proguard4.7/src/proguard/gui/ProGuardRunnable.java +154 -0
  505. data/lib/proguard4.7/src/proguard/gui/ReTraceRunnable.java +149 -0
  506. data/lib/proguard4.7/src/proguard/gui/SwingUtil.java +82 -0
  507. data/lib/proguard4.7/src/proguard/gui/TabbedPane.java +229 -0
  508. data/lib/proguard4.7/src/proguard/gui/TextAreaOutputStream.java +81 -0
  509. data/lib/proguard4.7/src/proguard/gui/arrow.gif +0 -0
  510. data/lib/proguard4.7/src/proguard/gui/boilerplate.pro +410 -0
  511. data/lib/proguard4.7/src/proguard/gui/default.pro +318 -0
  512. data/lib/proguard4.7/src/proguard/gui/package.html +3 -0
  513. data/lib/proguard4.7/src/proguard/gui/splash/BufferedSprite.java +145 -0
  514. data/lib/proguard4.7/src/proguard/gui/splash/CircleSprite.java +74 -0
  515. data/lib/proguard4.7/src/proguard/gui/splash/ClipSprite.java +85 -0
  516. data/lib/proguard4.7/src/proguard/gui/splash/ColorSprite.java +65 -0
  517. data/lib/proguard4.7/src/proguard/gui/splash/CompositeSprite.java +56 -0
  518. data/lib/proguard4.7/src/proguard/gui/splash/ConstantColor.java +51 -0
  519. data/lib/proguard4.7/src/proguard/gui/splash/ConstantDouble.java +49 -0
  520. data/lib/proguard4.7/src/proguard/gui/splash/ConstantFont.java +46 -0
  521. data/lib/proguard4.7/src/proguard/gui/splash/ConstantInt.java +49 -0
  522. data/lib/proguard4.7/src/proguard/gui/splash/ConstantString.java +49 -0
  523. data/lib/proguard4.7/src/proguard/gui/splash/ConstantTiming.java +57 -0
  524. data/lib/proguard4.7/src/proguard/gui/splash/FontSprite.java +65 -0
  525. data/lib/proguard4.7/src/proguard/gui/splash/ImageSprite.java +76 -0
  526. data/lib/proguard4.7/src/proguard/gui/splash/LinearColor.java +72 -0
  527. data/lib/proguard4.7/src/proguard/gui/splash/LinearDouble.java +55 -0
  528. data/lib/proguard4.7/src/proguard/gui/splash/LinearInt.java +55 -0
  529. data/lib/proguard4.7/src/proguard/gui/splash/LinearTiming.java +55 -0
  530. data/lib/proguard4.7/src/proguard/gui/splash/OverrideGraphics2D.java +598 -0
  531. data/lib/proguard4.7/src/proguard/gui/splash/RectangleSprite.java +114 -0
  532. data/lib/proguard4.7/src/proguard/gui/splash/SawToothTiming.java +53 -0
  533. data/lib/proguard4.7/src/proguard/gui/splash/ShadowedSprite.java +109 -0
  534. data/lib/proguard4.7/src/proguard/gui/splash/SineTiming.java +53 -0
  535. data/lib/proguard4.7/src/proguard/gui/splash/SmoothTiming.java +66 -0
  536. data/lib/proguard4.7/src/proguard/gui/splash/SplashPanel.java +235 -0
  537. data/lib/proguard4.7/src/proguard/gui/splash/Sprite.java +41 -0
  538. data/lib/proguard4.7/src/proguard/gui/splash/TextSprite.java +89 -0
  539. data/lib/proguard4.7/src/proguard/gui/splash/TimeSwitchSprite.java +75 -0
  540. data/lib/proguard4.7/src/proguard/gui/splash/Timing.java +34 -0
  541. data/lib/proguard4.7/src/proguard/gui/splash/TypeWriterString.java +71 -0
  542. data/lib/proguard4.7/src/proguard/gui/splash/VariableColor.java +36 -0
  543. data/lib/proguard4.7/src/proguard/gui/splash/VariableDouble.java +34 -0
  544. data/lib/proguard4.7/src/proguard/gui/splash/VariableFont.java +36 -0
  545. data/lib/proguard4.7/src/proguard/gui/splash/VariableInt.java +34 -0
  546. data/lib/proguard4.7/src/proguard/gui/splash/VariableSizeFont.java +65 -0
  547. data/lib/proguard4.7/src/proguard/gui/splash/VariableString.java +34 -0
  548. data/lib/proguard4.7/src/proguard/gui/splash/package.html +4 -0
  549. data/lib/proguard4.7/src/proguard/gui/vtitle.png +0 -0
  550. data/lib/proguard4.7/src/proguard/io/CascadingDataEntryWriter.java +94 -0
  551. data/lib/proguard4.7/src/proguard/io/ClassFilter.java +59 -0
  552. data/lib/proguard4.7/src/proguard/io/ClassReader.java +115 -0
  553. data/lib/proguard4.7/src/proguard/io/ClassRewriter.java +80 -0
  554. data/lib/proguard4.7/src/proguard/io/DataEntry.java +62 -0
  555. data/lib/proguard4.7/src/proguard/io/DataEntryClassWriter.java +85 -0
  556. data/lib/proguard4.7/src/proguard/io/DataEntryCopier.java +247 -0
  557. data/lib/proguard4.7/src/proguard/io/DataEntryDirectoryFilter.java +40 -0
  558. data/lib/proguard4.7/src/proguard/io/DataEntryFilter.java +38 -0
  559. data/lib/proguard4.7/src/proguard/io/DataEntryNameFilter.java +54 -0
  560. data/lib/proguard4.7/src/proguard/io/DataEntryObfuscator.java +150 -0
  561. data/lib/proguard4.7/src/proguard/io/DataEntryParentFilter.java +51 -0
  562. data/lib/proguard4.7/src/proguard/io/DataEntryPump.java +43 -0
  563. data/lib/proguard4.7/src/proguard/io/DataEntryReader.java +38 -0
  564. data/lib/proguard4.7/src/proguard/io/DataEntryRenamer.java +104 -0
  565. data/lib/proguard4.7/src/proguard/io/DataEntryRewriter.java +148 -0
  566. data/lib/proguard4.7/src/proguard/io/DataEntryWriter.java +73 -0
  567. data/lib/proguard4.7/src/proguard/io/DirectoryFilter.java +58 -0
  568. data/lib/proguard4.7/src/proguard/io/DirectoryPump.java +78 -0
  569. data/lib/proguard4.7/src/proguard/io/DirectoryWriter.java +165 -0
  570. data/lib/proguard4.7/src/proguard/io/FileDataEntry.java +96 -0
  571. data/lib/proguard4.7/src/proguard/io/FilteredDataEntryReader.java +90 -0
  572. data/lib/proguard4.7/src/proguard/io/FilteredDataEntryWriter.java +125 -0
  573. data/lib/proguard4.7/src/proguard/io/Finisher.java +37 -0
  574. data/lib/proguard4.7/src/proguard/io/JarReader.java +75 -0
  575. data/lib/proguard4.7/src/proguard/io/JarWriter.java +235 -0
  576. data/lib/proguard4.7/src/proguard/io/ManifestRewriter.java +216 -0
  577. data/lib/proguard4.7/src/proguard/io/NameFilter.java +83 -0
  578. data/lib/proguard4.7/src/proguard/io/ParentDataEntryWriter.java +75 -0
  579. data/lib/proguard4.7/src/proguard/io/RenamedDataEntry.java +83 -0
  580. data/lib/proguard4.7/src/proguard/io/ZipDataEntry.java +98 -0
  581. data/lib/proguard4.7/src/proguard/io/package.html +4 -0
  582. data/lib/proguard4.7/src/proguard/obfuscate/AttributeShrinker.java +120 -0
  583. data/lib/proguard4.7/src/proguard/obfuscate/AttributeUsageMarker.java +71 -0
  584. data/lib/proguard4.7/src/proguard/obfuscate/ClassObfuscator.java +533 -0
  585. data/lib/proguard4.7/src/proguard/obfuscate/ClassRenamer.java +109 -0
  586. data/lib/proguard4.7/src/proguard/obfuscate/DictionaryNameFactory.java +189 -0
  587. data/lib/proguard4.7/src/proguard/obfuscate/MapCleaner.java +57 -0
  588. data/lib/proguard4.7/src/proguard/obfuscate/MappingKeeper.java +177 -0
  589. data/lib/proguard4.7/src/proguard/obfuscate/MappingPrinter.java +147 -0
  590. data/lib/proguard4.7/src/proguard/obfuscate/MappingProcessor.java +79 -0
  591. data/lib/proguard4.7/src/proguard/obfuscate/MappingReader.java +199 -0
  592. data/lib/proguard4.7/src/proguard/obfuscate/MemberNameCleaner.java +60 -0
  593. data/lib/proguard4.7/src/proguard/obfuscate/MemberNameCollector.java +106 -0
  594. data/lib/proguard4.7/src/proguard/obfuscate/MemberNameConflictFixer.java +159 -0
  595. data/lib/proguard4.7/src/proguard/obfuscate/MemberNameFilter.java +120 -0
  596. data/lib/proguard4.7/src/proguard/obfuscate/MemberObfuscator.java +230 -0
  597. data/lib/proguard4.7/src/proguard/obfuscate/MemberSpecialNameFilter.java +101 -0
  598. data/lib/proguard4.7/src/proguard/obfuscate/MultiMappingProcessor.java +96 -0
  599. data/lib/proguard4.7/src/proguard/obfuscate/NameFactory.java +34 -0
  600. data/lib/proguard4.7/src/proguard/obfuscate/NameFactoryResetter.java +59 -0
  601. data/lib/proguard4.7/src/proguard/obfuscate/NameMarker.java +166 -0
  602. data/lib/proguard4.7/src/proguard/obfuscate/NumericNameFactory.java +49 -0
  603. data/lib/proguard4.7/src/proguard/obfuscate/Obfuscator.java +445 -0
  604. data/lib/proguard4.7/src/proguard/obfuscate/ParameterNameMarker.java +128 -0
  605. data/lib/proguard4.7/src/proguard/obfuscate/SimpleNameFactory.java +156 -0
  606. data/lib/proguard4.7/src/proguard/obfuscate/SourceFileRenamer.java +84 -0
  607. data/lib/proguard4.7/src/proguard/obfuscate/SpecialNameFactory.java +83 -0
  608. data/lib/proguard4.7/src/proguard/obfuscate/package.html +3 -0
  609. data/lib/proguard4.7/src/proguard/optimize/BootstrapMethodArgumentShrinker.java +103 -0
  610. data/lib/proguard4.7/src/proguard/optimize/ChangedCodePrinter.java +297 -0
  611. data/lib/proguard4.7/src/proguard/optimize/ConstantMemberFilter.java +77 -0
  612. data/lib/proguard4.7/src/proguard/optimize/ConstantParameterFilter.java +79 -0
  613. data/lib/proguard4.7/src/proguard/optimize/DuplicateInitializerFixer.java +215 -0
  614. data/lib/proguard4.7/src/proguard/optimize/DuplicateInitializerInvocationFixer.java +161 -0
  615. data/lib/proguard4.7/src/proguard/optimize/KeepMarker.java +95 -0
  616. data/lib/proguard4.7/src/proguard/optimize/KeptClassFilter.java +69 -0
  617. data/lib/proguard4.7/src/proguard/optimize/KeptMemberFilter.java +88 -0
  618. data/lib/proguard4.7/src/proguard/optimize/MemberDescriptorSpecializer.java +138 -0
  619. data/lib/proguard4.7/src/proguard/optimize/MethodDescriptorShrinker.java +317 -0
  620. data/lib/proguard4.7/src/proguard/optimize/MethodStaticizer.java +87 -0
  621. data/lib/proguard4.7/src/proguard/optimize/OptimizationInfoMemberFilter.java +94 -0
  622. data/lib/proguard4.7/src/proguard/optimize/Optimizer.java +963 -0
  623. data/lib/proguard4.7/src/proguard/optimize/ParameterShrinker.java +146 -0
  624. data/lib/proguard4.7/src/proguard/optimize/TailRecursionSimplifier.java +356 -0
  625. data/lib/proguard4.7/src/proguard/optimize/WriteOnlyFieldFilter.java +65 -0
  626. data/lib/proguard4.7/src/proguard/optimize/evaluation/EvaluationShrinker.java +2082 -0
  627. data/lib/proguard4.7/src/proguard/optimize/evaluation/EvaluationSimplifier.java +973 -0
  628. data/lib/proguard4.7/src/proguard/optimize/evaluation/LivenessAnalyzer.java +526 -0
  629. data/lib/proguard4.7/src/proguard/optimize/evaluation/LoadingInvocationUnit.java +195 -0
  630. data/lib/proguard4.7/src/proguard/optimize/evaluation/PartialEvaluator.java +1282 -0
  631. data/lib/proguard4.7/src/proguard/optimize/evaluation/StoringInvocationUnit.java +207 -0
  632. data/lib/proguard4.7/src/proguard/optimize/evaluation/TracedBranchUnit.java +59 -0
  633. data/lib/proguard4.7/src/proguard/optimize/evaluation/VariableOptimizer.java +345 -0
  634. data/lib/proguard4.7/src/proguard/optimize/evaluation/package.html +4 -0
  635. data/lib/proguard4.7/src/proguard/optimize/info/AccessMethodMarker.java +202 -0
  636. data/lib/proguard4.7/src/proguard/optimize/info/BackwardBranchMarker.java +90 -0
  637. data/lib/proguard4.7/src/proguard/optimize/info/CatchExceptionMarker.java +69 -0
  638. data/lib/proguard4.7/src/proguard/optimize/info/CaughtClassFilter.java +63 -0
  639. data/lib/proguard4.7/src/proguard/optimize/info/CaughtClassMarker.java +64 -0
  640. data/lib/proguard4.7/src/proguard/optimize/info/ClassOptimizationInfo.java +165 -0
  641. data/lib/proguard4.7/src/proguard/optimize/info/ClassOptimizationInfoSetter.java +47 -0
  642. data/lib/proguard4.7/src/proguard/optimize/info/DotClassFilter.java +63 -0
  643. data/lib/proguard4.7/src/proguard/optimize/info/DotClassMarker.java +96 -0
  644. data/lib/proguard4.7/src/proguard/optimize/info/ExceptionInstructionChecker.java +193 -0
  645. data/lib/proguard4.7/src/proguard/optimize/info/FieldOptimizationInfo.java +204 -0
  646. data/lib/proguard4.7/src/proguard/optimize/info/InstanceofClassFilter.java +63 -0
  647. data/lib/proguard4.7/src/proguard/optimize/info/InstanceofClassMarker.java +93 -0
  648. data/lib/proguard4.7/src/proguard/optimize/info/InstantiationClassFilter.java +62 -0
  649. data/lib/proguard4.7/src/proguard/optimize/info/InstantiationClassMarker.java +93 -0
  650. data/lib/proguard4.7/src/proguard/optimize/info/MemberOptimizationInfoSetter.java +59 -0
  651. data/lib/proguard4.7/src/proguard/optimize/info/MethodInvocationMarker.java +107 -0
  652. data/lib/proguard4.7/src/proguard/optimize/info/MethodOptimizationInfo.java +302 -0
  653. data/lib/proguard4.7/src/proguard/optimize/info/NoSideEffectMethodMarker.java +91 -0
  654. data/lib/proguard4.7/src/proguard/optimize/info/NonPrivateMemberMarker.java +171 -0
  655. data/lib/proguard4.7/src/proguard/optimize/info/PackageVisibleMemberContainingClassMarker.java +85 -0
  656. data/lib/proguard4.7/src/proguard/optimize/info/PackageVisibleMemberInvokingClassMarker.java +129 -0
  657. data/lib/proguard4.7/src/proguard/optimize/info/ParameterUsageMarker.java +285 -0
  658. data/lib/proguard4.7/src/proguard/optimize/info/ReadWriteFieldMarker.java +163 -0
  659. data/lib/proguard4.7/src/proguard/optimize/info/SideEffectInstructionChecker.java +245 -0
  660. data/lib/proguard4.7/src/proguard/optimize/info/SideEffectMethodMarker.java +175 -0
  661. data/lib/proguard4.7/src/proguard/optimize/info/StaticInitializerContainingClassFilter.java +62 -0
  662. data/lib/proguard4.7/src/proguard/optimize/info/StaticInitializerContainingClassMarker.java +65 -0
  663. data/lib/proguard4.7/src/proguard/optimize/info/SuperInvocationMarker.java +93 -0
  664. data/lib/proguard4.7/src/proguard/optimize/info/VariableUsageMarker.java +96 -0
  665. data/lib/proguard4.7/src/proguard/optimize/info/package.html +4 -0
  666. data/lib/proguard4.7/src/proguard/optimize/package.html +4 -0
  667. data/lib/proguard4.7/src/proguard/optimize/peephole/BranchTargetFinder.java +687 -0
  668. data/lib/proguard4.7/src/proguard/optimize/peephole/ClassFinalizer.java +84 -0
  669. data/lib/proguard4.7/src/proguard/optimize/peephole/ClassMerger.java +576 -0
  670. data/lib/proguard4.7/src/proguard/optimize/peephole/GotoCommonCodeReplacer.java +266 -0
  671. data/lib/proguard4.7/src/proguard/optimize/peephole/GotoGotoReplacer.java +115 -0
  672. data/lib/proguard4.7/src/proguard/optimize/peephole/GotoReturnReplacer.java +115 -0
  673. data/lib/proguard4.7/src/proguard/optimize/peephole/HorizontalClassMerger.java +90 -0
  674. data/lib/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceConstants.java +4424 -0
  675. data/lib/proguard4.7/src/proguard/optimize/peephole/InstructionSequenceReplacer.java +420 -0
  676. data/lib/proguard4.7/src/proguard/optimize/peephole/InstructionSequencesReplacer.java +138 -0
  677. data/lib/proguard4.7/src/proguard/optimize/peephole/MemberPrivatizer.java +103 -0
  678. data/lib/proguard4.7/src/proguard/optimize/peephole/MethodFinalizer.java +93 -0
  679. data/lib/proguard4.7/src/proguard/optimize/peephole/MethodInliner.java +597 -0
  680. data/lib/proguard4.7/src/proguard/optimize/peephole/NopRemover.java +89 -0
  681. data/lib/proguard4.7/src/proguard/optimize/peephole/PeepholeOptimizer.java +103 -0
  682. data/lib/proguard4.7/src/proguard/optimize/peephole/ReachableCodeMarker.java +262 -0
  683. data/lib/proguard4.7/src/proguard/optimize/peephole/RetargetedInnerClassAttributeRemover.java +170 -0
  684. data/lib/proguard4.7/src/proguard/optimize/peephole/TargetClassChanger.java +455 -0
  685. data/lib/proguard4.7/src/proguard/optimize/peephole/UnreachableCodeRemover.java +143 -0
  686. data/lib/proguard4.7/src/proguard/optimize/peephole/UnreachableExceptionRemover.java +163 -0
  687. data/lib/proguard4.7/src/proguard/optimize/peephole/VariableShrinker.java +129 -0
  688. data/lib/proguard4.7/src/proguard/optimize/peephole/VerticalClassMerger.java +88 -0
  689. data/lib/proguard4.7/src/proguard/optimize/peephole/package.html +3 -0
  690. data/lib/proguard4.7/src/proguard/package.html +5 -0
  691. data/lib/proguard4.7/src/proguard/preverify/CodePreverifier.java +611 -0
  692. data/lib/proguard4.7/src/proguard/preverify/CodeSubroutineInliner.java +406 -0
  693. data/lib/proguard4.7/src/proguard/preverify/Preverifier.java +73 -0
  694. data/lib/proguard4.7/src/proguard/preverify/SubroutineInliner.java +73 -0
  695. data/lib/proguard4.7/src/proguard/retrace/MANIFEST.MF +3 -0
  696. data/lib/proguard4.7/src/proguard/retrace/ReTrace.java +749 -0
  697. data/lib/proguard4.7/src/proguard/retrace/package.html +4 -0
  698. data/lib/proguard4.7/src/proguard/shrink/AnnotationUsageMarker.java +333 -0
  699. data/lib/proguard4.7/src/proguard/shrink/ClassShrinker.java +458 -0
  700. data/lib/proguard4.7/src/proguard/shrink/InnerUsageMarker.java +174 -0
  701. data/lib/proguard4.7/src/proguard/shrink/InterfaceUsageMarker.java +152 -0
  702. data/lib/proguard4.7/src/proguard/shrink/ShortestUsageMark.java +183 -0
  703. data/lib/proguard4.7/src/proguard/shrink/ShortestUsageMarker.java +277 -0
  704. data/lib/proguard4.7/src/proguard/shrink/ShortestUsagePrinter.java +210 -0
  705. data/lib/proguard4.7/src/proguard/shrink/Shrinker.java +181 -0
  706. data/lib/proguard4.7/src/proguard/shrink/UsageMarker.java +1036 -0
  707. data/lib/proguard4.7/src/proguard/shrink/UsagePrinter.java +177 -0
  708. data/lib/proguard4.7/src/proguard/shrink/UsedClassFilter.java +74 -0
  709. data/lib/proguard4.7/src/proguard/shrink/UsedMemberFilter.java +93 -0
  710. data/lib/proguard4.7/src/proguard/shrink/package.html +3 -0
  711. data/lib/proguard4.7/src/proguard/util/AndMatcher.java +49 -0
  712. data/lib/proguard4.7/src/proguard/util/ClassNameParser.java +216 -0
  713. data/lib/proguard4.7/src/proguard/util/ConstantMatcher.java +48 -0
  714. data/lib/proguard4.7/src/proguard/util/EmptyStringMatcher.java +36 -0
  715. data/lib/proguard4.7/src/proguard/util/ExtensionMatcher.java +63 -0
  716. data/lib/proguard4.7/src/proguard/util/FileNameParser.java +121 -0
  717. data/lib/proguard4.7/src/proguard/util/FixedStringMatcher.java +56 -0
  718. data/lib/proguard4.7/src/proguard/util/ListMatcher.java +69 -0
  719. data/lib/proguard4.7/src/proguard/util/ListParser.java +137 -0
  720. data/lib/proguard4.7/src/proguard/util/ListUtil.java +180 -0
  721. data/lib/proguard4.7/src/proguard/util/NameParser.java +106 -0
  722. data/lib/proguard4.7/src/proguard/util/NotMatcher.java +46 -0
  723. data/lib/proguard4.7/src/proguard/util/OrMatcher.java +49 -0
  724. data/lib/proguard4.7/src/proguard/util/SettableMatcher.java +46 -0
  725. data/lib/proguard4.7/src/proguard/util/StringMatcher.java +38 -0
  726. data/lib/proguard4.7/src/proguard/util/StringParser.java +35 -0
  727. data/lib/proguard4.7/src/proguard/util/VariableStringMatcher.java +126 -0
  728. data/lib/proguard4.7/src/proguard/util/package.html +3 -0
  729. data/lib/proguard4.7/src/proguard/wtk/ProGuardObfuscator.java +141 -0
  730. data/lib/proguard4.7/src/proguard/wtk/default.pro +114 -0
  731. data/lib/proguard4.7/src/proguard/wtk/package.html +3 -0
  732. metadata +960 -10
@@ -0,0 +1,1243 @@
1
+ <!doctype html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
+ <html>
3
+ <head>
4
+ <meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
5
+ <meta http-equiv="content-style-type" content="text/css">
6
+ <link rel="stylesheet" type="text/css" href="style.css">
7
+ <title>ProGuard Usage</title>
8
+ <script type="text/javascript" language="JavaScript">
9
+ <!--
10
+ if (window.self==window.top)
11
+ window.top.location.replace("../index.html#"+window.location.pathname+window.location.hash);
12
+ else {
13
+ var hash="#"+window.location.pathname.replace(window.top.location.pathname.replace("index.html", ""), "");
14
+ if (window.top.location.hash!=hash)
15
+ window.top.location.hash=hash;
16
+ }
17
+ //-->
18
+ </script>
19
+ </head>
20
+ <body>
21
+
22
+ <h2>Usage</h2>
23
+
24
+ To run ProGuard, just type:
25
+ <p class="code">
26
+ <code><b>java -jar proguard.jar </b></code><i>options</i> ...
27
+ </p>
28
+ You can find the ProGuard jar in the <code>lib</code> directory of the
29
+ ProGuard distribution. Alternatively, the <code>bin</code> directory contains
30
+ some short Linux and Windows scripts containing this command. Typically, you'll
31
+ put most options in a configuration file (say, <code>myconfig.pro</code>), and
32
+ just call:
33
+ <p class="code">
34
+ <code><b>java -jar proguard.jar @myconfig.pro</b></code>
35
+ </p>
36
+ You can combine command line options and options from configuration files. For
37
+ instance:
38
+ <p class="code">
39
+ <code><b>java -jar proguard.jar @myconfig.pro -verbose</b></code>
40
+ </p>
41
+ <p>
42
+ You can add comments in a configuration file, starting with a
43
+ <code><b>#</b></code> character and continuing until the end of the line.
44
+ <p>
45
+ Extra whitespace between words and delimiters is ignored. File names with
46
+ spaces or special characters should be quoted with single or double quotes.
47
+ <p>
48
+ Options can be grouped arbitrarily in arguments on the command line and in
49
+ lines in configuration files. This means that you can quote arbitrary sections
50
+ of command line options, to avoid shell expansion of special characters, for
51
+ instance.
52
+ <p>
53
+ The order of the options is generally irrelevant. For quick experiments, you
54
+ can abbreviate them to their first unique characters.
55
+ <p>
56
+
57
+ The sections below provide more details:
58
+ <ul>
59
+ <li><a href="#iooptions">Input/Output Options</a></li>
60
+ <li><a href="#keepoptions">Keep Options</a></li>
61
+ <li><a href="#shrinkingoptions">Shrinking Options</a></li>
62
+ <li><a href="#optimizationoptions">Optimization Options</a></li>
63
+ <li><a href="#obfuscationoptions">Obfuscation Options</a></li>
64
+ <li><a href="#preverificationoptions">Preverification Options</a></li>
65
+ <li><a href="#generaloptions">General Options</a></li>
66
+ <li><a href="#classpath">Class Paths</a></li>
67
+ <li><a href="#filename">File Names</a></li>
68
+ <li><a href="#filefilters">File Filters</a></li>
69
+ <li><a href="#filters">Filters</a></li>
70
+ <li><a href="#keepoverview">Overview of <code>Keep</code> Options</a></li>
71
+ <li><a href="#keepoptionmodifiers">Keep Option Modifiers</a></li>
72
+ <li><a href="#classspecification">Class Specifications</a></li>
73
+ </ul>
74
+
75
+ <h2><a name="iooptions">Input/Output Options</a></h2>
76
+
77
+ <dl>
78
+ <dt><a name="at"><code><b>@</b></code></a><a href="#filename"><i>filename</i></a></dt>
79
+
80
+ <dd>Short for '<a href="#include"><code>-include</code></a>
81
+ <a href="#filename"><i>filename</i></a>'.</dd>
82
+
83
+ <dt><a name="include"><code><b>-include</b></code></a>
84
+ <a href="#filename"><i>filename</i></a></dt>
85
+
86
+ <dd>Recursively reads configuration options from the given file
87
+ <i>filename</i>.</dd>
88
+
89
+ <dt><a name="basedirectory"><code><b>-basedirectory</b></code></a>
90
+ <a href="#filename"><i>directoryname</i></a></dt>
91
+
92
+ <dd>Specifies the base directory for all subsequent relative file names in
93
+ these configuration arguments or this configuration file.</dd>
94
+
95
+ <dt><a name="injars"><code><b>-injars</b></code></a>
96
+ <a href="#classpath"><i>class_path</i></a></dt>
97
+
98
+ <dd>Specifies the input jars (or wars, ears, zips, or directories) of the
99
+ application to be processed. The class files in these jars will be
100
+ processed and written to the output jars. By default, any non-class files
101
+ will be copied without changes. Please be aware of any temporary files
102
+ (e.g. created by IDEs), especially if you are reading your input files
103
+ straight from directories. The entries in the class path can be filtered,
104
+ as explained in the <a href="#filefilters">filters</a> section. For better
105
+ readability, class path entries can be specified using multiple
106
+ <code>-injars</code> options.</dd>
107
+
108
+ <dt><a name="outjars"><code><b>-outjars</b></code></a>
109
+ <a href="#classpath"><i>class_path</i></a></dt>
110
+
111
+ <dd>Specifies the names of the output jars (or wars, ears, zips, or
112
+ directories). The processed input of the preceding <code>-injars</code>
113
+ options will be written to the named jars. This allows you to collect the
114
+ contents of groups of input jars into corresponding groups of output jars.
115
+ In addition, the output entries can be filtered, as explained in
116
+ the <a href="#filefilters">filters</a> section. Each processed class file
117
+ or resource file is then written to the first output entry with a matching
118
+ filter, within the group of output jars.
119
+ <p>
120
+ You must avoid letting the output files overwrite any input files. For
121
+ better readability, class path entries can be specified using multiple
122
+ <code>-outjars</code> options. Without any <code>-outjars</code> options,
123
+ no jars will be written.</dd>
124
+
125
+ <dt><a name="libraryjars"><code><b>-libraryjars</b></code></a>
126
+ <a href="#classpath"><i>class_path</i></a></dt>
127
+
128
+ <dd>Specifies the library jars (or wars, ears, zips, or directories) of the
129
+ application to be processed. The files in these jars will not be included
130
+ in the output jars. The specified library jars should at least contain the
131
+ class files that are <i>extended</i> by application class files. Library
132
+ class files that are only <i>called</i> needn't be present, although their
133
+ presence can improve the results of the optimization step. The entries in
134
+ the class path can be filtered, as explained in the <a
135
+ href="#filefilters">filters</a> section. For better readability, class path
136
+ entries can be specified using multiple <code>-libraryjars</code> options.
137
+ <p>
138
+ Please note that the boot path and the class path set for running ProGuard
139
+ are not considered when looking for library classes. This means that you
140
+ explicitly have to specify the run-time jar that your code will use.
141
+ Although this may seem cumbersome, it allows you to process applications
142
+ targeted at different run-time environments. For example, you can process
143
+ <a href="examples.html#application">J2SE applications</a> as well as <a
144
+ href="examples.html#midlet">JME midlets</a>, just by specifying the
145
+ appropriate run-time jar.</dd>
146
+
147
+ <dt><a name="skipnonpubliclibraryclasses"><code><b>-skipnonpubliclibraryclasses</b></code></a></dt>
148
+
149
+ <dd>Specifies to skip non-public classes while reading library jars, to speed
150
+ up processing and reduce memory usage of ProGuard. By default, ProGuard
151
+ reads non-public and public library classes alike. However, non-public
152
+ classes are often not relevant, if they don't affect the actual program
153
+ code in the input jars. Ignoring them then speeds up ProGuard, without
154
+ affecting the output. Unfortunately, some libraries, including recent JSE
155
+ run-time libraries, contain non-public library classes that are extended
156
+ by public library classes. You then can't use this option. ProGuard will
157
+ print out warnings if it can't find classes due to this option being
158
+ set.</dd>
159
+
160
+ <dt><a name="dontskipnonpubliclibraryclasses"><code><b>-dontskipnonpubliclibraryclasses</b></code></a></dt>
161
+
162
+ <dd>Specifies not to ignore non-public library classes. As of version 4.5, this
163
+ is the default setting.</dd>
164
+
165
+ <dt><a name="dontskipnonpubliclibraryclassmembers"><code><b>-dontskipnonpubliclibraryclassmembers</b></code></a></dt>
166
+
167
+ <dd>Specifies not to ignore package visible library class members (fields and
168
+ methods). By default, ProGuard skips these class members while parsing
169
+ library classes, as program classes will generally not refer to them.
170
+ Sometimes however, program classes reside in the same packages as library
171
+ classes, and they do refer to their package visible class members. In
172
+ those cases, it can be useful to actually read the class members, in order
173
+ to make sure the processed code remains consistent.</dd>
174
+
175
+ <dt><a name="keepdirectories"><code><b>-keepdirectories</b></code></a>
176
+ [<i><a href="#filefilters">directory_filter</a></i>]</dt>
177
+
178
+ <dd>Specifies the directories to be kept in the output jars (or wars, ears, or
179
+ directories). By default, directory entries are removed. This reduces the
180
+ jar size, but it may be undesirable if the program code tries to find them
181
+ with constructs like "<code>MyClass.class.getResource("")</code>". If the
182
+ option is specified without a filter, all directories are kept. With a
183
+ filter, only matching directories are kept.</dd>
184
+
185
+ <dt><a name="target"><code><b>-target</b></code></a> <i>version</i></dt>
186
+
187
+ <dd>Specifies the version number to be set in the processed class files. The
188
+ version number can be one of <code>1.0</code>, <code>1.1</code>,
189
+ <code>1.2</code>, <code>1.3</code>, <code>1.4</code>, <code>1.5</code> (or
190
+ just <code>5</code>), <code>1.6</code> (or just <code>6</code>), or
191
+ <code>1.7</code> (or just <code>7</code>). By default, the version numbers
192
+ of the class files are left unchanged. For example, you may want to
193
+ <a href="examples.html#upgrade">upgrade class files to Java 6</a>, by
194
+ changing their version numbers and having them preverified.</dd>
195
+
196
+ <dt><a name="forceprocessing"><code><b>-forceprocessing</b></code></a></dt>
197
+
198
+ <dd>Specifies to process the input, even if the output seems up to date. The
199
+ up-to-dateness test is based on a comparison of the date stamps of the
200
+ specified input, output, and configuration files or directories.</dd>
201
+
202
+ </dl>
203
+ <p>
204
+
205
+ <h2><a name="keepoptions">Keep Options</a></h2>
206
+
207
+ <dl>
208
+ <dt><a name="keep"><code><b>-keep</b></code></a>
209
+ [<a href="#keepoptionmodifiers">,<i>modifier</i></a>,...]
210
+ <a href="#classspecification"><i>class_specification</i></a></dt>
211
+
212
+ <dd>Specifies classes and class members (fields and methods) to be preserved
213
+ as entry points to your code. For example, in order to <a
214
+ href="examples.html#application">keep an application</a>, you can specify
215
+ the main class along with its main method. In order to <a
216
+ href="examples.html#library">process a library</a>, you should specify all
217
+ publicly accessible elements.</dd>
218
+
219
+ <dt><a name="keepclassmembers"><code><b>-keepclassmembers</b></code></a>
220
+ [<a href="#keepoptionmodifiers">,<i>modifier</i></a>,...]
221
+ <a href="#classspecification"><i>class_specification</i></a></dt>
222
+
223
+ <dd>Specifies class members to be preserved, if their classes are preserved as
224
+ well. For example, you may want to <a
225
+ href="examples.html#serializable">keep all serialization fields and
226
+ methods</a> of classes that implement the <code>Serializable</code>
227
+ interface.</dd>
228
+
229
+ <dt><a name="keepclasseswithmembers"><code><b>-keepclasseswithmembers</b></code></a>
230
+ [<a href="#keepoptionmodifiers">,<i>modifier</i></a>,...]
231
+ <a href="#classspecification"><i>class_specification</i></a></dt>
232
+
233
+ <dd>Specifies classes and class members to be preserved, on the condition that
234
+ all of the specified class members are present. For example, you may want
235
+ to <a href="examples.html#applications">keep all applications</a> that
236
+ have a main method, without having to list them explicitly.</dd>
237
+
238
+ <dt><a name="keepnames"><code><b>-keepnames</b></code></a>
239
+ <a href="#classspecification"><i>class_specification</i></a></dt>
240
+
241
+ <dd>Short for <a href="#keep"><code>-keep</code></a>,<a href="#allowshrinking"><code>allowshrinking</code></a>
242
+ <a href="#classspecification"><i>class_specification</i></a>
243
+ <p>
244
+ Specifies classes and class members whose names are to be preserved, if
245
+ they aren't removed in the shrinking phase. For example, you may want to
246
+ <a href="examples.html#serializable">keep all class names</a> of classes
247
+ that implement the <code>Serializable</code> interface, so that the
248
+ processed code remains compatible with any originally serialized classes.
249
+ Classes that aren't used at all can still be removed. Only applicable when
250
+ obfuscating.</dd>
251
+
252
+ <dt><a name="keepclassmembernames"><code><b>-keepclassmembernames</b></code></a>
253
+ <a href="#classspecification"><i>class_specification</i></a></dt>
254
+
255
+ <dd>Short for <a href="#keepclassmembers"><code>-keepclassmembers</code></a>,<a href="#allowshrinking"><code>allowshrinking</code></a>
256
+ <a href="#classspecification"><i>class_specification</i></a>
257
+ <p>
258
+ Specifies class members whose names are to be preserved, if they aren't
259
+ removed in the shrinking phase. For example, you may want to preserve the
260
+ name of the synthetic <code>class$</code> methods
261
+ when <a href="examples.html#library">processing a library</a> compiled by
262
+ JDK 1.2 or older, so obfuscators can detect it again when processing an
263
+ application that uses the processed library (although ProGuard itself
264
+ doesn't need this). Only applicable when obfuscating.</dd>
265
+
266
+ <dt><a name="keepclasseswithmembernames"><code><b>-keepclasseswithmembernames</b></code></a>
267
+ <a href="#classspecification"><i>class_specification</i></a></dt>
268
+
269
+ <dd>Short for <a href="#keepclasseswithmembers"><code>-keepclasseswithmembers</code></a>,<a href="#allowshrinking"><code>allowshrinking</code></a>
270
+ <a href="#classspecification"><i>class_specification</i></a>
271
+ <p>
272
+ Specifies classes and class members whose names are to be preserved, on
273
+ the condition that all of the specified class members are present after
274
+ the shrinking phase. For example, you may want to <a
275
+ href="examples.html#native">keep all native method names</a> and the names
276
+ of their classes, so that the processed code can still link with the
277
+ native library code. Native methods that aren't used at all can still be
278
+ removed. If a class file is used, but none of its native methods are, its
279
+ name will still be obfuscated. Only applicable when obfuscating.</dd>
280
+
281
+ <dt><a name="printseeds"><code><b>-printseeds</b></code></a>
282
+ [<a href="#filename"><i>filename</i></a>]</dt>
283
+
284
+ <dd>Specifies to exhaustively list classes and class members matched by the
285
+ various <code>-keep</code> options. The list is printed to the standard
286
+ output or to the given file. The list can be useful to verify if the
287
+ intended class members are really found, especially if you're using
288
+ wildcards. For example, you may want to list all the <a
289
+ href="examples.html#applications">applications</a> or all the <a
290
+ href="examples.html#applets">applets</a> that you are keeping.</dd>
291
+
292
+ </dl>
293
+ <p>
294
+
295
+ <h2><a name="shrinkingoptions">Shrinking Options</a></h2>
296
+
297
+ <dl>
298
+ <dt><a name="dontshrink"><code><b>-dontshrink</b></code></a></dt>
299
+
300
+ <dd>Specifies not to shrink the input class files. By default, shrinking is
301
+ applied; all classes and class members are removed, except for the ones
302
+ listed by the various <code>-keep</code> options, and the ones on which
303
+ they depend, directly or indirectly. A shrinking step is also applied
304
+ after each optimization step, since some optimizations may open the
305
+ possibility to remove more classes and class members.</dd>
306
+
307
+ <dt><a name="printusage"><code><b>-printusage</b></code></a>
308
+ [<a href="#filename"><i>filename</i></a>]</dt>
309
+
310
+ <dd>Specifies to list dead code of the input class files. The list is printed
311
+ to the standard output or to the given file. For example, you can <a
312
+ href="examples.html#deadcode">list the unused code of an application</a>.
313
+ Only applicable when shrinking.</dd>
314
+
315
+ <dt><a name="whyareyoukeeping"><code><b>-whyareyoukeeping</b></code></a>
316
+ <a href="#classspecification"><i>class_specification</i></a></dt>
317
+
318
+ <dd>Specifies to print details on why the given classes and class members are
319
+ being kept in the shrinking step. This can be useful if you are wondering
320
+ why some given element is present in the output. In general, there can be
321
+ many different reasons. This option prints the shortest chain of methods
322
+ to a specified seed or entry point, for each specified class and class
323
+ member. <i>In the current implementation, the shortest chain that is
324
+ printed out may sometimes contain circular deductions -- these do not
325
+ reflect the actual shrinking process.</i> If the <a
326
+ href="#verbose"><code>-verbose</code></a> option if specified, the traces
327
+ include full field and method signatures. Only applicable when
328
+ shrinking.</dd>
329
+
330
+ </dl>
331
+ <p>
332
+
333
+ <h2><a name="optimizationoptions">Optimization Options</a></h2>
334
+
335
+ <dl>
336
+ <dt><a name="dontoptimize"><code><b>-dontoptimize</b></code></a></dt>
337
+
338
+ <dd>Specifies not to optimize the input class files. By default, optimization
339
+ is enabled; all methods are optimized at a bytecode level.</dd>
340
+
341
+ <dt><a name="optimizations"><code><b>-optimizations</b></code></a>
342
+ <a href="optimizations.html"><i>optimization_filter</i></a></dt>
343
+
344
+ <dd>Specifies the optimizations to be enabled and disabled, at a more
345
+ fine-grained level. Only applicable when optimizing. <i>This is an expert
346
+ option.</i></dd>
347
+
348
+ <dt><a name="optimizationpasses"><code><b>-optimizationpasses</b></code></a> <i>n</i></dt>
349
+
350
+ <dd>Specifies the number of optimization passes to be performed. By default, a
351
+ single pass is performed. Multiple passes may result in further
352
+ improvements. If no improvements are found after an optimization pass, the
353
+ optimization is ended. Only applicable when optimizing.</dd>
354
+
355
+ <dt><a name="assumenosideeffects"><code><b>-assumenosideeffects</b></code></a>
356
+ <a href="#classspecification"><i>class_specification</i></a></dt>
357
+
358
+ <dd>Specifies methods that don't have any side effects (other than maybe
359
+ returning a value). In the optimization step, ProGuard will then remove
360
+ calls to such methods, if it can determine that the return values aren't
361
+ used. Note that ProGuard will analyze your program code to find such
362
+ methods automatically. It will not analyze library code, for which this
363
+ option can thus be useful. For example, you could specify the method
364
+ <code>System.currentTimeMillis()</code>, so that any idle calls to it will
365
+ be removed. Note that ProGuard applies the option to the entire hierarchy
366
+ of the specified methods. Only applicable when optimizing. In general,
367
+ making assumptions can be dangerous; you can easily break the processed
368
+ code. <i>Only use this option if you know what you're doing!</i></dd>
369
+
370
+ <dt><a name="allowaccessmodification"><code><b>-allowaccessmodification</b></code></a></dt>
371
+
372
+ <dd>Specifies that the access modifiers of classes and class members may be
373
+ broadened during processing. This can improve the results of the
374
+ optimization step. For instance, when inlining a public getter, it may be
375
+ necessary to make the accessed field public too. Although Java's binary
376
+ compatibility specifications formally do not require this (cfr. <a href=
377
+ "http://java.sun.com/docs/books/jls/second_edition/html/j.title.doc.html"
378
+ >The Java Language Specification, Second Edition</a>, <a href=
379
+ "http://java.sun.com/docs/books/jls/second_edition/html/binaryComp.doc.html#47259"
380
+ >Section 13.4.6</a>), some virtual machines would have problems with the
381
+ processed code otherwise. Only applicable when optimizing (and when
382
+ obfuscating with the <a
383
+ href="#repackageclasses"><code>-repackageclasses</code></a> option).
384
+ <p>
385
+ <i>Counter-indication:</i> you probably shouldn't use this option when
386
+ processing code that is to be used as a library, since classes and class
387
+ members that weren't designed to be public in the API may become
388
+ public.</dd>
389
+
390
+ <dt><a name="mergeinterfacesaggressively"><code><b>-mergeinterfacesaggressively</b></code></a></dt>
391
+
392
+ <dd>Specifies that interfaces may be merged, even if their implementing
393
+ classes don't implement all interface methods. This can reduce the size of
394
+ the output by reducing the total number of classes. Note that Java's
395
+ binary compatibility specifications allow such constructs (cfr. <a href=
396
+ "http://java.sun.com/docs/books/jls/second_edition/html/j.title.doc.html"
397
+ >The Java Language Specification, Second Edition</a>, <a href=
398
+ "http://java.sun.com/docs/books/jls/second_edition/html/binaryComp.doc.html#45347"
399
+ >Section 13.5.3</a>), even if they are not allowed in the Java language
400
+ (cfr. <a href=
401
+ "http://java.sun.com/docs/books/jls/second_edition/html/j.title.doc.html"
402
+ >The Java Language Specification, Second Edition</a>, <a href=
403
+ "http://java.sun.com/docs/books/jls/second_edition/html/classes.doc.html#34031"
404
+ >Section 8.1.4</a>). Only applicable when optimizing.
405
+ <p>
406
+ <i>Counter-indication:</i> setting this option can reduce the performance
407
+ of the processed code on some JVMs, since advanced just-in-time
408
+ compilation tends to favor more interfaces with fewer implementing
409
+ classes. Worse, some JVMs may not be able to handle the resulting code.
410
+ Notably:
411
+ <ul>
412
+ <li>Sun's JRE 1.3 may throw an <code>InternalError</code> when
413
+ encountering more than 256 <i>Miranda</i> methods (interface methods
414
+ without implementations) in a class.</li>
415
+ </ul></dd>
416
+
417
+ </dl>
418
+ <p>
419
+
420
+ <h2><a name="obfuscationoptions">Obfuscation Options</a></h2>
421
+
422
+ <dl>
423
+ <dt><a name="dontobfuscate"><code><b>-dontobfuscate</b></code></a></dt>
424
+
425
+ <dd>Specifies not to obfuscate the input class files. By default, obfuscation
426
+ is applied; classes and class members receive new short random names,
427
+ except for the ones listed by the various <code>-keep</code> options.
428
+ Internal attributes that are useful for debugging, such as source files
429
+ names, variable names, and line numbers are removed.</dd>
430
+
431
+ <dt><a name="printmapping"><code><b>-printmapping</b></code></a>
432
+ [<a href="#filename"><i>filename</i></a>]</dt>
433
+
434
+ <dd>Specifies to print the mapping from old names to new names for classes and
435
+ class members that have been renamed. The mapping is printed to the
436
+ standard output or to the given file. For example, it is required for
437
+ subsequent <a href="examples.html#incremental">incremental
438
+ obfuscation</a>, or if you ever want to make sense again of <a
439
+ href="examples.html#stacktrace">obfuscated stack traces</a>. Only
440
+ applicable when obfuscating.</dd>
441
+
442
+ <dt><a name="applymapping"><code><b>-applymapping</b></code></a>
443
+ <a href="#filename"><i>filename</i></a></dt>
444
+
445
+ <dd>Specifies to reuse the given name mapping that was printed out in a
446
+ previous obfuscation run of ProGuard. Classes and class members that are
447
+ listed in the mapping file receive the names specified along with them.
448
+ Classes and class members that are not mentioned receive new names. The
449
+ mapping may refer to input classes as well as library classes. This option
450
+ can be useful for <a href="examples.html#incremental">incremental
451
+ obfuscation</a>, i.e. processing add-ons or small patches to an existing
452
+ piece of code. In such cases, you should consider whether you also need
453
+ the option <a
454
+ href="#useuniqueclassmembernames"><code>-useuniqueclassmembernames</code></a>.
455
+ Only a single mapping file is allowed. Only applicable when
456
+ obfuscating.</dd>
457
+
458
+ <dt><a name="obfuscationdictionary"><code><b>-obfuscationdictionary</b></code></a>
459
+ <a href="#filename"><i>filename</i></a></dt>
460
+
461
+ <dd>Specifies a text file from which all valid words are used as obfuscated
462
+ field and method names. By default, short names like 'a', 'b', etc. are
463
+ used as obfuscated names. With an obfuscation dictionary, you can specify
464
+ a list of reserved key words, or identifiers with foreign characters, for
465
+ instance. White space, punctuation characters, duplicate words, and
466
+ comments after a <code><b>#</b></code> sign are ignored. Note that an
467
+ obfuscation dictionary hardly improves the obfuscation. Decent compilers
468
+ can automatically replace them, and the effect can fairly simply be undone
469
+ by obfuscating again with simpler names. The most useful application is
470
+ specifying strings that are typically already present in class files (such
471
+ as 'Code'), thus reducing the class file sizes just a little bit more.
472
+ Only applicable when obfuscating.</dd>
473
+
474
+ <dt><a name="classobfuscationdictionary"><code><b>-classobfuscationdictionary</b></code></a>
475
+ <a href="#filename"><i>filename</i></a></dt>
476
+
477
+ <dd>Specifies a text file from which all valid words are used as obfuscated
478
+ class names. The obfuscation dictionary is similar to the one of the
479
+ option <a
480
+ href="#obfuscationdictionary"><code>-obfuscationdictionary</code></a>.
481
+ Only applicable when obfuscating.</dd>
482
+
483
+ <dt><a name="packageobfuscationdictionary"><code><b>-packageobfuscationdictionary</b></code></a>
484
+ <a href="#filename"><i>filename</i></a></dt>
485
+
486
+ <dd>Specifies a text file from which all valid words are used as obfuscated
487
+ package names. The obfuscation dictionary is similar to the one of the
488
+ option <a
489
+ href="#obfuscationdictionary"><code>-obfuscationdictionary</code></a>.
490
+ Only applicable when obfuscating.</dd>
491
+
492
+ <dt><a name="overloadaggressively"><code><b>-overloadaggressively</b></code></a></dt>
493
+
494
+ <dd>Specifies to apply aggressive overloading while obfuscating. Multiple
495
+ fields and methods can then get the same names, as long as their arguments
496
+ and return types are different (not just their arguments). This option can
497
+ make the processed code even smaller (and less comprehensible). Only
498
+ applicable when obfuscating.
499
+ <p>
500
+ <i>Counter-indication:</i> the resulting class files fall within the Java
501
+ bytecode specification (cfr. <a href=
502
+ "http://java.sun.com/docs/books/vmspec/2nd-edition/html/VMSpecTOC.doc.html"
503
+ >The Java Virtual Machine Specification, Second Edition</a>, first
504
+ paragraphs of <a href=
505
+ "http://java.sun.com/docs/books/vmspec/2nd-edition/html/ClassFile.doc.html#2877"
506
+ >Section 4.5</a> and <a href=
507
+ "http://java.sun.com/docs/books/vmspec/2nd-edition/html/ClassFile.doc.html#1513"
508
+ >Section 4.6</a>), even though this kind of overloading is not allowed in
509
+ the Java language (cfr. <a href=
510
+ "http://java.sun.com/docs/books/jls/second_edition/html/j.title.doc.html"
511
+ >The Java Language Specification, Second Edition</a>, <a href=
512
+ "http://java.sun.com/docs/books/jls/second_edition/html/classes.doc.html#40898"
513
+ >Section 8.3</a> and <a href=
514
+ "http://java.sun.com/docs/books/jls/second_edition/html/classes.doc.html#227768"
515
+ >Section 8.4.7</a>). Still, some tools have problems with it. Notably:
516
+ <ul>
517
+ <li>Sun's JDK 1.2.2 <code>javac</code> compiler produces an exception when
518
+ compiling with such a library (cfr. <a href=
519
+ "http://bugs.sun.com/view_bug.do?bug_id=4216736">Bug #4216736</a>).
520
+ You probably shouldn't use this option for processing libraries.</li>
521
+ <li>Sun's JRE 1.4 and later fail to serialize objects with overloaded
522
+ primitive fields.</li>
523
+ <li>Sun's JRE 1.5 <code>pack200</code> tool reportedly has problems with
524
+ overloaded class members.</li>
525
+ <li>Google's Dalvik VM can't handle overloaded static fields.</li>
526
+ </ul></dd>
527
+
528
+ <dt><a name="useuniqueclassmembernames"><code><b>-useuniqueclassmembernames</b></code></a></dt>
529
+
530
+ <dd>Specifies to assign the same obfuscated names to class members that have
531
+ the same names, and different obfuscated names to class members that have
532
+ different names (for each given class member signature). Without the
533
+ option, more class members can be mapped to the same short names like 'a',
534
+ 'b', etc. The option therefore increases the size of the resulting code
535
+ slightly, but it ensures that the saved obfuscation name mapping can
536
+ always be respected in subsequent incremental obfuscation steps.
537
+ <p>
538
+ For instance, consider two distinct interfaces containing methods with the
539
+ same name and signature. Without this option, these methods may get
540
+ different obfuscated names in a first obfuscation step. If a patch is then
541
+ added containing a class that implements both interfaces, ProGuard will
542
+ have to enforce the same method name for both methods in an incremental
543
+ obfuscation step. The original obfuscated code is changed, in order to
544
+ keep the resulting code consistent. With this option <i>in the initial
545
+ obfuscation step</i>, such renaming will never be necessary.
546
+ <p>
547
+ This option is only applicable when obfuscating. In fact, if you are
548
+ planning on performing incremental obfuscation, you probably want to avoid
549
+ shrinking and optimization altogether, since these steps could remove or
550
+ modify parts of your code that are essential for later additions.</dd>
551
+
552
+ <dt><a name="dontusemixedcaseclassnames"><code><b>-dontusemixedcaseclassnames</b></code></a></dt>
553
+
554
+ <dd>Specifies not to generate mixed-case class names while obfuscating. By
555
+ default, obfuscated class names can contain a mix of upper-case characters
556
+ and lower-case characters. This creates perfectly acceptable and usable
557
+ jars. Only if a jar is unpacked on a platform with a case-insensitive
558
+ filing system (say, Windows), the unpacking tool may let similarly named
559
+ class files overwrite each other. Code that self-destructs when it's
560
+ unpacked! Developers who really want to unpack their jars on Windows can
561
+ use this option to switch off this behavior. Note that the obfuscated jars
562
+ will become larger as a result. Only applicable when obfuscating.</dd>
563
+
564
+ <dt><a name="keeppackagenames"><code><b>-keeppackagenames</b></code></a>
565
+ [<i><a href="#filters">package_filter</a></i>]</dt>
566
+
567
+ <dd>Specifies not obfuscate the given package names. The optional filter is a
568
+ comma-separated list of package names. Package names can contain <b>?</b>,
569
+ <b>*</b>, and <b>**</b> wildcards, and they can be preceded by the
570
+ <b>!</b> negator. Only applicable when obfuscating.</dd>
571
+
572
+ <dt><a name="flattenpackagehierarchy"><code><b>-flattenpackagehierarchy</b></code></a>
573
+ [<i>package_name</i>]</dt>
574
+
575
+ <dd>Specifies to repackage all packages that are renamed, by moving them into
576
+ the single given parent package. Without argument or with an empty string
577
+ (''), the packages are moved into the root package. This option is one
578
+ example of further <a href="examples.html#repackaging">obfuscating package
579
+ names</a>. It can make the processed code smaller and less comprehensible.
580
+ Only applicable when obfuscating.</dd>
581
+
582
+ <dt><a name="repackageclasses"><code><b>-repackageclasses</b></code></a>
583
+ [<i>package_name</i>]</dt>
584
+
585
+ <dd>Specifies to repackage all class files that are renamed, by moving them
586
+ into the single given package. Without argument or with an empty string
587
+ (''), the package is removed completely. This option option overrides the
588
+ <a
589
+ href="#flattenpackagehierarchy"><code>-flattenpackagehierarchy</code></a>
590
+ option. It is another example of further <a
591
+ href="examples.html#repackaging">obfuscating package names</a>. It can
592
+ make the processed code even smaller and less comprehensible. Its
593
+ deprecated name is <code>-defaultpackage</code>. Only applicable when
594
+ obfuscating.
595
+ <p>
596
+ <i>Counter-indication:</i> classes that look for resource files in their
597
+ package directories will no longer work properly if they are moved
598
+ elsewhere. When in doubt, just leave the packaging untouched by not using
599
+ this option.</dd>
600
+
601
+ <dt><a name="keepattributes"><code><b>-keepattributes</b></code></a>
602
+ [<i><a href="#filters">attribute_filter</a></i>]</dt>
603
+
604
+ <dd>Specifies any optional attributes to be preserved. The attributes can be
605
+ specified with one or more <code>-keepattributes</code> directives. The
606
+ optional filter is a comma-separated list of attribute names. Attribute
607
+ names can contain <b>?</b>, <b>*</b>, and <b>**</b> wildcards, and they
608
+ can be preceded by the <b>!</b> negator. Typical optional attributes are
609
+ <code>Exceptions</code>, <code>Signature</code>, <code>Deprecated</code>,
610
+ <code>SourceFile</code>, <code>SourceDir</code>,
611
+ <code>LineNumberTable</code>, <code>LocalVariableTable</code>,
612
+ <code>LocalVariableTypeTable</code>, <code>Synthetic</code>,
613
+ <code>EnclosingMethod</code>, <code>RuntimeVisibleAnnotations</code>,
614
+ <code>RuntimeInvisibleAnnotations</code>,
615
+ <code>RuntimeVisibleParameterAnnotations</code>,
616
+ <code>RuntimeInvisibleParameterAnnotations</code>, and
617
+ <code>AnnotationDefault</code>. The <code>InnerClasses</code> attribute
618
+ name can be specified as well, referring to the source name part of this
619
+ attribute. For example, you should at least keep the
620
+ <code>Exceptions</code>, <code>InnerClasses</code>, and
621
+ <code>Signature</code> attributes
622
+ when <a href="examples.html#library">processing a library</a>. You should
623
+ also keep the <code>SourceFile</code> and
624
+ <code>LineNumberTable</code> attributes
625
+ for <a href="examples.html#stacktrace">producing useful obfuscated stack
626
+ traces</a>. Finally, you may want
627
+ to <a href="examples.html#annotations">keep annotations</a> if your code
628
+ depends on them. Only applicable when obfuscating.</dd>
629
+
630
+ <dt><a name="keepparameternames"><code><b>-keepparameternames</b></code></a></dt>
631
+
632
+ <dd>Specifies to keep the parameter names and types of methods that are kept.
633
+ This option actually keeps trimmed versions of the debugging attributes
634
+ <code>LocalVariableTable</code> and
635
+ <code>LocalVariableTypeTable</code>. It can be useful when
636
+ <a href="examples.html#library">processing a library</a>. Some IDEs can
637
+ use the information to assist developers who use the library, for example
638
+ with tool tips or autocompletion. Only applicable when obfuscating.</dd>
639
+
640
+ <dt><a name="renamesourcefileattribute"><code><b>-renamesourcefileattribute</b></code></a>
641
+ [<i>string</i>]</dt>
642
+
643
+ <dd>Specifies a constant string to be put in the <code>SourceFile</code>
644
+ attributes (and <code>SourceDir</code> attributes) of the class files.
645
+ Note that the attribute has to be present to start with, so it also has to
646
+ be preserved explicitly using the <code>-keepattributes</code> directive.
647
+ For example, you may want to have your processed libraries and
648
+ applications produce <a href="examples.html#stacktrace">useful obfuscated
649
+ stack traces</a>. Only applicable when obfuscating.</dd>
650
+
651
+ <dt><a name="adaptclassstrings"><code><b>-adaptclassstrings</b></code></a>
652
+ [<i><a href="#filters">class_filter</a></i>]</dt>
653
+
654
+ <dd>Specifies that string constants that correspond to class names should be
655
+ obfuscated as well. Without a filter, all string constants that correspond
656
+ to class names are adapted. With a filter, only string constants in
657
+ classes that match the filter are adapted. For example, if your code
658
+ contains a large number of hard-coded strings that refer to classes, and
659
+ you prefer not to keep their names, you may want to use this option.
660
+ Primarily applicable when obfuscating, although corresponding classes are
661
+ automatically kept in the shrinking step too.</dd>
662
+
663
+ <dt><a name="adaptresourcefilenames"><code><b>-adaptresourcefilenames</b></code></a>
664
+ [<i><a href="#filefilters">file_filter</a></i>]</dt>
665
+
666
+ <dd>Specifies the resource files to be renamed, based on the obfuscated names
667
+ of the corresponding class files (if any). Without a filter, all resource
668
+ files that correspond to class files are renamed. With a filter, only
669
+ matching files are renamed. For example, see <a
670
+ href="examples.html#resourcefiles">processing resource files</a>. Only
671
+ applicable when obfuscating.</dd>
672
+
673
+ <dt><a name="adaptresourcefilecontents"><code><b>-adaptresourcefilecontents</b></code></a>
674
+ [<i><a href="#filefilters">file_filter</a></i>]</dt>
675
+
676
+ <dd>Specifies the resource files whose contents are to be updated. Any class
677
+ names mentioned in the resource files are renamed, based on the obfuscated
678
+ names of the corresponding classes (if any). Without a filter, the
679
+ contents of all resource files updated. With a filter, only matching files
680
+ are updated. The resource files are parsed and written using the
681
+ platform's default character set. You can change this default character set
682
+ by setting the environment variable <code>LANG</code> or the Java system
683
+ property <code>file.encoding</code>. For an example,
684
+ see <a href="examples.html#resourcefiles">processing resource files</a>.
685
+ Only applicable when obfuscating.</dd>
686
+
687
+ </dl>
688
+ <p>
689
+
690
+ <h2><a name="preverificationoptions">Preverification Options</a></h2>
691
+
692
+ <dl>
693
+ <dt><a name="dontpreverify"><code><b>-dontpreverify</b></code></a></dt>
694
+
695
+ <dd>Specifies not to preverify the processed class files. By default, class
696
+ files are preverified if they are targeted at Java Micro Edition or at
697
+ Java 6 or higher. For Java Micro Edition, preverification is required, so
698
+ you will need to run an external preverifier on the processed code if you
699
+ specify this option. For Java 6, preverification is not required (yet),
700
+ but it improves the efficiency of the class loading in the Java Virtual
701
+ Machine.</dd>
702
+
703
+ <dt><a name="microedition"><code><b>-microedition</b></code></a></dt>
704
+
705
+ <dd>Specifies that the processed class files are targeted at Java Micro
706
+ Edition. The preverifier will then add the appropriate StackMap
707
+ attributes, which are different from the default StackMapTable attributes
708
+ for Java Standard Edition. For example, you will need this option if you
709
+ are <a href="examples.html#midlets">processing midlets</a>.</dd>
710
+
711
+ </dl>
712
+ <p>
713
+
714
+ <h2><a name="generaloptions">General Options</a></h2>
715
+
716
+ <dl>
717
+ <dt><a name="verbose"><code><b>-verbose</b></code></a></dt>
718
+
719
+ <dd>Specifies to write out some more information during processing. If the
720
+ program terminates with an exception, this option will print out the entire
721
+ stack trace, instead of just the exception message.</dd>
722
+
723
+ <dt><a name="dontnote"><code><b>-dontnote</b></code></a>
724
+ [<i><a href="#filters">class_filter</a></i>]</dt>
725
+
726
+ <dd>Specifies not to print notes about potential mistakes or omissions in the
727
+ configuration, like typos in class names, or like missing options that
728
+ might be useful. The optional filter is a regular expression; ProGuard
729
+ doesn't print notes about classes with matching names.</dd>
730
+
731
+ <dt><a name="dontwarn"><code><b>-dontwarn</b></code></a>
732
+ [<i><a href="#filters">class_filter</a></i>]</dt>
733
+
734
+ <dd>Specifies not to warn about unresolved references and other important
735
+ problems at all. The optional filter is a regular expression; ProGuard
736
+ doesn't print warnings about classes with matching names. Ignoring
737
+ warnings can be dangerous. For instance, if the unresolved classes or
738
+ class members are indeed required for processing, the processed code will
739
+ not function properly. <i>Only use this option if you know what you're
740
+ doing!</i></dd>
741
+
742
+ <dt><a name="ignorewarnings"><code><b>-ignorewarnings</b></code></a></dt>
743
+
744
+ <dd>Specifies to print any warnings about unresolved references and other
745
+ important problems, but to continue processing in any case. Ignoring
746
+ warnings can be dangerous. For instance, if the unresolved classes or
747
+ class members are indeed required for processing, the processed code will
748
+ not function properly. <i>Only use this option if you know what you're
749
+ doing!</i></dd>
750
+
751
+ <dt><a name="printconfiguration"><code><b>-printconfiguration</b></code></a>
752
+ [<a href="#filename"><i>filename</i></a>]</dt>
753
+
754
+ <dd>Specifies to write out the entire configuration that has been parsed, with
755
+ included files and replaced variables. The structure is printed to the
756
+ standard output or to the given file. This can sometimes be useful for
757
+ debugging configurations, or for converting XML configurations into a more
758
+ readable format.</dd>
759
+
760
+ <dt><a name="dump"><code><b>-dump</b></code></a>
761
+ [<a href="#filename"><i>filename</i></a>]</dt>
762
+
763
+ <dd>Specifies to write out the internal structure of the class files, after
764
+ any processing. The structure is printed to the standard output or to the
765
+ given file. For example, you may want to <a
766
+ href="examples.html#structure">write out the contents of a given jar
767
+ file</a>, without processing it at all.</dd>
768
+
769
+ </dl>
770
+ <p>
771
+
772
+ <h2><a name="classpath">Class Paths</a></h2>
773
+
774
+ ProGuard accepts a generalization of class paths to specify input files and
775
+ output files. A class path consists of entries, separated by the traditional
776
+ path separator (e.g. '<b>:</b>' on Unix, or '<b>;</b>' on Windows platforms).
777
+ The order of the entries determines their priorities, in case of duplicates.
778
+ <p>
779
+ Each input entry can be:
780
+ <ul>
781
+ <li>A class file or resource file,</li>
782
+ <li>A jar file, containing any of the above,</li>
783
+ <li>A war file, containing any of the above,</li>
784
+ <li>An ear file, containing any of the above,</li>
785
+ <li>A zip file, containing any of the above,</li>
786
+ <li>A directory (structure), containing any of the above.</li>
787
+ </ul>
788
+ <p>
789
+ The paths of directly specified class files and resource files is ignored, so
790
+ class files should generally be part of a jar file, a war file, an ear file, a
791
+ zip file, or a directory. In addition, the paths of class files should not have
792
+ any additional directory prefixes inside the archives or directories.
793
+
794
+ <p>
795
+ Each output entry can be:
796
+ <ul>
797
+ <li>A jar file, in which all processed class files and resource files will be
798
+ collected.</li>
799
+ <li>A war file, in which any and all of the above will be collected,</li>
800
+ <li>An ear file, in which any and all of the above will be collected,</li>
801
+ <li>A zip file, in which any and all of the above will be collected,</li>
802
+ <li>A directory, in which any and all of the above will be collected.</li>
803
+ </ul>
804
+ <p>
805
+ When writing output entries, ProGuard will generally package the results in a
806
+ sensible way, reconstructing the input entries as much as required. Writing
807
+ everything to an output directory is the most straightforward option: the
808
+ output directory will contain a complete reconstruction of the input entries.
809
+ The packaging can be almost arbitrarily complex though: you could process an
810
+ entire application, packaged in a zip file along with its documentation,
811
+ writing it out as a zip file again. The Examples section shows a few ways
812
+ to <a href="examples.html#restructuring">restructure output archives</a>.
813
+ <p>
814
+ Files and directories can be specified as discussed in the section on <a
815
+ href="#filename">file names</a> below.
816
+ <p>
817
+ In addition, ProGuard provides the possibility to filter the class path
818
+ entries and their contents, based on their full relative file names. Each
819
+ class path entry can be followed by up to 5 types of <a
820
+ href="#filefilters">file filters</a> between parentheses, separated by
821
+ semi-colons:
822
+ <ul>
823
+ <li>A filter for all zip names that are encountered,</li>
824
+ <li>A filter for all ear names that are encountered,</li>
825
+ <li>A filter for all war names that are encountered,</li>
826
+ <li>A filter for all jar names that are encountered,</li>
827
+ <li>A filter for all class file names and resource file names that are
828
+ encountered.</li>
829
+ </ul>
830
+ <p>
831
+ If fewer than 5 filters are specified, they are assumed to be the latter
832
+ filters. Any empty filters are ignored. More formally, a filtered class path
833
+ entry looks like this:
834
+ <pre>
835
+ <i>classpathentry</i><b>(</b>[[[[<i>zipfilter</i><b>;</b>]<i>earfilter</i><b>;</b>]<i>warfilter</i><b>;</b>]<i>jarfilter</i><b>;</b>]<i>filefilter</i><b>)</b>
836
+ </pre>
837
+ <p>
838
+ Square brackets "[]" mean that their contents are optional.
839
+ <p>
840
+ For example, "<code>rt.jar(java/**.class,javax/**.class)</code>" matches all
841
+ class files in the <code>java</code> and <code>javax</code> directories inside
842
+ the <code>rt</code> jar.
843
+ <p>
844
+ For example, "<code>input.jar(!**.gif,images/**)</code>" matches all files in
845
+ the <code>images</code> directory inside the <code>input</code> jar, except
846
+ gif files.
847
+ <p>
848
+ Note that the different filters are applied to all corresponding file types,
849
+ irrespective of their nesting levels in the input; they are orthogonal.
850
+ <p>
851
+ For example,
852
+ "<code>input.war(lib/**.jar,support/**.jar;**.class,**.gif)</code>" only
853
+ considers jar files in the <code>lib</code> and <code>support</code>
854
+ directories in the <code>input</code> war, not any other jar files. It then
855
+ matches all class files and gif files that are encountered.
856
+ <p>
857
+ The filters allow for an almost infinite number of packaging and repackaging
858
+ possibilities. The Examples section provides a few more examples
859
+ for <a href="examples.html#filtering">filtering input and output</a>.
860
+ <p>
861
+
862
+ <h2><a name="filename">File Names</a></h2>
863
+
864
+ ProGuard accepts absolute paths and relative paths for the various file names
865
+ and directory names. A relative path is interpreted as follows:
866
+ <ul>
867
+ <li>relative to the base directory, if set, or otherwise</li>
868
+ <li>relative to the configuration file in which it is specified, if any, or
869
+ otherwise</li>
870
+ <li>relative to the working directory.</li>
871
+ </ul>
872
+ <p>
873
+ The names can contain Java system properties delimited by '<b>&lt;</b>' and
874
+ '<b>&gt;</b>'. The system properties
875
+ are automatically replaced by their respective values.
876
+ <p>
877
+ For example, <code>&lt;java.home&gt;/lib/rt.jar</code> will automatically be
878
+ expanded to something like <code>/usr/local/java/jdk/jre/lib/rt.jar</code>.
879
+ Similarly, <code>&lt;user.home&gt;</code> will be expanded to the user's home
880
+ directory, and <code>&lt;user.dir&gt;</code> will be expanded to the current
881
+ working directory.
882
+ <p>
883
+ Names with special characters like spaces and parentheses must be quoted with
884
+ single or double quotes. Note that each file name in a list of names has to be
885
+ quoted individually. Also note that the quotes themselves may need to be
886
+ escaped when used on the command line, to avoid them being gobbled by the
887
+ shell.
888
+ <p>
889
+ For example, on the command line, you could use an option like <code>'-injars
890
+ "my program.jar":"/your directory/your program.jar"'</code>.
891
+ <p>
892
+
893
+ <h2><a name="filefilters">File Filters</a></h2>
894
+
895
+ Like general <a href="#filters">filters</a>, a file filter is a
896
+ comma-separated list of file names that can contain wildcards. Only files with
897
+ matching file names are read (in the case of input jars), or written (in the
898
+ case of output jars). The following wildcards are supported:
899
+
900
+ <table cellspacing="10">
901
+ <tr><td valign="top"><code><b>?</b></code></td>
902
+ <td>matches any single character in a file name.</td></tr>
903
+ <tr><td valign="top"><code><b>*</b></code></td>
904
+ <td>matches any part of a filename not containing the directory
905
+ separator.</td></tr>
906
+ <tr><td valign="top"><code><b>**</b></code></td>
907
+ <td>matches any part of a filename, possibly containing any number of
908
+ directory separators.</td></tr>
909
+ </table>
910
+
911
+ For example, "<code>java/**.class,javax/**.class</code>" matches all
912
+ class files in the <code>java</code> and <code>javax</code>.
913
+ <p>
914
+
915
+ Furthermore, a file name can be preceded by an exclamation mark '<b>!</b>' to
916
+ <i>exclude</i> the file name from further attempts to match with
917
+ <i>subsequent</i> file names.
918
+ <p>
919
+ For example, "<code>!**.gif,images/**</code>" matches all files in the
920
+ <code>images</code> directory, except gif files.
921
+ <p>
922
+ The Examples section provides a few more examples for <a
923
+ href="examples.html#filtering">filtering input and output</a>.
924
+
925
+ <h2><a name="filters">Filters</a></h2>
926
+
927
+ ProGuard offers options with filters for many different aspects of the
928
+ configuration: names of files, directories, classes, packages, attributes,
929
+ optimizations, etc.
930
+ <p>
931
+ A filter is a list of comma-separated names that can contain wildcards. Only
932
+ names that match an item on the list pass the filter. The supported wildcards
933
+ depend on the type of names for which the filter is being used, but the
934
+ following wildcards are typical:
935
+
936
+ <table cellspacing="10">
937
+ <tr><td valign="top"><code><b>?</b></code></td>
938
+ <td>matches any single character in a name.</td></tr>
939
+ <tr><td valign="top"><code><b>*</b></code></td>
940
+ <td>matches any part of a name not containing the package separator or
941
+ directory separator.</td></tr>
942
+ <tr><td valign="top"><code><b>**</b></code></td>
943
+ <td>matches any part of a name, possibly containing any number of
944
+ package separators or directory separators.</td></tr>
945
+ </table>
946
+
947
+ For example, "<code>foo,*bar</code>" matches the name <code>foo</code> and
948
+ all names ending with <code>bar</code>.
949
+ <p>
950
+
951
+ Furthermore, a name can be preceded by a negating exclamation mark '<b>!</b>'
952
+ to <i>exclude</i> the name from further attempts to match
953
+ with <i>subsequent</i> names. So, if a name matches an item in the filter, it
954
+ is accepted or rejected right away, depending on whether the item has a
955
+ negator. If the name doesn't match the item, it is tested against the next
956
+ item, and so on. It if doesn't match any items, it is accepted or rejected,
957
+ depending on the whether the last item has a negator or not.
958
+ <p>
959
+ For example, "<code>!foobar,*bar</code>" matches all names ending with
960
+ <code>bar</code>, except <code>foobar</code>.
961
+ <p>
962
+
963
+ <h2><a name="keepoverview">Overview of <code>Keep</code> Options</a></h2>
964
+
965
+ The various <code>-keep</code> options for shrinking and obfuscation may seem
966
+ a bit confusing at first, but there's actually a pattern behind them. The
967
+ following table summarizes how they are related:
968
+ <p>
969
+
970
+ <table cellpadding="5">
971
+
972
+ <tr>
973
+ <th>Keep</th>
974
+ <td>From being removed or renamed</td>
975
+ <td>From being renamed</td>
976
+ </tr>
977
+
978
+ <tr>
979
+ <td>Classes and class members</td>
980
+ <td bgcolor="#E0E0E0"><a href="#keep"><code>-keep</code></a></td>
981
+ <td bgcolor="#E0E0E0"><a href="#keepnames"><code>-keepnames</code></a></td>
982
+ </tr>
983
+
984
+ <tr>
985
+ <td>Class members only</td>
986
+ <td bgcolor="#E0E0E0"><a href="#keepclassmembers"><code>-keepclassmembers</code></a></td>
987
+ <td bgcolor="#E0E0E0"><a href="#keepclassmembernames"><code>-keepclassmembernames</code></a></td>
988
+ </tr>
989
+
990
+ <tr>
991
+ <td>Classes and class members, if class members present</td>
992
+ <td bgcolor="#E0E0E0"><a href="#keepclasseswithmembers"><code>-keepclasseswithmembers</code></a></td>
993
+ <td bgcolor="#E0E0E0"><a href="#keepclasseswithmembernames"><code>-keepclasseswithmembernames</code></a></td>
994
+ </tr>
995
+
996
+ </table>
997
+ <p>
998
+
999
+ Each of these <code>-keep</code> options is of course followed by a
1000
+ <a href="#classspecification">specification</a> of the classes and class
1001
+ members (fields and methods) to which it should be applied.
1002
+ <p>
1003
+ If you're not sure which option you need, you should probably simply use
1004
+ <code>-keep</code>. It will make sure the specified classes and class members
1005
+ are not removed in the shrinking step, and not renamed in the obfuscation step.
1006
+ <p>
1007
+ <table>
1008
+ <tr><td valign="top">
1009
+ <img src="attention.gif" width="64" height="64"alt="attention" />
1010
+ </td><td>
1011
+ Always remember:
1012
+ <ul>
1013
+ <li>Specifying a class without class members only preserves the class as an
1014
+ entry point &mdash; any class members may then still be removed, optimized,
1015
+ or obfuscated.</li>
1016
+ <li>Specifying a class member only preserves the class member as an entry
1017
+ point &mdash; any associated code may still be optimized and adapted.</li>
1018
+ </ul>
1019
+ </td></tr>
1020
+ </table>
1021
+ <p>
1022
+
1023
+ <h2><a name="keepoptionmodifiers">Keep Option Modifiers</a></h2>
1024
+
1025
+ <dl>
1026
+ <dt><a name="allowshrinking"><code><b>allowshrinking</b></code></a></dt>
1027
+
1028
+ <dd>Specifies that the entry points specified in the <a href="#keep">-keep</a>
1029
+ option may be shrunk, even if they have to be preserved otherwise. That
1030
+ is, the entry points may be removed in the shrinking step, but if they are
1031
+ necessary after all, they may not be optimized or obfuscated.</dd>
1032
+
1033
+ <dt><a name="allowoptimization"><code><b>allowoptimization</b></code></a></dt>
1034
+
1035
+ <dd>Specifies that the entry points specified in the <a href="#keep">-keep</a>
1036
+ option may be optimized, even if they have to be preserved otherwise. That
1037
+ is, the entry points may be altered in the optimization step, but they may
1038
+ not be removed or obfuscated. This modifier is only useful for achieving
1039
+ unusual requirements.</dd>
1040
+
1041
+ <dt><a name="allowobfuscation"><code><b>allowobfuscation</b></code></a></dt>
1042
+
1043
+ <dd>Specifies that the entry points specified in the <a href="#keep">-keep</a>
1044
+ option may be obfuscated, even if they have to be preserved otherwise. That
1045
+ is, the entry points may be renamed in the obfuscation step, but they may
1046
+ not be removed or optimized. This modifier is only useful for achieving
1047
+ unusual requirements.</dd>
1048
+
1049
+ </dl>
1050
+ <p>
1051
+
1052
+ <h2><a name="classspecification">Class Specifications</a></h2>
1053
+
1054
+ A class specification is a template of classes and class members (fields and
1055
+ methods). It is used in the various <code>-keep</code> options and in the
1056
+ <code>-assumenosideeffects</code> option. The corresponding option is only
1057
+ applied to classes and class members that match the template.
1058
+ <p>
1059
+ The template was designed to look very Java-like, with some extensions for
1060
+ wildcards. To get a feel for the syntax, you should probably look at the <a
1061
+ href="examples.html">examples</a>, but this is an attempt at a complete formal
1062
+ definition:
1063
+ <p>
1064
+
1065
+ <pre>
1066
+ [<b>@</b><i>annotationtype</i>] [[<b>!</b>]<b>public</b>|<b>final</b>|<b>abstract</b>|<b>@</b> ...] [<b>!</b>]<b>interface</b>|<b>class</b>|<b>enum</b> <i>classname</i>
1067
+ [<b>extends</b>|<b>implements</b> [<b>@</b><i>annotationtype</i>] <i>classname</i>]
1068
+ [<b>{</b>
1069
+ [<b>@</b><i>annotationtype</i>] [[<b>!</b>]<b>public</b>|<b>private</b>|<b>protected</b>|<b>static</b>|<b>volatile</b>|<b>transient</b> ...] <b>&lt;fields&gt;</b> |
1070
+ (<i>fieldtype fieldname</i>)<b>;</b>
1071
+ [<b>@</b><i>annotationtype</i>] [[<b>!</b>]<b>public</b>|<b>private</b>|<b>protected</b>|<b>static</b>|<b>synchronized</b>|<b>native</b>|<b>abstract</b>|<b>strictfp</b> ...] <b>&lt;methods&gt;</b> |
1072
+ <b>&lt;init&gt;(</b><i>argumenttype,...</i><b>)</b> |
1073
+ <i>classname</i><b>(</b><i>argumenttype,...</i><b>)</b> |
1074
+ (<i>returntype methodname</i><b>(</b><i>argumenttype,...</i><b>)</b>)<b>;</b>
1075
+ [<b>@</b><i>annotationtype</i>] [[<b>!</b>]<b>public</b>|<b>private</b>|<b>protected</b>|<b>static</b> ... ] <b>*;</b>
1076
+ ...
1077
+ <b>}</b>]
1078
+ </pre>
1079
+ <p>
1080
+ Square brackets "[]" mean that their contents are optional. Ellipsis dots
1081
+ "..." mean that any number of the preceding items may be specified. A vertical
1082
+ bar "|" delimits two alternatives. Non-bold parentheses "()" just group parts
1083
+ of the specification that belong together. The indentation tries to clarify
1084
+ the intended meaning, but white-space is irrelevant in actual configuration
1085
+ files.
1086
+ <p>
1087
+ <ul class="spacious">
1088
+
1089
+ <li>The <code><b>class</b></code> keyword refers to any interface or class.
1090
+ The <code><b>interface</b></code> keyword restricts matches to interface
1091
+ classes. The <code><b>enum</b></code> keyword restricts matches to
1092
+ enumeration classes. Preceding the <code><b>interface</b></code> or
1093
+ <code><b>enum</b></code> keywords by a <code><b>!</b></code> restricts
1094
+ matches to classes that are not interfaces or enumerations,
1095
+ respectively.</li>
1096
+
1097
+ <li>Every <i>classname</i> must be fully qualified, e.g.
1098
+ <code>java.lang.String</code>. Class names may be specified as regular
1099
+ expressions containing the following wildcards:
1100
+
1101
+ <table cellspacing="10">
1102
+
1103
+ <tr><td valign="top"><code><b>?</b></code></td>
1104
+
1105
+ <td>matches any single character in a class name, but not the package
1106
+ separator. For example, "<code>mypackage.Test?</code>" matches
1107
+ "<code>mypackage.Test1</code>" and "<code>mypackage.Test2</code>", but not
1108
+ "<code>mypackage.Test12</code>".</td></tr>
1109
+
1110
+ <tr><td valign="top"><code><b>*</b></code></td>
1111
+
1112
+ <td>matches any part of a class name not containing the package separator. For
1113
+ example, "<code>mypackage.*Test*</code>" matches
1114
+ "<code>mypackage.Test</code>" and
1115
+ "<code>mypackage.YourTestApplication</code>", but not
1116
+ "<code>mypackage.mysubpackage.MyTest</code>". Or, more generally,
1117
+ "<code>mypackage.*</code>" matches all classes in
1118
+ "<code>mypackage</code>", but not in its subpackages.</td></tr>
1119
+
1120
+ <tr><td valign="top"><code><b>**</b></code></td>
1121
+
1122
+ <td>matches any part of a class name, possibly containing any number of
1123
+ package separators. For example, "<code>**.Test</code>" matches all
1124
+ <code>Test</code> classes in all packages except the root package. Or,
1125
+ "<code>mypackage.**</code>" matches all classes in
1126
+ "<code>mypackage</code>" and in its subpackages.</td></tr>
1127
+
1128
+ </table>
1129
+
1130
+ For additional flexibility, class names can actually be comma-separated
1131
+ lists of class names, with optional <code><b>!</b></code> negators, just
1132
+ like file name filters. This notation doesn't look very Java-like, so it
1133
+ should be used with moderation.
1134
+ <p>
1135
+ For convenience and for backward compatibility, the class name
1136
+ <code><b>*</b></code> refers to any class, irrespective of its package.</li>
1137
+
1138
+ <li>The <code><b>extends</b></code> and <code><b>implements</b></code>
1139
+ specifications are typically used to restrict classes with wildcards. They
1140
+ are currently equivalent, specifying that only classes extending or
1141
+ implementing the given class qualify. Note that the given class itself is
1142
+ not included in this set. If required, it should be specified in a
1143
+ separate option.</li>
1144
+
1145
+ <li>The <code><b>@</b></code> specifications can be used to restrict classes
1146
+ and class members to the ones that are annotated with the specified
1147
+ annotation types. An <i>annotationtype</i> is specified just like a
1148
+ <i>classname</i>.</li>
1149
+
1150
+ <li>Fields and methods are specified much like in Java, except that method
1151
+ argument lists don't contain argument names (just like in other tools
1152
+ like <code>javadoc</code> and <code>javap</code>). The specifications can
1153
+ also contain the following catch-all wildcards:
1154
+
1155
+ <table cellspacing="10">
1156
+
1157
+ <tr><td valign="top"><code><b>&lt;init&gt;</b></code></td>
1158
+ <td>matches any constructor.</td></tr>
1159
+
1160
+ <tr><td valign="top"><code><b>&lt;fields&gt;</b></code></td>
1161
+ <td>matches any field.</td></tr>
1162
+
1163
+ <tr><td valign="top"><code><b>&lt;methods&gt;</b></code></td>
1164
+ <td>matches any method.</td></tr>
1165
+
1166
+ <tr><td valign="top"><code><b>*</b></code></td>
1167
+ <td>matches any field or method.</td></tr>
1168
+
1169
+ </table>
1170
+
1171
+ Note that the above wildcards don't have return types. Only the
1172
+ <code><b>&lt;init&gt;</b></code> wildcard has an argument list.
1173
+ <p>
1174
+
1175
+ Fields and methods may also be specified using regular expressions. Names
1176
+ can contain the following wildcards:
1177
+
1178
+ <table cellspacing="10">
1179
+ <tr><td valign="top"><code><b>?</b></code></td>
1180
+ <td>matches any single character in a method name.</td></tr>
1181
+ <tr><td valign="top"><code><b>*</b></code></td>
1182
+ <td>matches any part of a method name.</td></tr>
1183
+ </table>
1184
+
1185
+ Types in descriptors can contain the following wildcards:
1186
+
1187
+ <table cellspacing="10">
1188
+ <tr><td valign="top"><code><b>%</b></code></td>
1189
+ <td>matches any primitive type ("<code>boolean</code>", "<code>int</code>",
1190
+ etc, but not "<code>void</code>").</td></tr>
1191
+ <tr><td valign="top"><code><b>?</b></code></td>
1192
+ <td>matches any single character in a class name.</td></tr>
1193
+ <tr><td valign="top"><code><b>*</b></code></td>
1194
+ <td>matches any part of a class name not containing the package separator.</td></tr>
1195
+ <tr><td valign="top"><code><b>**</b></code></td>
1196
+ <td>matches any part of a class name, possibly containing any number of
1197
+ package separators.</td></tr>
1198
+ <tr><td valign="top"><code><b>***</b></code></td>
1199
+ <td>matches any type (primitive or non-primitive, array or
1200
+ non-array).</td></tr>
1201
+ <tr><td valign="top"><code><b>...</b></code></td>
1202
+ <td>matches any number of arguments of any type.</td></tr>
1203
+
1204
+ </table>
1205
+
1206
+ Note that the <code>?</code>, <code>*</code>, and <code>**</code>
1207
+ wildcards will never match primitive types. Furthermore, only the
1208
+ <code>***</code> wildcards will match array types of any dimension. For
1209
+ example, "<code>** get*()</code>" matches "<code>java.lang.Object
1210
+ getObject()</code>", but not "<code>float getFloat()</code>", nor
1211
+ "<code>java.lang.Object[] getObjects()</code>".</li>
1212
+
1213
+ <li>Constructors can also be specified using their short class names (without
1214
+ package) or using their full class names. As in the Java language, the
1215
+ constructor specification has an argument list, but no return type.</li>
1216
+
1217
+ <li>The class access modifiers and class member access modifiers are typically
1218
+ used to restrict wildcarded classes and class members. They specify that
1219
+ the corresponding access flags have to be set for the member to match. A
1220
+ preceding <code><b>!</b></code> specifies that the corresponding access
1221
+ flag should be unset.
1222
+ <p>
1223
+ Combining multiple flags is allowed (e.g. <code>public static</code>). It
1224
+ means that both access flags have to be set (e.g. <code>public</code>
1225
+ <i>and</i> <code>static</code>), except when they are conflicting, in
1226
+ which case at least one of them has to be set (e.g. at least
1227
+ <code>public</code>
1228
+ <i>or</i> <code>protected</code>).
1229
+ <p>
1230
+ ProGuard supports the additional modifiers <code><b>synthetic</b></code>,
1231
+ <code><b>bridge</b></code>, and <code><b>varargs</b></code>, which may be
1232
+ set by compilers.</li>
1233
+
1234
+ </ul>
1235
+
1236
+ <hr />
1237
+ <noscript><div><a target="_top" href="../index.html" class="button">Show menu</a></div></noscript>
1238
+ <address>
1239
+ Copyright &copy; 2002-2011
1240
+ <a target="other" href="http://www.lafortune.eu/">Eric Lafortune</a>.
1241
+ </address>
1242
+ </body>
1243
+ </html>