Class CScriptStubGenerationUtils
java.lang.Object
com.priint.pubserver.comet.bridge.cscript.CScriptStubGenerationUtils
The type C script util. For internal use only.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceThe interface C script constants.static enumThe enum cScript type info.static enumThe enum Stub generation style. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringcompileCScriptHeader(PluginMethod method) Compile c script header string.static StringcompileCScriptStub(PluginMethod method, ContextRules context) Compile c script stub string.static StringcompileCScriptStub(PluginMethod method, ContextRules context, CScriptStubGenerationUtils.StubGenerationStyle style) Compile c script stub string.static Stringstatic StringcompileScriptStub(PluginMethod method, ContextRules context, CScriptStubGenerationUtils.StubGenerationStyle style) Compile c script stub string.getListImplementation(String elementType) Gets list implementation.
-
Method Details
-
compileCScriptStub
public static String compileCScriptStub(PluginMethod method, ContextRules context) throws CometException Compile c script stub string.- Parameters:
method- the methodcontext- the context- Returns:
- the string
- Throws:
CometException- the comet exception
-
compileCScriptHeader
Compile c script header string.- Parameters:
method- the method- Returns:
- the string
- Throws:
CometException- the comet exception
-
compileScriptStub
public static String compileScriptStub(PluginMethod method, ContextRules context, CScriptStubGenerationUtils.StubGenerationStyle style) throws CometException Compile c script stub string.
Calling this method is equivalent to calling
compileCScriptStub(PluginMethod, ContextRules, StubGenerationStyle).
Since we support Python stub scripts from version 4.2.0, this wrapper was added to reflect the generic approach of script stub generation.- Parameters:
method- the methodcontext- the contextstyle- the style- Returns:
- generated script
- Throws:
CometException- the comet exception
-
compileScriptHeader
-
compileCScriptStub
public static String compileCScriptStub(PluginMethod method, ContextRules context, CScriptStubGenerationUtils.StubGenerationStyle style) throws CometException Compile c script stub string.- Parameters:
method- the methodcontext- the contextstyle- the style- Returns:
- the string
- Throws:
CometException- the comet exception
-
getListImplementation
Gets list implementation.- Parameters:
elementType- the element type- Returns:
- the list implementation
-