Java Doc for ClassTree.java in  » Development » RetroGuard » COM » rl » obf » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Development » RetroGuard » COM.rl.obf 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   COM.rl.obf.ClassTree

ClassTree
public class ClassTree implements NameMapper(Code)
Tree structure of package levels, classes, methods and fields used for obfuscation.
author:
   Mark Welsh

Inner Class :class SortElement

Field Summary
final public static  charCLASS_LEVEL
    
final public static  charMETHOD_FIELD_LEVEL
    
final public static  charPACKAGE_LEVEL
    

Constructor Summary
public  ClassTree()
     Ctor.

Method Summary
public  voidaddClassFile(ClassFile cf)
     Add a classfile's package, class, method and field entries to database.
public  voidaddClassFile(ClassFile cf, boolean enableTrim)
     Add a classfile's package, class, method and field entries to database.
public  voiddump(PrintWriter log)
     Dump the content of the class tree to the specified file (used for logging).
public  voidgenerateNames(boolean enableRepackage)
     Traverse the class tree, generating obfuscated names within each namespace.
public  String[]getAttrsToKeep()
     Return a list of attributes marked to keep.
public  ClgetCl(String fullName)
     Get class in tree from the fully qualified name, returning null if name not found.
public  EnumerationgetClEnum(String fullName)
     Get classes in tree from the fully qualified name (can be wildcarded).
public  FdgetFd(String fullName)
     Get field in tree from the fully qualified name.
public  EnumerationgetFdEnum(String fullName, String descriptor)
     Get fields in tree from the fully qualified, and possibly wildcarded, name.
public  MdgetMd(String fullName, String descriptor)
     Get method in tree from the fully qualified name.
public  EnumerationgetMdEnum(String fullName, String descriptor)
     Get methods in tree from the fully qualified, and possibly wildcarded, name.
public static  EnumerationgetNameEnum(String name)
     Return a fully qualified name broken into package/class segments.
public  StringgetOutName(String inName)
     Update the path of the passed filename, if that path corresponds to a package.
public  PkgetPk(String fullName)
     Get package in tree from the fully qualified name, returning null if name not found.
public  PkgetRoot()
     Return the root node.
public  voidlogWarnings(PrintWriter log)
     Write any non-suppressed warnings to the log.
public  StringmapClass(String className)
     Mapping for fully qualified class name.
public  StringmapDescriptor(String descriptor)
     Mapping for descriptor of field or method.
public  StringmapField(String className, String fieldName)
     Mapping for field name, of fully qualified class.
public  StringmapMethod(String className, String methodName, String descriptor)
     Mapping for method name, of fully qualified class.
public  StringmapSignature(String signature)
     Mapping for generic type signature.
public  voidnoWarnClass(String name)
     Mark a class/interface type to suppress warnings from it.
public  voidresolveClasses()
     Resolve the polymorphic dependencies of each class.
public  voidretainAttribute(String name)
     Mark an attribute type for retention.
public  voidretainClass(String name, boolean retainToPublic, boolean retainToProtected, boolean retainPubProtOnly, boolean retainFieldsOnly, boolean retainMethodsOnly, String extendsName, boolean invert, boolean notrimOnly, int accessMask, int accessSetting)
     Mark a class/interface type (and possibly methods and fields defined in class) for retention.
public  voidretainClassMap(String name, String obfName)
     Mark a class/interface type for retention, and specify its new name.
public  voidretainField(String name, String descriptor, boolean retainAndClass, String extendsName, boolean invert, boolean notrimOnly, int accessMask, int accessSetting)
     Mark a field type for retention.
public  voidretainFieldMap(String name, String obfName)
     Mark a field type for retention, and specify its new name.
public  voidretainMethod(String name, String descriptor, boolean retainAndClass, String extendsName, boolean invert, boolean notrimOnly, int accessMask, int accessSetting)
     Mark a method type for retention.
public  voidretainMethodMap(String name, String descriptor, String obfName)
     Mark a method type for retention, and specify its new name.
public  voidretainPackageMap(String name, String obfName)
     Mark a package for retention, and specify its new name.
public  voidretainRepackageMap(String name, String obfName)
     Mark a package for repackaging under this new name.
public  voidwalkTree(TreeAction ta)
     Walk the whole tree taking action once only on each package level, class, method and field.

Field Detail
CLASS_LEVEL
final public static char CLASS_LEVEL(Code)



METHOD_FIELD_LEVEL
final public static char METHOD_FIELD_LEVEL(Code)



PACKAGE_LEVEL
final public static char PACKAGE_LEVEL(Code)




Constructor Detail
ClassTree
public ClassTree()(Code)
Ctor.




Method Detail
addClassFile
public void addClassFile(ClassFile cf) throws Exception(Code)
Add a classfile's package, class, method and field entries to database.



