Java Doc for ClassTree.java in  » Development » yguardlib » com » yworks » yguard » 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 » yguardlib » com.yworks.yguard.obf 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.yworks.yguard.obf.ClassTree

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


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  voiddump(PrintWriter log)
     Dump the content of the class tree to the specified file (used for logging).
public  ClfindClassForName(String name)
    
public  TreeItemfindTreeItem(String[] nameParts)
     finds tree items by looking for name components only...
public  voidgenerateNames()
     Traverse the class tree, generating obfuscated names within each namespace.
public  String[]getAttrsToKeep()
     Return a list of attributes marked to keep.
public  String[]getAttrsToKeep(String className)
    
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  EnumerationgetClEnum(String fullName, int classMode)
     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)
     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  booleanisPedantic()
     Getter for property pedantic.
public  booleanisReplaceClassNameStrings()
     Getter for property replaceClassNameStrings.
public  StringmapAnnotationField(String className, String methodName)
     Mapping for annotation field/method name, of fully qualified class.
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  booleanmapLineNumberTable(String className, String methodName, String methodSignature, LineNumberTableAttrInfo info)
    
public  StringmapLocalVariable(String thisClassName, String methodName, String descriptor, String string)
    
public  StringmapMethod(String className, String methodName, String descriptor)
     Mapping for method name, of fully qualified class.
public  StringmapSignature(String signature)
     Mapping for signatures (used for generics in 1.5).
public  StringmapSourceFile(String className, String sourceFileName)
    
public  voidresolveClasses()
     Resolve the polymorphic dependencies of each class.
public  voidretainAttribute(String name)
     Mark an attribute type for retention.
public  voidretainAttributeForClass(String className, String attributeDescriptor)
    
public  voidretainClass(String name, int classLevel, int methodLevel, int fieldLevel, boolean retainHierarchy)
     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)
     Mark a field type for retention.
public  voidretainFieldMap(String name, String obfName)
     Mark a field type for retention, and specify its new name.
public  voidretainLineNumberTable(String name, LineNumberTableMapper lineNumberTableMapper)
    
public  voidretainMethod(String name, String descriptor)
     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  voidretainPackage(String packageName)
    
public  voidretainPackageMap(String name, String obfName)
     Mark a package for retention, and specify its new name.
public  voidretainSourceFileAttributeMap(String name, String obfName)
    
public  voidsetPedantic(boolean pedantic)
     Setter for property pedantic.
public  voidsetReplaceClassNameStrings(boolean replaceClassNameStrings)
     Setter for property replaceClassNameStrings.
final public static  StringtoUtf8XmlString(String s)
    
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)(Code)
Add a classfile's package, class, method and field entries to database.



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



findClassForName
public Cl findClassForName(String name)(Code)
walks the tree of TreeItems in order to find a class forName



findTreeItem
public TreeItem findTreeItem(String[] nameParts)(Code)
finds tree items by looking for name components only...



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



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



getAttrsToKeep
public String[] getAttrsToKeep(String className)(Code)



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



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



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



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



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



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



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



getNameEnum
public static Enumeration getNameEnum(String name)(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)(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.



isPedantic
public boolean isPedantic()(Code)
Getter for property pedantic. Value of property pedantic.



isReplaceClassNameStrings
public boolean isReplaceClassNameStrings()(Code)
Getter for property replaceClassNameStrings. Value of property replaceClassNameStrings.



mapAnnotationField
public String mapAnnotationField(String className, String methodName)(Code)
Mapping for annotation field/method name, of fully qualified class.
See Also:   NameMapper.mapAnnotationField
See Also:   



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



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



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



mapLineNumberTable
public boolean mapLineNumberTable(String className, String methodName, String methodSignature, LineNumberTableAttrInfo info)(Code)



mapLocalVariable
public String mapLocalVariable(String thisClassName, String methodName, String descriptor, String string)(Code)



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



mapSignature
public String mapSignature(String signature)(Code)
Mapping for signatures (used for generics in 1.5).
See Also:   NameMapper.mapSignature
See Also:   



mapSourceFile
public String mapSourceFile(String className, String sourceFileName)(Code)



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



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



retainAttributeForClass
public void retainAttributeForClass(String className, String attributeDescriptor)(Code)



retainClass
public void retainClass(String name, int classLevel, int methodLevel, int fieldLevel, boolean retainHierarchy)(Code)
Mark a class/interface type (and possibly methods and fields defined in class) for retention.



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



retainField
public void retainField(String name)(Code)
Mark a field type for retention.



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



retainLineNumberTable
public void retainLineNumberTable(String name, LineNumberTableMapper lineNumberTableMapper)(Code)



retainMethod
public void retainMethod(String name, String descriptor)(Code)
Mark a method type for retention.



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



retainPackage
public void retainPackage(String packageName)(Code)



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



retainSourceFileAttributeMap
public void retainSourceFileAttributeMap(String name, String obfName)(Code)



setPedantic
public void setPedantic(boolean pedantic)(Code)
Setter for property pedantic.
Parameters:
  pedantic - New value of property pedantic.



setReplaceClassNameStrings
public void setReplaceClassNameStrings(boolean replaceClassNameStrings)(Code)
Setter for property replaceClassNameStrings.
Parameters:
  replaceClassNameStrings - New value of property replaceClassNameStrings.



toUtf8XmlString
final public static String toUtf8XmlString(String s)(Code)



walkTree
public void walkTree(TreeAction ta)(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.