Class SGMLParser.SpecCharTester

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private char chr
      The character which passes the test testChar(char).
    • Constructor Summary

      Constructors 
      Constructor Description
      SpecCharTester()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) void setChar​(char chr)
      Sets chr to the specified character value.
      boolean testChar​(char chr)
      Returns whether the given character coincides with chr.
      • Methods inherited from class java.lang.Object

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

      • chr

        private char chr
        The character which passes the test testChar(char).
    • Constructor Detail

      • SpecCharTester

        SpecCharTester()
    • Method Detail

      • setChar

        void setChar​(char chr)
        Sets chr to the specified character value.
        Parameters:
        chr - a char value.
      • testChar

        public boolean testChar​(char chr)
        Returns whether the given character coincides with chr.
        Specified by:
        testChar in interface SGMLParser.CharTester
        Parameters:
        chr - a char value.
        Returns:
        whether ch coincides with chr.