javassist

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 » Byte Code » Javassist » javassist 
javassist
The Javassist Core API.

Javassist (Java programming assistant) makes bytecode engineering simple. It is a class library for editing bytecode in Java; it enables Java programs to define a new class at runtime and to modify a given class file when the JVM loads it.

The most significant class of this package is CtClass. See the description of this class first.

To know the version number of this package, type the following command:

    java -jar javassist.jar
    

It prints the version number on the console.

Java Source File NameTypeComment
ByteArrayClassPath.javaClass A ByteArrayClassPath contains bytes that is served as a class file to a ClassPool.
CannotCompileException.javaClass Thrown when bytecode transformation has failed.
ClassClassPath.javaClass A search-path for obtaining a class file by getResourceAsStream() in java.lang.Class.

Try adding a ClassClassPath when a program is running with a user-defined class loader and any class files are not found with the default ClassPool.

ClassMap.javaClass A hash table associating class names with different names.

This hashtable is used for replacing class names in a class definition or a method body.

ClassPath.javaInterface ClassPath is an interface implemented by objects representing a class search path.
ClassPool.javaClass A container of CtClass objects. A CtClass object must be obtained from this object. If get() is called on this object, it searches various sources represented by ClassPath to find a class file and then it creates a CtClass object representing that class file.
ClassPoolTail.javaClass
CodeConverter.javaClass Simple translator of method bodies (also see the javassist.expr package).

Instances of this class specifies how to instrument of the bytecodes representing a method body.

CtArray.javaClass Array types.
CtBehavior.javaClass CtBehavior represents a method, a constructor, or a static constructor (class initializer).
CtClass.javaClass An instance of CtClass represents a class.
CtClassType.javaClass Class types.
CtConstructor.javaClass An instance of CtConstructor represents a constructor. It may represent a static constructor (class initializer).
CtField.javaClass An instance of CtField represents a field.
CtMember.javaClass An instance of CtMember represents a field, a constructor, or a method.
CtMethod.javaClass An instance of CtMethod represents a method.
CtNewClass.javaClass
CtNewConstructor.javaClass A collection of static methods for creating a CtConstructor. An instance of this class does not make any sense.

A class initializer (static constructor) cannot be created by the methods in this class.

CtNewMethod.javaClass A collection of static methods for creating a CtMethod.
CtNewNestedClass.javaClass A newly created public nested class.
CtNewWrappedConstructor.javaClass
CtNewWrappedMethod.javaClass
CtPrimitiveType.javaClass An instance of CtPrimitiveType represents a primitive type.
Loader.javaClass The class loader for Javassist.

This is a sample class loader using ClassPool. Unlike a regular class loader, this class loader obtains bytecode from a ClassPool.

Note that Javassist can be used without this class loader; programmers can define their own versions of class loader.

LoaderClassPath.javaClass A class search-path representing a class loader.

It is used for obtaining a class file from the given class loader by getResourceAsStream(). The LoaderClassPath refers to the class loader through WeakReference.

Modifier.javaClass The Modifier class provides static methods and constants to decode class and member access modifiers.
NotFoundException.javaClass Signals that something could not be found.
SerialVersionUID.javaClass Utility for calculating serialVersionUIDs for Serializable classes.
Translator.javaInterface An observer of Loader.
URLClassPath.javaClass A class search-path specified with URL (http).
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.