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()
Default constructor initializing with new MethodBridgeMetaData.
|
| Modifier and Type | Method and Description |
|---|---|
static Object |
bridgeFor(Class<?> destType,
List<Object> toInvoke,
net.openhft.chronicle.bytes.UpdateInterceptor ui)
Creates a bridge for the provided destination type.
|
protected void |
generateConstructors(SourceCodeFormatter mainCode)
Generates constructors for the class.
|
protected void |
generateFields(SourceCodeFormatter mainCode)
Generates fields for the class.
|
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()
public static Object bridgeFor(Class<?> destType, List<Object> toInvoke, net.openhft.chronicle.bytes.UpdateInterceptor ui)
destType - The class type for which a bridge is to be created.toInvoke - List of objects to be invoked.ui - The UpdateInterceptor instance, it can be null.protected void generateFields(SourceCodeFormatter mainCode)
AbstractClassGeneratorgenerateFields in class AbstractClassGenerator<net.openhft.chronicle.wire.GenerateMethodBridge.MethodBridgeMetaData>mainCode - The code formatter where the generated code is appended.protected void generateConstructors(SourceCodeFormatter mainCode)
AbstractClassGeneratorgenerateConstructors 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 © 2024. All rights reserved.