groovy-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From JamieEchlin <>
Subject getting method from properties in AST
Date Mon, 24 Aug 2015 16:06:59 GMT

Relating to my question:

I have a type checking AST more or less following the model Cedric proposed

But I have a problem. Given a java class:

class Foo {
   def getText() {}

If the user-supplied code is: 


I need to know that this is really "foo.getText()". 

Presumably I could duplicate the rules that groovy uses, eg look at
getText(), then isText(), but I would have thought there would be a better
way. Perhaps run the AST later in the process? But then I don't think I can.

View this message in context:
Sent from the Groovy Users mailing list archive at

View raw message