Module swim.codec
Package swim.codec

Class InputSettings

  • All Implemented Interfaces:
    Debug

    public class InputSettings
    extends Object
    implements Debug
    Input consumption parameters. InputSettings provide contextual configuration parameters to input consumers, such as Parsers.
    • Field Detail

      • isStripped

        protected final boolean isStripped
    • Constructor Detail

      • InputSettings

        protected InputSettings​(boolean isStripped)
    • Method Detail

      • isStripped

        public final boolean isStripped()
        Returns true if input consumers should not include diagnostic metadata in generated output.
      • isStripped

        public InputSettings isStripped​(boolean isStripped)
        Returns a copy of these settings with the given isStripped flag.
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • debug

        public <T> Output<T> debug​(Output<T> output)
        Description copied from interface: Debug
        Writes a developer readable, debug-formatted string representation of this object to output.
        Specified by:
        debug in interface Debug
        Returns:
        the continuation of the output.
      • standard

        public static final InputSettings standard()
        Returns InputSettings configured to include diagnostic metadata in generated output.
      • stripped

        public static final InputSettings stripped()
        Returns InputSettings configured to not include diagnostic metadata in generated output.
      • create

        public static final InputSettings create​(boolean isStripped)
        Returns InputSettings configured to not include diagnostic metadata in generated output, if isStripped is true.