Class StaticCompilationTransformer

All Implemented Interfaces:
ExpressionTransformer, GroovyClassVisitor, GroovyCodeVisitor, ErrorCollecting

public class StaticCompilationTransformer extends ClassCodeExpressionTransformer
Some expressions use symbols as aliases to method calls (<<, +=, ...). In static compilation, if such a method call is found, we transform the original binary expression into a method call expression so that the call gets statically compiled.
  • Field Details

  • Constructor Details

    • StaticCompilationTransformer

      public StaticCompilationTransformer(SourceUnit unit, StaticTypeCheckingVisitor visitor)
      Creates a static compilation transformer for the supplied source unit and visitor.
      Parameters:
      unit - the source unit being transformed
      visitor - the visitor providing type-checking metadata
  • Method Details