Class EvaluatedExpressionReferenceCounter

java.lang.Object
io.micronaut.inject.annotation.EvaluatedExpressionReferenceCounter

@Internal public class EvaluatedExpressionReferenceCounter extends Object
A reference class writer counter.
Since:
4.3.0
Author:
Denis Stepanov
  • Field Details

  • Constructor Details

    • EvaluatedExpressionReferenceCounter

      public EvaluatedExpressionReferenceCounter()
  • Method Details

    • nextIndex

      public static Integer nextIndex(String className)
      Provides next expression index for passed class name. In general indexes are needed only to make names of generated expression classes unique and avoid conflicts in cases when multiple expressions are defined in the same class. On each invocation with the same argument this method will return value incremented by 1. On first invocation it will return 0
      Parameters:
      className - name of class owning evaluated expression
      Returns:
      next index