Interface SourceCodeProvider

All Known Implementing Classes:
BuiltInSourceCodeProvider, EagerSourceCodeProvider, LazySourceCodeProvider

public interface SourceCodeProvider
An object that can provide the source code for the given function. Internal usage only.
  • Method Summary

    Modifier and Type
    Method
    Description
    Return the raw source for this descriptor usually the entire source file if availab le.
    getSource(JSDescriptor<?> descriptor, int start, int end)
    Return the source for this descriptor, betweeen the start and end offsets
    make(boolean generatingSource, SourceCodeSupplier sourceCodeSupplier, String rawSource)
     
  • Method Details

    • getSource

      String getSource(JSDescriptor<?> descriptor, int start, int end)
      Return the source for this descriptor, betweeen the start and end offsets
    • getRawSource

      String getRawSource()
      Return the raw source for this descriptor usually the entire source file if availab le.
    • make

      static SourceCodeProvider make(boolean generatingSource, SourceCodeSupplier sourceCodeSupplier, String rawSource)