public class PythonCodeParser extends AbstractCodeParser
PARAMETER_PATTERN| Constructor and Description |
|---|
PythonCodeParser() |
| Modifier and Type | Method and Description |
|---|---|
ICompletionContext |
getContext(IScriptEngine scriptEngine,
java.lang.Object resource,
java.lang.String contents,
int position,
int selectionRange)
Parse the given piece of code into a language specific
ICompletionContext. |
extractKeywords, getHeaderComment, getSignatureInfo, isAcceptedBeforeHeaderpublic ICompletionContext getContext(IScriptEngine scriptEngine, java.lang.Object resource, java.lang.String contents, int position, int selectionRange)
ICodeParserICompletionContext.getContext in interface ICodeParsergetContext in class AbstractCodeParserscriptEngine - running script engineresource - resource instance to be parsedcontents - code to be parsed (only up to cursor position)position - cursor position within contentsselectionRange - amount of selected characters from cursor positionICompletionContext with parsed information if successful, null in case invalid syntax given.