public class GenerateMethodReader extends Object
MethodReaders.
The class dynamically generates Java source code based on the provided configurations and compiles it on the fly.
Generated readers extend AbstractGeneratedMethodReader for faster dispatch than reflection and are used
internally by VanillaMethodReaderBuilder.| Constructor and Description |
|---|
GenerateMethodReader(WireType wireType,
net.openhft.chronicle.bytes.MethodReaderInterceptorReturns interceptor,
Boolean multipleNonMarshallableParamTypes,
Object[] metaDataHandler,
Object... instances)
Constructs a new instance of GenerateMethodReader.
|
| Modifier and Type | Method and Description |
|---|---|
Class<?> |
createClass()
Generates (if not already done) and compiles the source code of a custom
MethodReader at runtime. |
String |
generatedClassName()
Gets the simple name of the generated class.
|
String |
packageName()
Retrieves the package name for the generated class.
|
public GenerateMethodReader(WireType wireType, net.openhft.chronicle.bytes.MethodReaderInterceptorReturns interceptor, Boolean multipleNonMarshallableParamTypes, Object[] metaDataHandler, Object... instances)
wireType - target wire formatinterceptor - optional interceptor for return valuesmultipleNonMarshallableParamTypes - if Boolean#TRUE support multiple concrete parameter types, Boolean#FALSE forces a single type, null chooses automaticallymetaDataHandler - array of meta-data handlers, may be nullinstances - handlers that dictate the structure of the generated MethodReaderpublic Class<?> createClass()
MethodReader at runtime.
It uses the configurations and instances provided during initialization.
If there are issues during compilation, it provides detailed error messages for easier debugging.public String packageName()
public String generatedClassName()
Copyright © 2026 Chronicle Software Ltd. All rights reserved.