addClassFile
public void addClassFile(ClassFile cf, boolean enableTrim) throws Exception(Code)
Add a classfile's package, class, method and field entries to database.



dump
public void dump(PrintWriter log) throws Exception(Code)
Dump the content of the class tree to the specified file (used for logging).



generateNames
public void generateNames(boolean enableRepackage) throws Exception(Code)
Traverse the class tree, generating obfuscated names within each namespace.



getAttrsToKeep
public String[] getAttrsToKeep() throws Exception(Code)
Return a list of attributes marked to keep.



getCl
public Cl getCl(String fullName) throws Exception(Code)
Get class in tree from the fully qualified name, returning null if name not found.



getClEnum
public Enumeration getClEnum(String fullName) throws Exception(Code)
Get classes in tree from the fully qualified name (can be wildcarded).



getFd
public Fd getFd(String fullName) throws Exception(Code)
Get field in tree from the fully qualified name.



getFdEnum
public Enumeration getFdEnum(String fullName, String descriptor) throws Exception(Code)
Get fields in tree from the fully qualified, and possibly wildcarded, name.



getMd
public Md getMd(String fullName, String descriptor) throws Exception(Code)
Get method in tree from the fully qualified name.



getMdEnum
public Enumeration getMdEnum(String fullName, String descriptor) throws Exception(Code)
Get methods in tree from the fully qualified, and possibly wildcarded, name.



getNameEnum
public static Enumeration getNameEnum(String name) throws Exception(Code)
Return a fully qualified name broken into package/class segments.



getOutName
public String getOutName(String inName)(Code)
Update the path of the passed filename, if that path corresponds to a package.



getPk
public Pk getPk(String fullName) throws Exception(Code)
Get package in tree from the fully qualified name, returning null if name not found.



getRoot
public Pk getRoot()(Code)
Return the root node.



logWarnings
public void logWarnings(PrintWriter log) throws Exception(Code)
Write any non-suppressed warnings to the log.



mapClass
public String mapClass(String className) throws Exception(Code)
Mapping for fully qualified class name.
See Also:   NameMapper.mapClass
See Also:   



mapDescriptor
public String mapDescriptor(String descriptor) throws Exception(Code)
Mapping for descriptor of field or method.
See Also:   NameMapper.mapDescriptor
See Also:   



mapField
public String mapField(String className, String fieldName) throws Exception(Code)
Mapping for field name, of fully qualified class.
See Also:   NameMapper.mapField
See Also:   



mapMethod
public String mapMethod(String className, String methodName, String descriptor) throws Exception(Code)
Mapping for method name, of fully qualified class.
See Also:   NameMapper.mapMethod
See Also:   



mapSignature
public String mapSignature(String signature) throws Exception(Code)
Mapping for generic type signature.
See Also:   NameMapper.mapSignature
See Also:   



noWarnClass
public void noWarnClass(String name) throws Exception(Code)
Mark a class/interface type to suppress warnings from it.



resolveClasses
public void resolveClasses() throws Exception(Code)
Resolve the polymorphic dependencies of each class.



retainAttribute
public void retainAttribute(String name) throws Exception(Code)
Mark an attribute type for retention.



retainClass
public void retainClass(String name, boolean retainToPublic, boolean retainToProtected, boolean retainPubProtOnly, boolean retainFieldsOnly, boolean retainMethodsOnly, String extendsName, boolean invert, boolean notrimOnly, int accessMask, int accessSetting) throws Exception(Code)
Mark a class/interface type (and possibly methods and fields defined in class) for retention.



retainClassMap
public void retainClassMap(String name, String obfName) throws Exception(Code)
Mark a class/interface type for retention, and specify its new name.



retainField
public void retainField(String name, String descriptor, boolean retainAndClass, String extendsName, boolean invert, boolean notrimOnly, int accessMask, int accessSetting) throws Exception(Code)
Mark a field type for retention.



retainFieldMap
public void retainFieldMap(String name, String obfName) throws Exception(Code)
Mark a field type for retention, and specify its new name.



retainMethod
public void retainMethod(String name, String descriptor, boolean retainAndClass, String extendsName, boolean invert, boolean notrimOnly, int accessMask, int accessSetting) throws Exception(Code)
Mark a method type for retention.



retainMethodMap
public void retainMethodMap(String name, String descriptor, String obfName) throws Exception(Code)
Mark a method type for retention, and specify its new name.



retainPackageMap
public void retainPackageMap(String name, String obfName) throws Exception(Code)
Mark a package for retention, and specify its new name.



retainRepackageMap
public void retainRepackageMap(String name, String obfName) throws Exception(Code)
Mark a package for repackaging under this new name.



walkTree
public void walkTree(TreeAction ta) throws Exception(Code)
Walk the whole tree taking action once only on each package level, class, method and field.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.