This {@link JResourceFile} implementation will generate a Java sourcefile by copying the source code from a resource.
While copying a resource, we look for a package declaration and replace it with the target package name. This allows the static Java source code to have an arbitrary package declaration.
You can also use the getJClass method to obtain a {@link JClass}object that represents the static file. This allows the client code to refer to the class from other CodeModel generated code.
Note that because we don't parse the static Java source code, the returned {@link JClass} object doesn't respond to methods like"isInterface" or "_extends", @author Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)
|
|
|
|
|
|
|
|