Class TransliteratorParser.RuleBody

  • Direct Known Subclasses:
    TransliteratorParser.RuleArray
    Enclosing class:
    TransliteratorParser

    private abstract static class TransliteratorParser.RuleBody
    extends java.lang.Object
    A private abstract class representing the interface to rule source code that is broken up into lines. Handles the folding of lines terminated by a backslash. This folding is limited; it does not account for comments, quotes, or escapes, so its use to be limited.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private RuleBody()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) abstract java.lang.String handleNextLine()
      Subclass method to return the next line of the source.
      (package private) java.lang.String nextLine()
      Retrieve the next line of the source, or return null if none.
      (package private) abstract void reset()
      Reset to the first line of the source.
      • Methods inherited from class java.lang.Object

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

      • RuleBody

        private RuleBody()
    • Method Detail

      • nextLine

        java.lang.String nextLine()
        Retrieve the next line of the source, or return null if none. Folds lines terminated by a backslash into the next line, without regard for comments, quotes, or escapes.
      • reset

        abstract void reset()
        Reset to the first line of the source.
      • handleNextLine

        abstract java.lang.String handleNextLine()
        Subclass method to return the next line of the source.