- 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 TypeMethodDescriptionReturn 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 offsetsstatic SourceCodeProvidermake(boolean generatingSource, SourceCodeSupplier sourceCodeSupplier, String rawSource)
-
Method Details
-
getSource
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)
-