public final class JsFile
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
JsFile.ProcessImport
A function processing an import statement.
|
Constructor and Description |
---|
JsFile(java.nio.file.Path path) |
Modifier and Type | Method and Description |
---|---|
void |
processImports(java.util.function.Predicate<ImportStatement> importFilter,
JsFile.ProcessImport processFunction)
Processes import statements in this file.
|
public void processImports(java.util.function.Predicate<ImportStatement> importFilter, JsFile.ProcessImport processFunction)
Rewrites the file using the updated imports.
importFilter
- the predicate to filter out imports to be processedprocessFunction
- the function processing an import