package Ġcom . j tran sc . plugin . enum Ċ Ċ import Ġcom . j tran sc . ast .* Ċ import Ġcom . j tran sc . ast . tre esh aking . Tree Sh aking Api Ċ import Ġcom . j tran sc . plugin . J Tran sc Plugin Ċ Ċ /** Ċ Ġ* ĠPlugin Ġthat Ġinclude Ġvalues () Ġmethod Ġfrom Ġenums Ċ Ġ*/ Ċ class ĠEnum J Tran sc Plugin Ġ: ĠJ Tran sc Plugin () Ġ{ Ċ ĉ override Ġfun Ġon Tree Sh aking Add Basic Class ( tree Sh aking : ĠTree Sh aking Api , Ġfq name : ĠF q Name , Ġold class : ĠAst Class , Ġnew class : ĠAst Class ) Ġ{ Ċĉ ĉ if Ġ( old class . modifiers . is Enum Ġ&& Ġold class . ext ending Ġ== Ġjava . lang . Enum :: class . java . fq name ) Ġ{ Ċĉĉ ĉ tree Sh aking . add Method ( Ast Method Ref ( fq name , Ġ" values ", ĠAst Type . METHOD ( ARRAY ( old class . ast Type ), ĠlistOf ())), Ġ" Enum J Tran sc Plugin ") Ċĉ ĉ } Ċ ĉ } Ċ } Ċ