Interface ElementVisitor<V>

Type Parameters:
V - any type to be returned by the visit method. Use Void with return null if no return type is needed.

public interface ElementVisitor<V>
Visit elements.
Since:
2.0
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> V
    visit(Binding<T> binding)
    Visit a mapping from a key (type and optional annotation) to the strategy for getting instances of the type.
    visit(Message message)
    Visit an error message and the context in which it occurred.
    <T> V
    visit(ProviderLookup<T> lookup)
    Visit a lookup of the provider for a type.
    Visit a registration of a scope annotation with the scope that implements it.
  • Method Details

    • visit

      <T> V visit(Binding<T> binding)
      Visit a mapping from a key (type and optional annotation) to the strategy for getting instances of the type.
    • visit

      V visit(ScopeBinding binding)
      Visit a registration of a scope annotation with the scope that implements it.
    • visit

      <T> V visit(ProviderLookup<T> lookup)
      Visit a lookup of the provider for a type.
    • visit

      V visit(Message message)
      Visit an error message and the context in which it occurred.