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, isAcceptedBeforeHeader
public ICompletionContext getContext(IScriptEngine scriptEngine, java.lang.Object resource, java.lang.String contents, int position, int selectionRange)
ICodeParser
ICompletionContext
.getContext
in interface ICodeParser
getContext
in class AbstractCodeParser
scriptEngine
- 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.