Class BaseAnnotatedTypeFactoryForIndexChecker

All Implemented Interfaces:
AnnotationProvider
Direct Known Subclasses:
LessThanAnnotatedTypeFactory, LowerBoundAnnotatedTypeFactory, UpperBoundAnnotatedTypeFactory

public abstract class BaseAnnotatedTypeFactoryForIndexChecker extends BaseAnnotatedTypeFactory
A class for functionality common to multiple type-checkers that are used by the Index Checker.
  • Field Details

    • hasSubsequenceFromElement

      protected final ExecutableElement hasSubsequenceFromElement
      The from() element/field of a @HasSubsequence annotation.
    • hasSubsequenceToElement

      protected final ExecutableElement hasSubsequenceToElement
      The to() element/field of a @HasSubsequence annotation.
    • hasSubsequenceSubsequenceElement

      protected final ExecutableElement hasSubsequenceSubsequenceElement
      The subsequence() element/field of a @HasSubsequence annotation.
  • Constructor Details

    • BaseAnnotatedTypeFactoryForIndexChecker

      public BaseAnnotatedTypeFactoryForIndexChecker(BaseTypeChecker checker)
      Creates a new BaseAnnotatedTypeFactoryForIndexChecker.
      Parameters:
      checker - the checker
  • Method Details

    • hasSubsequenceFromValue

      public String hasSubsequenceFromValue(AnnotationMirror anno)
      Gets the from() element/field out of a HasSubsequence annotation.
      Parameters:
      anno - a HasSubsequence annotation
      Returns:
      its from() element/field
    • hasSubsequenceToValue

      public String hasSubsequenceToValue(AnnotationMirror anno)
      Gets the to() element/field out of a HasSubsequence annotation.
      Parameters:
      anno - a HasSubsequence annotation
      Returns:
      its to() element/field
    • hasSubsequenceSubsequenceValue

      public String hasSubsequenceSubsequenceValue(AnnotationMirror anno)
      Gets the subsequence() element/field out of a HasSubsequence annotation.
      Parameters:
      anno - a HasSubsequence annotation
      Returns:
      its subsequence() element/field