Package org.codehaus.groovy.transform
Interface TransformWithPriority
- All Known Implementing Classes:
BuilderASTTransformation,LogASTTransformation,TupleConstructorASTTransformation
public interface TransformWithPriority
AST transforms may optionally implement this interface and return a priority value.
Transforms within the same phase will be executed from greater to lower values of priority.
The default priority is zero.
-
Method Summary
Modifier and TypeMethodDescriptionintpriority()Returns the order of this transform among others in the same phase.
-
Method Details
-
priority
int priority()Returns the order of this transform among others in the same phase. Higher values run first. The default used by transforms that do not implement this interface is zero.- Returns:
- the priority
-