Class CScriptUtils
java.lang.Object
com.priint.pubserver.comet.bridge.cscript.CScriptUtils
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptiongetScriptIncludes(String script) Gets includes (cscript) or imports (python) of a scriptstatic StringgetShortcutForPluginInclude(String pluginInclude, Map<String, String> qname2shortcutMappings) static booleanChecks, whether a script is a cscriptstatic booleanisPythonScript(String script) Checks, whether a script is a Python scriptstatic Stringstatic StringrewriteIncludes(String script, Set<String> foundIncludes, String localPrefix, Map<String, String> qname2ShortcutMappings)
-
Method Details
-
isCScript
Checks, whether a script is a cscript
- Parameters:
script- the script to check- Returns:
- true, if the script appears to be a cscript, false otherwise
-
isPythonScript
Checks, whether a script is a Python script
- Parameters:
script- the script to check- Returns:
- true, if the script is a python script, false otherwise
-
getScriptIncludes
Gets includes (cscript) or imports (python) of a script
- Parameters:
script- the script to scan for includes or imports- Returns:
- set of includes in this script
-
getShortcutForPluginInclude
-
rewriteIncludes
-
rewriteIncludes
-