Search in sources :

Example 51 with PropertyExpression

use of org.codehaus.groovy.ast.expr.PropertyExpression in project groovy by apache.

the class CompileDynamicProcessor method visit.

public List<AnnotationNode> visit(AnnotationNode collector, AnnotationNode aliasAnnotationUsage, AnnotatedNode aliasAnnotated, SourceUnit source) {
    AnnotationNode node = new AnnotationNode(COMPILESTATIC_NODE);
    node.addMember("value", new PropertyExpression(new ClassExpression(TYPECHECKINGMODE_NODE), "SKIP"));
    return Collections.singletonList(node);
}
Also used : AnnotationNode(org.codehaus.groovy.ast.AnnotationNode) PropertyExpression(org.codehaus.groovy.ast.expr.PropertyExpression) ClassExpression(org.codehaus.groovy.ast.expr.ClassExpression)

Aggregations

PropertyExpression (org.codehaus.groovy.ast.expr.PropertyExpression)51 Expression (org.codehaus.groovy.ast.expr.Expression)41 ClassExpression (org.codehaus.groovy.ast.expr.ClassExpression)39 VariableExpression (org.codehaus.groovy.ast.expr.VariableExpression)37 ConstantExpression (org.codehaus.groovy.ast.expr.ConstantExpression)30 BinaryExpression (org.codehaus.groovy.ast.expr.BinaryExpression)26 MethodCallExpression (org.codehaus.groovy.ast.expr.MethodCallExpression)26 ClosureExpression (org.codehaus.groovy.ast.expr.ClosureExpression)25 ArgumentListExpression (org.codehaus.groovy.ast.expr.ArgumentListExpression)24 ClassNode (org.codehaus.groovy.ast.ClassNode)23 TupleExpression (org.codehaus.groovy.ast.expr.TupleExpression)22 ListExpression (org.codehaus.groovy.ast.expr.ListExpression)17 ConstructorCallExpression (org.codehaus.groovy.ast.expr.ConstructorCallExpression)15 DeclarationExpression (org.codehaus.groovy.ast.expr.DeclarationExpression)14 StaticMethodCallExpression (org.codehaus.groovy.ast.expr.StaticMethodCallExpression)13 BooleanExpression (org.codehaus.groovy.ast.expr.BooleanExpression)10 TernaryExpression (org.codehaus.groovy.ast.expr.TernaryExpression)10 FieldNode (org.codehaus.groovy.ast.FieldNode)9 FieldExpression (org.codehaus.groovy.ast.expr.FieldExpression)8 MapEntryExpression (org.codehaus.groovy.ast.expr.MapEntryExpression)8