Class CScriptUtil
- java.lang.Object
-
- com.priint.pubserver.comet.bridge.CScriptUtil
-
public class CScriptUtil extends java.lang.ObjectThe type C script util. For internal use only.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCScriptUtil.StubGenerationStyleThe enum Stub generation style.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringcompileCScriptHeader(PluginMethod method)Compile c script header string.static java.lang.StringcompileCScriptStub(PluginMethod method, ContextRules context)Compile c script stub string.static java.lang.StringcompileCScriptStub(PluginMethod method, ContextRules context, CScriptUtil.StubGenerationStyle style)Compile c script stub string.static java.lang.StringcompileScriptHeader(CScriptUtil.StubGenerationStyle style)static java.lang.StringcompileScriptStub(PluginMethod method, ContextRules context, CScriptUtil.StubGenerationStyle style)Compile c script stub string.static java.lang.Class<? extends java.util.List<?>>getListImplementation(java.lang.String elementType)Gets list implementation.
-
-
-
Method Detail
-
compileCScriptStub
public static java.lang.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
public static java.lang.String compileCScriptHeader(PluginMethod method) throws CometException
Compile c script header string.- Parameters:
method- the method- Returns:
- the string
- Throws:
CometException- the comet exception
-
compileScriptStub
public static java.lang.String compileScriptStub(PluginMethod method, ContextRules context, CScriptUtil.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
public static java.lang.String compileScriptHeader(CScriptUtil.StubGenerationStyle style)
-
compileCScriptStub
public static java.lang.String compileCScriptStub(PluginMethod method, ContextRules context, CScriptUtil.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
public static java.lang.Class<? extends java.util.List<?>> getListImplementation(java.lang.String elementType)
Gets list implementation.- Parameters:
elementType- the element type- Returns:
- the list implementation
-
-