Class StringSpan

java.lang.Object
dev.engine_room.flywheel.backend.glsl.span.Span
dev.engine_room.flywheel.backend.glsl.span.StringSpan
All Implemented Interfaces:
CharSequence, Comparable<Span>

public class StringSpan extends Span
  • Constructor Details

    • StringSpan

      public StringSpan(SourceLines in, int start, int end)
  • Method Details

    • subSpan

      public Span subSpan(int from, int to)
      Description copied from class: Span
      Get a span referring to a code segment inside this code segment.
      Specified by:
      subSpan in class Span
    • get

      public String get()
      Specified by:
      get in class Span
      Returns:
      the portion of code represented by this span.
    • isErr

      public boolean isErr()
      Specified by:
      isErr in class Span