Uses of Package
asteroid
-
Packages that use asteroid Package Description asteroid This package contains:
Classes to implement a local AST transformation Classes to access builder to create: nodes, expressions, statements Classes to make it easier to access AST node values Classes to check AST nodes Most of the times you can access all these functionalities through theAclassasteroid.internal This package contains internal AST transformations to get rid of boilerplate code when creating a local AST transformation. -
Classes in asteroid used by asteroid Class Description AbstractLocalTransformation This class is an abstraction to process certain nodes annotated with a specific annotation node type
Types indicate wich nodes are affected:
Lets say we wanted to build a transformation to transform methods annotated by @MyAnnotation:Criterias This class contains out-of-the-box criterias, they are used to help out finding specific nodes.Expressions This class hides the different implementations to create expressions through the Groovy api to provide a unified an easier way to create expressions when coding an AST transformation.Local.TO Targets available to apply a specific transformationModifiers This class acts as a proxy to access modifier codes found atOpcodes.Nodes This class provides access to different builders for creating AST nodes.Statements This class hides the different implementations to create expressions through the Groovy api to provide a unified an easier way to create statements when coding an AST transformation.Utils This class gathers together a bunch of util functions to deal with AST transformations. -
Classes in asteroid used by asteroid.internal Class Description AbstractGlobalTransformation This class applies all transformers provided by the method getTransformers in order to all class nodes present in a given source unit instance.AbstractLocalTransformation This class is an abstraction to process certain nodes annotated with a specific annotation node type
Types indicate wich nodes are affected:
Lets say we wanted to build a transformation to transform methods annotated by @MyAnnotation: