GrammarScope  4.0.0
Classes | Static Public Member Functions | Static Package Functions | List of all members
grammarscope.tweak.Setter Class Reference

Classes

enum  Output
 

Static Public Member Functions

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 Package Functions

static void tweakToBytecode (final DataOutputStream thisDataOutputStream, final boolean close, final CtClass... theseClasses) throws IOException, CannotCompileException
 

Detailed Description

Utility class to set modified classes

Author
Bernard Bou

Member Function Documentation

◆ makeDataOutputStream()

static DataOutputStream grammarscope.tweak.Setter.makeDataOutputStream ( final String  thisDirectoryName,
final String  thisClassname 
) throws IOException
static

Make data output stream

Parameters
thisDirectoryNamedirectory
thisClassnameclass name
Returns
data output stream
Exceptions
IOExceptionexception

◆ makeFileName()

static String grammarscope.tweak.Setter.makeFileName ( final String  thisDirectoryName,
final String  thisClassname 
) throws IOException
static

Make filename

Parameters
thisDirectoryNamedirectory
thisClassnameclass name
Returns
data output stream
Exceptions
IOExceptionexception

◆ makeJarOutputStream()

static JarOutputStream grammarscope.tweak.Setter.makeJarOutputStream ( final String  thisJarName,
final Manifest  thisManifest 
) throws IOException
static

Make jar output stream

Parameters
thisJarNamejar filename
thisManifestmanifest
Returns
jar output stream
Exceptions
IOExceptionexception

◆ makeManifest()

static Manifest grammarscope.tweak.Setter.makeManifest ( final String  thisApp,
final String  thisVersion,
final String  thisUrl 
)
static

Make manifest

Parameters
thisAppapplication name
thisVersionversion
thisUrlsite 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
thisJarStreamjar output stream
thisClassNameclass name
Exceptions
IOExceptionexception

◆ tweakToBytecode() [1/3]

static void grammarscope.tweak.Setter.tweakToBytecode ( final CtClass...  theseClasses) throws IOException, CannotCompileException
static

Tweak to class file in current directory

Parameters
theseClassesclasssw
Exceptions
CannotCompileExceptionexception
IOExceptionexception

◆ 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
thisDataOutputStreamdata output stream
closewhether to close
theseClassesclasses
Exceptions
CannotCompileExceptionexception
IOExceptionexception

◆ tweakToBytecode() [3/3]

static void grammarscope.tweak.Setter.tweakToBytecode ( final String  thisDir,
final CtClass...  theseClasses 
) throws IOException, CannotCompileException
static

Tweak to class file

Parameters
thisDirdirectory
theseClassesclass
Exceptions
CannotCompileExceptionexception
IOExceptionexception

◆ tweakToClass()

static void grammarscope.tweak.Setter.tweakToClass ( final CtClass...  theseClasses) throws CannotCompileException
static

Tweak to class in class loader

Parameters
theseClassesclasses
Exceptions
CannotCompileExceptionexception

◆ 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
thisDirdirectory
thisJarNamejar filename
thisManifestmanifest
theseClassesclasses
Exceptions
CannotCompileExceptionexception
IOExceptionexception

The documentation for this class was generated from the following file: