groovy-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Smiljanic <john.smilja...@gmail.com>
Subject Adding a Trait to a ClassNode during semantic analysis
Date Wed, 20 Apr 2016 20:08:03 GMT
Hi All,

Groovy 2.3.7.

I've been experimenting with trying to add a Trait (or Mixin) to a
ClassNode during semantic analysis (compiler phase).  I've tried using
ClassNode::addInterface and ClassNode::addMixin passing the appropriate.  I
sort of expected ClassNode to have an addTrait or something like.

Is setting a trait at this phase of compilation supported?

JR

Mime
View raw message