public interface ICodeParser
Modifier and Type | Method and Description |
---|---|
String |
createHeader(Map<String,String> headerContent)
Create a script header for given keywords.
|
ICompletionContext |
getContext(IScriptEngine scriptEngine,
Object resource,
String contents,
int position,
int selectionRange)
Parse the given piece of code into a language specific
ICompletionContext . |
Map<String,String> |
parse(InputStream stream)
Parse stream for key:value pairs.
|
Map<String,String> parse(InputStream stream)
stream
- stream to parseString createHeader(Map<String,String> headerContent)
headerContent
- key:value pairs to be storedICompletionContext getContext(IScriptEngine scriptEngine, Object resource, String contents, int position, int selectionRange)
ICompletionContext
.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.