public class GenerateMethodBridge extends AbstractClassGenerator<net.openhft.chronicle.wire.GenerateMethodBridge.MethodBridgeMetaData>
AbstractClassGenerator.MetaData<M extends AbstractClassGenerator.MetaData<M>>CACHED_COMPILER, importSet, sourceCode| Constructor and Description |
|---|
GenerateMethodBridge()
Constructs a new instance with a fresh
MethodBridgeMetaData. |
| Modifier and Type | Method and Description |
|---|---|
static Object |
bridgeFor(Class<?> destType,
List<Object> toInvoke,
net.openhft.chronicle.bytes.UpdateInterceptor ui)
Builds and instantiates a method bridge for the supplied interface.
|
protected void |
generateConstructors(SourceCodeFormatter mainCode)
Generates the bridge constructor which initialises all handler fields and
optionally stores an
UpdateInterceptor. |
protected void |
generateFields(SourceCodeFormatter mainCode)
Emits field declarations for all handler objects defined in the
metadata.
|
protected void |
generateMethod(Method method,
StringBuilder params,
List<String> paramList,
SourceCodeFormatter mainCode)
This method is responsible for generating the code for a given method.
|
acquireClass, className, extendsClass, fieldCase, generateEnd, generateGenericType, generateMainCode, generateMethod, maxCode, maxCode, metaData, methodsToOverride, nameForClass, withLineNumberpublic GenerateMethodBridge()
MethodBridgeMetaData.public static Object bridgeFor(Class<?> destType, List<Object> toInvoke, net.openhft.chronicle.bytes.UpdateInterceptor ui)
destType - the primary interface the bridge will implementtoInvoke - handler instances to receive forwarded callsui - optional UpdateInterceptor applied to bridge invocationsprotected void generateFields(SourceCodeFormatter mainCode)
AbstractClassGenerator.fieldCase(Class) and
made unique if necessary.generateFields in class AbstractClassGenerator<net.openhft.chronicle.wire.GenerateMethodBridge.MethodBridgeMetaData>mainCode - The code formatter where the generated code is appended.protected void generateConstructors(SourceCodeFormatter mainCode)
UpdateInterceptor.generateConstructors in class AbstractClassGenerator<net.openhft.chronicle.wire.GenerateMethodBridge.MethodBridgeMetaData>mainCode - The code formatter where the generated code is appended.protected void generateMethod(Method method, StringBuilder params, List<String> paramList, SourceCodeFormatter mainCode)
generateMethod in class AbstractClassGenerator<net.openhft.chronicle.wire.GenerateMethodBridge.MethodBridgeMetaData>method - The method for which the code needs to be generated.params - The parameters of the method, formatted as a StringBuilder.paramList - The list of parameters of the method.mainCode - The SourceCodeFormatter where the generated code will be appended.Copyright © 2026 Chronicle Software Ltd. All rights reserved.