Class TypeDeclBoundsVisitor

All Implemented Interfaces:
TreeVisitor<Void,Void>

public class TypeDeclBoundsVisitor extends BaseTypeVisitor<TypeDeclBoundsAnnotatedTypeFactory>
  • Constructor Details

    • TypeDeclBoundsVisitor

      public TypeDeclBoundsVisitor(BaseTypeChecker checker)
  • Method Details

    • createTypeFactory

      protected TypeDeclBoundsAnnotatedTypeFactory createTypeFactory()
      Description copied from class: BaseTypeVisitor
      Constructs an instance of the appropriate type factory for the implemented type system.

      The default implementation uses the checker naming convention to create the appropriate type factory. If no factory is found, it returns BaseAnnotatedTypeFactory. It reflectively invokes the constructor that accepts this checker and compilation unit tree (in that order) as arguments.

      Subclasses have to override this method to create the appropriate visitor if they do not follow the checker naming convention.

      Overrides:
      createTypeFactory in class BaseTypeVisitor<TypeDeclBoundsAnnotatedTypeFactory>
      Returns:
      the appropriate type factory