![]() |
GrammarScope
4.0.0
|
Classes | |
| interface | ProcessField |
Static Public Member Functions | |
| static CtClass | makeClass (final String thisClassName) |
| static void | addMethod (final CtClass thisClass, final String thisDef) throws CannotCompileException |
| static void | addCatchToConstructor (final CtConstructor thisConstructor, final CtClass thisExceptionType) throws CannotCompileException |
| static void | removeClassInitializer (final CtClass thisClass) throws NotFoundException |
| static void | removeFields (final CtClass thisClass, final String[][] thisFilter) throws Exception |
| static void | removeFieldsIfExist (final CtClass thisClass, final String... theseFieldNames) throws Exception |
| static void | nullifyFields (final CtClass thisClass, final String[][] thisFilter) throws Exception |
| static void | renameFields (final CtClass thisClass, final String thisSuffix, final String[][] thisFilter) throws Exception |
| static void | makeFieldsNonStatic (final CtClass thisClass, final String[][] thisFilter) throws Exception |
Static Public Attributes | |
| static StringBuilder | warnings = new StringBuilder() |
Static Package Functions | |
| static void | warn () |
| static private< T extends ProcessField > void | processFields (final CtClass thisClass, final String[][] thisFilter, final T thisProcessor) throws Exception |
Utility class to perform tweaks
|
static |
Add catch to constructor
| thisConstructor | constructor |
| thisExceptionType | exception type |
| CannotCompileException | exception |
|
static |
Add method
| thisClass | class |
| thisDef | method definition |
| CannotCompileException | exception |
|
static |
Make new class
| thisClassName | class name |
|
static |
Make field non static
| thisClass | class |
| thisFilter | field filter |
| Exception | exception |
|
static |
Initialize fields with null
| thisClass | class |
| thisFilter | field filter |
| Exception | exception |
|
staticpackage |
Process field
| thisClass | class |
| thisFilter | field filter |
| thisProcessor | processor |
| <T> | type of processing result |
| Exception | exception exception |
|
static |
Remove class initializer
| thisClass | class |
| NotFoundException | exception |
|
static |
Remove fields
| thisClass | class |
| thisFilter | field filter |
| Exception | exception |
|
static |
Remove fields if exist
| thisClass | class |
| theseFieldNames | fields |
| Exception | exception |
|
static |
Rename fields
| thisClass | class |
| thisSuffix | suffix |
| thisFilter | field filter |
| Exception | exception |
|
staticpackage |
|
static |
1.8.17