Child pages
  • Dynamic Methods and Properties
Skip to end of metadata
Go to start of metadata

The JetGroovy plugin underlines expressions in Groovy code that it doesn't recognize. So misspelling a variable or referencing a missing class gives you a visual cue:

Notice how "mystring" is underlined (it is mis-capitalized). But frequently these are valid expressions that will resolve at runtime... for instance, Grails GORM methods. You know these methods will exist so the underlining can be annoying. Accepting the Alt+Enter quick-fix on these properties and methods for "Add dynamic property" will add the expression to your list of dynamic expressions. You can view this dynamic expressions in the Dynamic properties panel.

Notice how the "".greetings is not underlined, whereas before it would have been. Also, the expression is now available for code completion:

To remove an expression just select it in the list and press delete on the keyboard.

  • No labels