Interface JTypeVisitable

    • Method Detail

      • subst

        JTypeVisitable subst​(Function<? super SubstVar,​? extends @NonNull JTypeMirror> subst)
        Replace the type variables occurring in the given type by their image by the given function. Substitutions are not applied recursively (ie, is not applied on the result of a substitution).
        Parameters:
        subst - Substitution function, eg a Substitution
      • acceptVisitor

        <T,​P> T acceptVisitor​(JTypeVisitor<T,​P> visitor,
                                    P p)
        Accept a type visitor, dispatching on this object's runtime type to the correct method of the visitor.
        Type Parameters:
        P - Type of data of the visitor
        T - Type of result of the visitor