Class SafeTagList.SafeDescription

  • Enclosing class:
    SafeTagList

    private static class SafeTagList.SafeDescription
    extends java.lang.Object
    A tag description.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private boolean close
      A flag indicating whether or not it is safe to put a new line before the close tag.
      private boolean open
      A flag indicating whether or not it is safe to put a new line after the open tag.
    • Constructor Summary

      Constructors 
      Constructor Description
      SafeDescription​(boolean open, boolean close)
      Creates a new tag description.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isClose()
      Returns the 'close' flag.
      boolean isOpen()
      Returns the 'open' flag.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • open

        private boolean open
        A flag indicating whether or not it is safe to put a new line after the open tag.
      • close

        private boolean close
        A flag indicating whether or not it is safe to put a new line before the close tag.
    • Constructor Detail

      • SafeDescription

        public SafeDescription​(boolean open,
                               boolean close)
        Creates a new tag description.
        Parameters:
        open - the 'open' flag.
        close - the 'close' flag.
    • Method Detail

      • isOpen

        public boolean isOpen()
        Returns the 'open' flag.
        Returns:
        true or false.
      • isClose

        public boolean isClose()
        Returns the 'close' flag.
        Returns:
        true or false.