|
static DataOutputStream | makeDataOutputStream (final String thisDirectoryName, final String thisClassname) throws IOException |
|
static String | makeFileName (final String thisDirectoryName, final String thisClassname) throws IOException |
|
static Manifest | makeManifest (final String thisApp, final String thisVersion, final String thisUrl) |
|
static JarOutputStream | makeJarOutputStream (final String thisJarName, final Manifest thisManifest) throws IOException |
|
static void | setJarOutputStream (final JarOutputStream thisJarStream, final String thisClassName) throws IOException |
|
static void | tweakToClass (final CtClass... theseClasses) throws CannotCompileException |
|
static void | tweakToJar (final String thisDir, final String thisJarName, final Manifest thisManifest, final CtClass... theseClasses) throws IOException, CannotCompileException |
|
static void | tweakToBytecode (final String thisDir, final CtClass... theseClasses) throws IOException, CannotCompileException |
|
static void | tweakToBytecode (final CtClass... theseClasses) throws IOException, CannotCompileException |
|
|
static void | tweakToBytecode (final DataOutputStream thisDataOutputStream, final boolean close, final CtClass... theseClasses) throws IOException, CannotCompileException |
|
Utility class to set modified classes
- Author
- Bernard Bou
◆ makeDataOutputStream()
static DataOutputStream grammarscope.tweak.Setter.makeDataOutputStream |
( |
final String |
thisDirectoryName, |
|
|
final String |
thisClassname |
|
) |
| throws IOException |
|
static |
Make data output stream
- Parameters
-
thisDirectoryName | directory |
thisClassname | class name |
- Returns
- data output stream
- Exceptions
-
◆ makeFileName()
static String grammarscope.tweak.Setter.makeFileName |
( |
final String |
thisDirectoryName, |
|
|
final String |
thisClassname |
|
) |
| throws IOException |
|
static |
Make filename
- Parameters
-
thisDirectoryName | directory |
thisClassname | class name |
- Returns
- data output stream
- Exceptions
-
◆ makeJarOutputStream()
static JarOutputStream grammarscope.tweak.Setter.makeJarOutputStream |
( |
final String |
thisJarName, |
|
|
final Manifest |
thisManifest |
|
) |
| throws IOException |
|
static |
Make jar output stream
- Parameters
-
thisJarName | jar filename |
thisManifest | manifest |
- Returns
- jar output stream
- Exceptions
-
◆ makeManifest()
static Manifest grammarscope.tweak.Setter.makeManifest |
( |
final String |
thisApp, |
|
|
final String |
thisVersion, |
|
|
final String |
thisUrl |
|
) |
| |
|
static |
Make manifest
- Parameters
-
thisApp | application name |
thisVersion | version |
thisUrl | site url |
- Returns
- manifest
◆ setJarOutputStream()
static void grammarscope.tweak.Setter.setJarOutputStream |
( |
final JarOutputStream |
thisJarStream, |
|
|
final String |
thisClassName |
|
) |
| throws IOException |
|
static |
Make data output stream from jar output stream
- Parameters
-
thisJarStream | jar output stream |
thisClassName | class name |
- Exceptions
-
◆ tweakToBytecode() [1/3]
static void grammarscope.tweak.Setter.tweakToBytecode |
( |
final CtClass... |
theseClasses | ) |
throws IOException, CannotCompileException |
|
static |
Tweak to class file in current directory
- Parameters
-
- Exceptions
-
CannotCompileException | exception |
IOException | exception |
◆ tweakToBytecode() [2/3]
static void grammarscope.tweak.Setter.tweakToBytecode |
( |
final DataOutputStream |
thisDataOutputStream, |
|
|
final boolean |
close, |
|
|
final CtClass... |
theseClasses |
|
) |
| throws IOException, CannotCompileException |
|
staticpackage |
Tweak to file
- Parameters
-
thisDataOutputStream | data output stream |
close | whether to close |
theseClasses | classes |
- Exceptions
-
CannotCompileException | exception |
IOException | exception |
◆ tweakToBytecode() [3/3]
static void grammarscope.tweak.Setter.tweakToBytecode |
( |
final String |
thisDir, |
|
|
final CtClass... |
theseClasses |
|
) |
| throws IOException, CannotCompileException |
|
static |
Tweak to class file
- Parameters
-
thisDir | directory |
theseClasses | class |
- Exceptions
-
CannotCompileException | exception |
IOException | exception |
◆ tweakToClass()
static void grammarscope.tweak.Setter.tweakToClass |
( |
final CtClass... |
theseClasses | ) |
throws CannotCompileException |
|
static |
Tweak to class in class loader
- Parameters
-
- Exceptions
-
CannotCompileException | exception |
◆ tweakToJar()
static void grammarscope.tweak.Setter.tweakToJar |
( |
final String |
thisDir, |
|
|
final String |
thisJarName, |
|
|
final Manifest |
thisManifest, |
|
|
final CtClass... |
theseClasses |
|
) |
| throws IOException, CannotCompileException |
|
static |
Tweak to class in jar file
- Parameters
-
thisDir | directory |
thisJarName | jar filename |
thisManifest | manifest |
theseClasses | classes |
- Exceptions
-
CannotCompileException | exception |
IOException | exception |
The documentation for this class was generated from the following file: