public class CodeGenMemberInjector extends Object
| Constructor and Description |
|---|
CodeGenMemberInjector() |
| Modifier and Type | Method and Description |
|---|---|
static void |
injectMembers(ClassGenerator<?> cg,
Object instance,
FragmentContext context)
Generated code for a class may have several class members, they
are initialized by invoking this method when the instance created.
|
public static void injectMembers(ClassGenerator<?> cg, Object instance, FragmentContext context)
cg - the class generatorinstance - the class instance created by the compilercontext - the fragment contextCopyright © 2021 The Apache Software Foundation. All rights reserved.