A B C D E F G H I L M N O P R S T U V W
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- A - Class in asteroid
-
Entry point to look up functions and utilities to work with nodes, expressions, statements, node utils...etc
- A() - Constructor for class asteroid.A
- AbstractClassNodeTransformer - Class in asteroid.transformer
-
This
Transformercan be used to transformClassNodenodes. - AbstractClassNodeTransformer(SourceUnit, Closure<Boolean>) - Constructor for class asteroid.transformer.AbstractClassNodeTransformer
-
Every instance needs the source unit and the name of the class it's going to transform.
- AbstractExpressionTransformer<T extends Expression> - Class in asteroid.transformer
-
This
Transformercould be used as a base for transformingExpressioninstances. - AbstractExpressionTransformer(Class<T>, SourceUnit) - Constructor for class asteroid.transformer.AbstractExpressionTransformer
-
Every instance needs the source unit awareness and the name of the method it's going to transform
- AbstractExpressionTransformer(Class<T>, SourceUnit, Closure<Boolean>) - Constructor for class asteroid.transformer.AbstractExpressionTransformer
-
Every instance needs the source unit awareness and the name of the method it's going to transform
- AbstractGlobalTransformation - Class in asteroid
-
This class applies all transformers provided by the method getTransformers in order to all class nodes present in a given source unit instance.
- AbstractGlobalTransformation() - Constructor for class asteroid.AbstractGlobalTransformation
- AbstractLocalTransformation<T extends Annotation,S extends AnnotatedNode> - Class in asteroid
-
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: - AbstractLocalTransformation() - Constructor for class asteroid.AbstractLocalTransformation
-
Default constructor
- AbstractLocalTransformation(Class<T>) - Constructor for class asteroid.AbstractLocalTransformation
-
Default constructor
- AbstractMethodNodeTransformer - Class in asteroid.transformer
-
This
Transformercan be used to transformMethodNodenodes. - AbstractMethodNodeTransformer(SourceUnit, Closure<Boolean>) - Constructor for class asteroid.transformer.AbstractMethodNodeTransformer
-
Deprecated.
- AbstractStatementTransformer<T extends Statement> - Class in asteroid.transformer
-
This
Transformercould be used as a base for transformingStatementinstances. - AbstractStatementTransformer(SourceUnit, Closure<Boolean>) - Constructor for class asteroid.transformer.AbstractStatementTransformer
-
Every instance needs the source unit awareness and the name of the method it's going to transform
- AbstractTransformer - Class in asteroid.transformer
-
Most transformers need at some point the source unit in order to fix or apply properly the scope to each variable.
- AbstractTransformer(SourceUnit) - Constructor for class asteroid.transformer.AbstractTransformer
-
This constructor needs a source unit
- ACC - Static variable in class asteroid.A
-
Entry point to access language modifiers
- addAfterCodeBlock(MethodNode, Statement) - Method in class asteroid.utils.NodeUtils
-
Adds the statement passed as argument after the current method code
- addAroundCodeBlock(MethodNode, Statement, Statement) - Method in class asteroid.utils.NodeUtils
-
Adds two different statements to be executed before and after the current method code
- addASTAnnotationsFromTo(ClassNode, CompilePhase) - Static method in class asteroid.internal.TransformationUtils
-
All transformation will be always annotated with:
InheritConstructorsGroovyASTTransformationTo avoid repeating this over and over again this method adds both to the annotatedClassNodepassed as first argument - addBeforeCodeBlock(MethodNode, Statement) - Method in class asteroid.utils.NodeUtils
-
Adds the statement passed as argument before the current method code
- addCatchStmt(Class, String, Statement) - Method in class asteroid.statements.TryCatchStatementBuilder
-
Adds one catch statement to catch a specific exception giving a specific name for the exception variable.
- addCatchStmt(ClassNode, String, Statement) - Method in class asteroid.statements.TryCatchStatementBuilder
-
Adds one catch statement to catch a specific exception giving a specific name for the exception variable.
- addCheckTo(MethodNode) - Method in class asteroid.utils.NodeUtils
-
Adds checks to the method node passed as parameter
- addGeneratedField(ClassNode, FieldNode) - Method in class asteroid.utils.NodeUtils
- addGeneratedFieldIfNotPresent(ClassNode, FieldNode) - Method in class asteroid.utils.NodeUtils
- addGeneratedMethod(ClassNode, MethodNode) - Method in class asteroid.utils.NodeUtils
-
Adds the method marked as
Generatedto the class node passed as first argument - addGeneratedMethodIfNotPresent(ClassNode, MethodNode) - Method in class asteroid.utils.NodeUtils
-
Adds a method marked as
Generatedto the class node passed as first argument only if it wasn't present in the first place - addImport(ClassNode, Class) - Method in class asteroid.utils.NodeUtils
-
Adds an import to the
ModuleNodecontaining theClassNodepassed as first argument. - addImport(ClassNode, Class, String) - Method in class asteroid.utils.NodeUtils
-
Adds an import to the
ModuleNodecontaining theClassNodepassed as first argument. - addImport(ClassNode, String) - Method in class asteroid.utils.NodeUtils
-
Adds an import to the
ModuleNodecontaining theClassNodepassed as first argument. - addImport(ClassNode, String, String) - Method in class asteroid.utils.NodeUtils
-
Adds an import to the
ModuleNodecontaining theClassNodepassed as first argument. - addInterfaces(ClassNode, Class...) - Method in class asteroid.utils.NodeUtils
-
Makes the
ClassNodeto implement the interfaces passed as arguments
IMPORTANT: Dont use this method at anyCompilePhasebefore SEMANTIC_ANALYSIS. - addInterfaces(ClassNode, ClassNode...) - Method in class asteroid.utils.NodeUtils
-
Makes the
ClassNodeto implement the interfaces passed as arguments. - addMethod(ClassNode, MethodNode) - Method in class asteroid.utils.NodeUtils
-
Adds the method to the class node passed as first argument
- addMethodIfNotPresent(ClassNode, MethodNode) - Method in class asteroid.utils.NodeUtils
-
Adds a method to the class node passed as first argument only if it wasn't present in the first place
- addProperty(ClassNode, PropertyNode) - Method in class asteroid.utils.NodeUtils
-
Adds the property to the class node passed as first argument
- addPropertyIfNotPresent(ClassNode, PropertyNode) - Method in class asteroid.utils.NodeUtils
-
Adds a property to the class node passed as first argument only if it wasn't present in the first place
- and(Closure<Boolean>...) - Static method in class asteroid.Criterias
-
Combines two
Closureexpressions returning a boolean. - ANNOTATED - asteroid.Local.TO
-
Applies to any
AnnotatedNode - annotation(Class) - Method in class asteroid.Nodes
-
Creates an instance of
AnnotationNodeBuilder - annotation(Class) - Static method in class asteroid.nodes.AnnotationNodeBuilder
- ANNOTATION_VALUE - Static variable in class asteroid.utils.NodeUtils
- AnnotationNodeBuilder - Class in asteroid.nodes
-
Builder to create instances of type
AnnotationNode - applyTo() - Method in annotation type asteroid.Local
- applyToStatementsByLabel(List<StatementUtils.Group>, Map<String, Closure<Statement>>) - Method in class asteroid.utils.StatementUtils
-
If you have a given list of
StatementUtils.Groupyou can apply a set of transformations on certain statements within a given group. - applyToStatementsByLabelFlatten(List<StatementUtils.Group>, Map<String, Closure<Statement>>) - Method in class asteroid.utils.StatementUtils
-
If you have a given list of
StatementUtils.Groupyou can apply a set of transformations on certain statements within a given group. - asBinaryExpr(Expression) - Method in class asteroid.utils.ExpressionUtils
-
Unsafe cast of a given @{link Expression} to a
BinaryExpression - asBinaryExpr(Expression, T, Closure<T>) - Method in class asteroid.utils.ExpressionUtils
-
Executes a given computation if the expression is of type
BinaryExpressionif not, then a default value is provided - assertS(BooleanExpression) - Static method in class asteroid.Statements
- assertS(BooleanExpression, String) - Static method in class asteroid.Statements
- asteroid - package 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 theAclass - asteroid.internal - package asteroid.internal
-
This package contains internal AST transformations to get rid of boilerplate code when creating a local AST transformation.
- asteroid.nodes - package asteroid.nodes
-
This package contains classes to build
ASTNodeinstances - asteroid.statements - package asteroid.statements
-
This package contains utility classes to create statements
- asteroid.transformer - package asteroid.transformer
-
This package contains classes to create global AST transformations
- asteroid.utils - package asteroid.utils
-
This package contains utility classes
All Classes All Packages