Real time Groovy evaluation to process input data
Directives you can use in input panel (top):
- @gp:json
- @gp:xml
- @gp:url
- @gp:file
- @gp:groovy
- @gp:cmd
It parses the text below the directive as json and returns the value as input
It parses the text below the directive as xml and returns the value as input
It fetches the text below the directive as an url and returns the content as input
It fetches the text below the directive as an absolute path and returns the content of the file as input
It executes the text below the directive as a groovy script and returns the returned value of the execution as input
It executes the text below the directive as a shell and returns the stdout of the execution as input
You can use these methods to create code templates:
- processer.capitalize()
- processer.decapitalize()
- processer.toPropertyName()
- processer.toGetter()
- processer.toSetter(,)
- processer.toCamelCase()
- processer.toSnakeCase()
- processer.toSausageCase()
- processor.rpad(, , <character_filler>)
- processor.lpad(, , <character_filler>)
- processor.parseJson()
- processor.toJson()
- processor.toJsonPrettyPrint()
You can also use the 'gp' alias instead of 'processer'