Class JavaSourceReader.ReadLineResult

  • Enclosing class:
    JavaSourceReader

    static class JavaSourceReader.ReadLineResult
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) boolean insideComment  
      (package private) java.lang.String line  
    • Constructor Summary

      Constructors 
      Constructor Description
      ReadLineResult​(java.lang.String line, boolean insideComment)
      Reads one line of input, ignoring content inside comments.
    • Method Summary

      • Methods inherited from class java.lang.Object

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

      • line

        java.lang.String line
      • insideComment

        boolean insideComment
    • Constructor Detail

      • ReadLineResult

        public ReadLineResult​(java.lang.String line,
                              boolean insideComment)
        Reads one line of input, ignoring content inside comments. Stores the result in this.line and this.insideComment tells whether this line continues with a block (/*) comment.
        Parameters:
        line - The line of text to read.
        insideComment - Whether of not this line started inside a block comment.