Antlr4.Runtime.AntlrInputStream.GetText C# (CSharp) Method

GetText() public method

public GetText ( Interval interval ) : string
interval Antlr4.Runtime.Misc.Interval
return string
        public virtual string GetText(Interval interval)
        {
            int start = interval.a;
            int stop = interval.b;
            if (stop >= n)
            {
                stop = n - 1;
            }
            int count = stop - start + 1;
            if (start >= n)
            {
                return string.Empty;
            }
            //		System.err.println("data: "+Arrays.toString(data)+", n="+n+
            //						   ", start="+start+
            //						   ", stop="+stop);
            return new string(data, start, count);
        }