Interface DefaultBehaviorProviderVisitor<T,R,P>

Type Parameters:
T - The type of values represented by the default value provider.
R - The return type of this visitor's methods. Use Void for visitors that do not need to return results.
P - The type of the additional parameter to this visitor's methods. Use Void for visitors that do not need an additional parameter.

public interface DefaultBehaviorProviderVisitor<T,R,P>
A visitor of default behavior providers, in the style of the visitor design pattern. Classes implementing this interface can query default behavior providers in a type-safe manner when the kind of default behavior provider is unknown at compile time. When a visitor is passed to a default behavior provider's accept method, the corresponding visit method most applicable to that default behavior provider is invoked.
  • Method Details

    • visitAbsoluteInherited

      R visitAbsoluteInherited(AbsoluteInheritedDefaultBehaviorProvider<T> d, P p)
      Visit an absolute inherited default behavior provider.
      Parameters:
      d - The absolute inherited default behavior provider to visit.
      p - A visitor specified parameter.
      Returns:
      Returns a visitor specified result.
    • visitAlias

      R visitAlias(AliasDefaultBehaviorProvider<T> d, P p)
      Visit an alias default behavior provider.
      Parameters:
      d - The alias default behavior provider to visit.
      p - A visitor specified parameter.
      Returns:
      Returns a visitor specified result.
    • visitDefined

      R visitDefined(DefinedDefaultBehaviorProvider<T> d, P p)
      Visit an defined default behavior provider.
      Parameters:
      d - The defined default behavior provider to visit.
      p - A visitor specified parameter.
      Returns:
      Returns a visitor specified result.
    • visitRelativeInherited

      R visitRelativeInherited(RelativeInheritedDefaultBehaviorProvider<T> d, P p)
      Visit a relative inherited default behavior provider.
      Parameters:
      d - The relative inherited default behavior provider to visit.
      p - A visitor specified parameter.
      Returns:
      Returns a visitor specified result.
    • visitUndefined

      R visitUndefined(UndefinedDefaultBehaviorProvider<T> d, P p)
      Visit an undefined default behavior provider.
      Parameters:
      d - The undefined default behavior provider to visit.
      p - A visitor specified parameter.
      Returns:
      Returns a visitor specified result.