public class UiDelegateUpdateAugmenter
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
protected class |
UiDelegateUpdateAugmenter.AugmentClassAdapter
Class adapter that augments the UI functionality.
|
| Constructor and Description |
|---|
UiDelegateUpdateAugmenter()
Creates the new augmenter.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
augmentClass(java.lang.String dir,
java.lang.String name)
Augments a single class with additional UI behaviour.
|
static void |
main(java.lang.String[] args)
Test method.
|
void |
process(java.lang.String toStrip,
java.io.File file,
java.util.regex.Pattern pattern)
Processes a single file or a directory, augmenting all relevant classes.
|
void |
setVerbose(boolean isVerbose)
Sets the verbosity.
|
public UiDelegateUpdateAugmenter()
protected void augmentClass(java.lang.String dir,
java.lang.String name)
dir - Root directory for the library that contains the class.name - Fully-qualified class name.AugmentException - If the augmentation process failed.public void process(java.lang.String toStrip,
java.io.File file,
java.util.regex.Pattern pattern)
throws AugmentException
toStrip - The leading prefix to strip from the file names. Is used to
create fully-qualified class name.file - File resource (can point to a single file or to a directory).pattern - Pattern to apply to the file name (of the single file). If the
file name matches the pattern, the relevant class is
augmented.AugmentException - If the augmentation process failed.public void setVerbose(boolean isVerbose)
isVerbose - New value for augmentation process verbosity.public static void main(java.lang.String[] args)
throws AugmentException
args - AugmentException