You absolutely need to call the one that takes a Class as an argument. The
String version is really for deep internal things, and can be resolved by
the compiler, but it's already too late in an AST xform.
2016-02-22 12:39 GMT+01:00 Anton Sarov :
> But now that you
But now that you mention it... I see that there is some big difference in
ClassHelper.make(String) and ClassHelper.make(Class) - regarding generics,
ClassNode construction and similar.If I use the overriden method with a Class
argument then the error is gone. But I am still slightly confused as
Hi Cedric,
well first in the method where I transform the MethodCallExpression I use this:
ClassHelper.make(returnType) where 'returnType' is the String
"org.apache.commons.lang3.tuple.Pair" and after this in my
visitDeclarationExpression (as I am in a Visitor) I use this ClassNode to
create
Hi Anton!
How, in your AST transformation, do you create the class node for `Pair`?
2016-02-22 12:02 GMT+01:00 Anton Sarov :
> Hello,
>
> I have a DSL and some AST transformations. Now I would like to include
> some 3rd party classes in my DSL. For example some apache
Hello,
I have a DSL and some AST transformations. Now I would like to include some 3rd
party classes in my DSL. For example some apache commons lang classes like
Pair, etc.
In my language I offer the user the "bar()" method (which I have defined
elsewhere). However the "bar()" method is just