org.sourceforge.jemm.weaver.analysis
Class JAClassCreator

java.lang.Object
  extended by org.sourceforge.jemm.weaver.analysis.JAClassCreator

public final class JAClassCreator
extends java.lang.Object

Utility class for setting up CtClass instances from classes stored on the filesystem.

Author:
Paul Keeble

Method Summary
static javassist.CtClass createClass(java.io.File baseDirectory, java.lang.String fileName)
          Load a class file as a CtClass from the specified location on the filesystem.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createClass

public static javassist.CtClass createClass(java.io.File baseDirectory,
                                            java.lang.String fileName)
                                     throws java.io.IOException
Load a class file as a CtClass from the specified location on the filesystem.

Parameters:
baseDirectory - The base directory to load from.
fileName - The path of the class file relative to 'baseDirectory'
Returns:
A CtClass instance representing the request class.
Throws:
java.io.IOException - On IOError loaded class.


Copyright © 2009. All Rights Reserved.