IDEA-57513 dynamic methods for groovy enums
authorMaxim Medvedev <maxim.medvedev@jetbrains.com>
Mon, 13 Sep 2010 08:50:53 +0000 (12:50 +0400)
committerMaxim Medvedev <maxim.medvedev@jetbrains.com>
Mon, 13 Sep 2010 08:50:53 +0000 (12:50 +0400)
plugins/groovy/resources/standardDsls/enumMethods.gdsl

index cf23ce68ad1946c8154983c0ba841f5234d9d59d..ccd10ad43be65318fc795bb1e4b774f24e9cd625 100644 (file)
@@ -20,4 +20,7 @@ package standardDsls
 
 contributor (ctype:'java.lang.Enum') {
   method name:'values', type:'java.util.Collection', isStatic:true
+  method name: 'valueOf', type: psiType.canonicalText, params: [name: 'java.lang.String'], isStatic:true
+  method name: 'next', type: psiType.canonicalText
+  method name: 'previous', type: psiType.canonicalText
 }
\ No newline at end of file