public class GroovySourceParser extends SourceParser
Constructor and Description |
---|
GroovySourceParser() |
Modifier and Type | Method and Description |
---|---|
SourceModel |
parse(java.lang.String scriptContent)
Parse a script content.
|
SourceModel |
parse(java.lang.String scriptContent,
boolean hasSingletonMethod)
Parse a script content.
|
changeState, countImportLines, getLineNumber, getOffset, getSourceModel, parse, setImportLines, setOffset
public SourceModel parse(java.lang.String scriptContent)
scriptContent
- the script contentpublic SourceModel parse(java.lang.String scriptContent, boolean hasSingletonMethod)
scriptContent
- the script contenthasSingletonMethod
- true if there is a singleton methodCopyright © 2019-2024 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence