Interface ToStringContext<NAMETYPE extends Name>

  • All Known Implementing Classes:
    ToStringContext.EmptyStringContext

    public interface ToStringContext<NAMETYPE extends Name>
    A context which is passed down to all nested functions when returning a string representation.
    Author:
    bratseth
    • Method Detail

      • getBinding

        String getBinding​(String name)
        Returns the name an identifier is bound to, or null if not bound in this context
      • typeContext

        default Optional<TypeContext<NAMETYPE>> typeContext()
        Returns the context used to resolve types in this, if present. In some functions serialization depends on type information.
      • parent

        ToStringContext<NAMETYPE> parent()
        Returns the parent context of this (the context we're in scope of when this is created), or null if this is the root.