Package io.micronaut.inject.annotation
Class EvaluatedExpressionReferenceCounter
java.lang.Object
io.micronaut.inject.annotation.EvaluatedExpressionReferenceCounter
A reference class writer counter.
- Since:
- 4.3.0
- Author:
- Denis Stepanov
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
EXPR_SUFFIX
- See Also:
-
-
Constructor Details
-
EvaluatedExpressionReferenceCounter
public EvaluatedExpressionReferenceCounter()
-
-
Method Details
-
nextIndex
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
-