Package org.eclipse.ease.lang.groovy
Class GroovyCodeParser
java.lang.Object
org.eclipse.ease.AbstractCodeParser
org.eclipse.ease.lang.groovy.GroovyCodeParser
- All Implemented Interfaces:
ICodeParser
public class GroovyCodeParser extends AbstractCodeParser
-
Field Summary
Fields inherited from class org.eclipse.ease.AbstractCodeParser
PARAMETER_PATTERN -
Constructor Summary
Constructors Constructor Description GroovyCodeParser() -
Method Summary
Modifier and Type Method Description ICompletionContextgetContext(IScriptEngine scriptEngine, Object resource, String contents, int position, int selectionRange)Parse the given piece of code into a language specificICompletionContext.Methods inherited from class org.eclipse.ease.AbstractCodeParser
extractKeywords, getHeaderComment, getSignatureInfo, isAcceptedBeforeHeader
-
Constructor Details
-
GroovyCodeParser
public GroovyCodeParser()
-
-
Method Details
-
getContext
public ICompletionContext getContext(IScriptEngine scriptEngine, Object resource, String contents, int position, int selectionRange)Description copied from interface:ICodeParserParse the given piece of code into a language specificICompletionContext.- Parameters:
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 position- Returns:
ICompletionContextwith parsed information if successful,nullin case invalid syntax given.
-