Index
All Classes and Interfaces|All Packages
A
- add(Replacement) - Method in class net.neoforged.jst.api.Replacements
- afterRun(TransformContext) - Method in interface net.neoforged.jst.api.SourceTransformer
-
Invoked after all source transformations are finished.
- apply(CharSequence) - Method in class net.neoforged.jst.api.Replacements
B
- beforeReplacement(FileEntry, List<Replacement>) - Method in interface net.neoforged.jst.api.SourceTransformer
-
Invoke after replacements are collected for a given file, but before they are applied.
- beforeRun(TransformContext) - Method in interface net.neoforged.jst.api.SourceTransformer
-
Invoked before source files are visited for transformation.
C
- canHaveMultipleEntries() - Method in interface net.neoforged.jst.api.FileSink
- canHaveMultipleEntries() - Method in interface net.neoforged.jst.api.FileSource
- canImport(String) - Method in class net.neoforged.jst.api.ImportHelper
- close() - Method in interface net.neoforged.jst.api.FileSink
- close() - Method in interface net.neoforged.jst.api.FileSource
- COMPARATOR - Static variable in record class net.neoforged.jst.api.Replacement
- createSourceRoot(VirtualFileManager) - Method in interface net.neoforged.jst.api.FileSource
- createTransformer() - Method in interface net.neoforged.jst.api.SourceTransformerPlugin
-
Creates a new transformer to be applied to source code.
D
- debug(String, Object...) - Method in class net.neoforged.jst.api.Logger
- directory() - Method in interface net.neoforged.jst.api.FileEntry
E
- environment() - Method in record class net.neoforged.jst.api.TransformContext
-
Returns the value of the
environmentrecord component. - equals(Object) - Method in record class net.neoforged.jst.api.Replacement
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class net.neoforged.jst.api.TransformContext
-
Indicates whether some other object is "equal to" this one.
- error(String, Object...) - Method in class net.neoforged.jst.api.Logger
F
- FileEntries - Class in net.neoforged.jst.api
- FileEntry - Interface in net.neoforged.jst.api
- FileSink - Interface in net.neoforged.jst.api
- FileSource - Interface in net.neoforged.jst.api
G
- get(PsiFile) - Static method in class net.neoforged.jst.api.ImportHelper
- get(PsiJavaFile) - Static method in class net.neoforged.jst.api.ImportHelper
- getAppEnv() - Method in interface net.neoforged.jst.api.IntelliJEnvironment
- getBinaryClassName(PsiClass, StringBuilder) - Static method in class net.neoforged.jst.api.PsiHelper
-
An adapted version of
ClassUtil.formatClassName(PsiClass, StringBuilder)where Inner-Classes use a $ separator while formatClassName separates InnerClasses with periods from their parent. - getBinaryMethodName(PsiMethod) - Static method in class net.neoforged.jst.api.PsiHelper
- getBinaryMethodSignature(PsiMethod) - Static method in class net.neoforged.jst.api.PsiHelper
- getImplicitConstructorSignature(PsiClass) - Static method in class net.neoforged.jst.api.PsiHelper
- getLastLineLength(PsiWhiteSpace) - Static method in class net.neoforged.jst.api.PsiHelper
- getName() - Method in interface net.neoforged.jst.api.SourceTransformerPlugin
-
Unique name used in command-line options to enable this plugin.
- getOrCreateReplacer(PsiFile, Class<T>, Function<PsiFile, T>) - Static method in interface net.neoforged.jst.api.PostProcessReplacer
- getOverloadedSignatures(PsiMethod) - Static method in class net.neoforged.jst.api.PsiHelper
- getParameterLvtIndices(PsiParameterListOwner) - Static method in class net.neoforged.jst.api.PsiHelper
-
Gets the local variable table indices of the parameters for the given method or lambda expression
- getProjectEnv() - Method in interface net.neoforged.jst.api.IntelliJEnvironment
- getPsiFacade() - Method in interface net.neoforged.jst.api.IntelliJEnvironment
- getPsiManager() - Method in interface net.neoforged.jst.api.IntelliJEnvironment
- getReplacers(PsiFile) - Static method in interface net.neoforged.jst.api.PostProcessReplacer
H
- hasExtension(String) - Method in interface net.neoforged.jst.api.FileEntry
- hashCode() - Method in record class net.neoforged.jst.api.Replacement
-
Returns a hash code value for this object.
- hashCode() - Method in record class net.neoforged.jst.api.TransformContext
-
Returns a hash code value for this object.
I
- importClass(String) - Method in class net.neoforged.jst.api.ImportHelper
-
Attempts to import the given fully qualified class name, returning a reference to it which is either its short name (if an import is successful) or the qualified name if not.
- ImportHelper - Class in net.neoforged.jst.api
-
Helper class used to import classes while processing a source file.
- ImportHelper(PsiJavaFile) - Constructor for class net.neoforged.jst.api.ImportHelper
- insertAfter(PsiElement, String) - Method in class net.neoforged.jst.api.Replacements
- insertBefore(PsiElement, String) - Method in class net.neoforged.jst.api.Replacements
- IntelliJEnvironment - Interface in net.neoforged.jst.api
- isEmpty() - Method in class net.neoforged.jst.api.Replacements
- isNonStaticInnerClass(PsiClass) - Static method in class net.neoforged.jst.api.PsiHelper
- isOrdered() - Method in interface net.neoforged.jst.api.FileSink
- isOrdered() - Method in interface net.neoforged.jst.api.FileSource
- isRecordConstructor(PsiMethod) - Static method in class net.neoforged.jst.api.PsiHelper
L
- lastModified() - Method in interface net.neoforged.jst.api.FileEntry
- logger() - Method in record class net.neoforged.jst.api.TransformContext
-
Returns the value of the
loggerrecord component. - Logger - Class in net.neoforged.jst.api
- Logger(PrintStream, PrintStream) - Constructor for class net.neoforged.jst.api.Logger
N
- net.neoforged.jst.api - package net.neoforged.jst.api
- newText() - Method in record class net.neoforged.jst.api.Replacement
-
Returns the value of the
newTextrecord component.
O
- ofPath(Path, Path) - Static method in class net.neoforged.jst.api.FileEntries
-
Creates a file entry for a given NIO path.
- ofZipEntry(ZipFile, ZipEntry) - Static method in class net.neoforged.jst.api.FileEntries
-
Creates a file entry for an existing zip entry.
- openInputStream() - Method in interface net.neoforged.jst.api.FileEntry
P
- PostProcessReplacer - Interface in net.neoforged.jst.api
-
A replacer linked to a
PsiFilewill run and collect replacements after alltransformershave processed the file. - problemReporter() - Method in record class net.neoforged.jst.api.TransformContext
-
Returns the value of the
problemReporterrecord component. - process(Replacements) - Method in class net.neoforged.jst.api.ImportHelper
- process(Replacements) - Method in interface net.neoforged.jst.api.PostProcessReplacer
-
Process replacements in the file after
transformershave processed it. - PsiHelper - Class in net.neoforged.jst.api
- PsiHelper() - Constructor for class net.neoforged.jst.api.PsiHelper
- putDirectory(String) - Method in interface net.neoforged.jst.api.FileSink
- putFile(String, FileTime, byte[]) - Method in interface net.neoforged.jst.api.FileSink
R
- range() - Method in record class net.neoforged.jst.api.Replacement
-
Returns the value of the
rangerecord component. - relativePath() - Method in interface net.neoforged.jst.api.FileEntry
-
Path to the file or directory.
- remove(PsiElement) - Method in class net.neoforged.jst.api.Replacements
- replace(PsiElement, String) - Method in class net.neoforged.jst.api.Replacements
- Replacement - Record Class in net.neoforged.jst.api
- Replacement(TextRange, String) - Constructor for record class net.neoforged.jst.api.Replacement
-
Creates an instance of a
Replacementrecord class. - Replacements - Class in net.neoforged.jst.api
- Replacements() - Constructor for class net.neoforged.jst.api.Replacements
- Replacements(List<Replacement>) - Constructor for class net.neoforged.jst.api.Replacements
- REPLACERS - Static variable in interface net.neoforged.jst.api.PostProcessReplacer
S
- sink() - Method in record class net.neoforged.jst.api.TransformContext
-
Returns the value of the
sinkrecord component. - source() - Method in record class net.neoforged.jst.api.TransformContext
-
Returns the value of the
sourcerecord component. - SourceTransformer - Interface in net.neoforged.jst.api
-
Transformers are created through
plugins, and handle source replacements. - SourceTransformerPlugin - Interface in net.neoforged.jst.api
-
Accessed via
ServiceLoader. - streamEntries() - Method in interface net.neoforged.jst.api.FileSource
T
- toString() - Method in record class net.neoforged.jst.api.Replacement
-
Returns a string representation of this record class.
- toString() - Method in record class net.neoforged.jst.api.TransformContext
-
Returns a string representation of this record class.
- TransformContext - Record Class in net.neoforged.jst.api
- TransformContext(IntelliJEnvironment, FileSource, FileSink, Logger) - Constructor for record class net.neoforged.jst.api.TransformContext
- TransformContext(IntelliJEnvironment, FileSource, FileSink, Logger, ProblemReporter) - Constructor for record class net.neoforged.jst.api.TransformContext
-
Creates an instance of a
TransformContextrecord class.
V
- visitFile(PsiFile, Replacements) - Method in interface net.neoforged.jst.api.SourceTransformer
-
Visit the given
psiFilefor transformation.
All Classes and Interfaces|All Packages