View Javadoc

    1   package org.codehaus.groovy.syntax.lexer;
    2
    3   public abstract class AbstractCharStream
    4       implements CharStream
    5   {
    6       private String description;
    7
    8       public AbstractCharStream()
    9       {
    10          this( "<unknown>" );
    11      }
    12
    13      public AbstractCharStream(String description)
    14      {
    15          this.description = description;
    16      }
    17
    18      public String getDescription()
    19      {
    20          return this.description;
    21      }
    22  }