bjectweb.org). Assumes that the version of ASM is 3.0 or above. ASM operates using a SAXParser-like "visitor-pattern". We utilise this as follows :-
enhance : start with a ClassReader for the class to be enhanced, and create a JdoClassAdapter (attached to a ClassWriter) that will perform the modifications, and use that as a visitor for the reader so that the reader sends its events to the adapter. Within the JdoClassAdapter we also make use of a JdoMethodAdapter to update individual methods
check : take a ClassReader, and create a JdoClassChecker that performs the checks. We then set the checker as a visitor for the reader so that the reader sends its events to the checker.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.