Uses of Interface
spoon.compiler.Environment
Package
Description
This root package provides the default integrated launchers for Spoon program processing.
This package defines interfaces for Java file compilation with Spoon.
This package contains the core API for code processing.
This package defines all the sub-factories for the Spoon meta-model.
This package defines visitor, scanner, and scanner-based query API for Java programs reified in the meta-model.
This package contains some default implementations for commonly used processing tasks.
This package provides support for the sniper mode: only the transformed part of classes is rewritten to disk.
-
Uses of Environment in spoon
Modifier and TypeMethodDescriptionLauncher.createEnvironment()
SpoonAPI.createEnvironment()
Creates a new Spoon environment (may be overridden)Launcher.getEnvironment()
SpoonAPI.getEnvironment()
Returns the current environment. -
Uses of Environment in spoon.compiler
Modifier and TypeMethodDescriptiondefault char[]
SpoonFile.getContentChars(Environment env)
Gets the file content as a char array, considering encoding or encoding provider. -
Uses of Environment in spoon.processing
Modifier and TypeMethodDescriptionAbstractManualProcessor.getEnvironment()
AbstractProcessor.getEnvironment()
Processor.getEnvironment()
Gets the environment of this processor. -
Uses of Environment in spoon.reflect.factory
Modifier and TypeMethodDescriptionFactory.getEnvironment()
Access to theEnvironment
FactoryImpl.getEnvironment()
Gets the Spoon environment that encloses this factory.ModifierConstructorDescriptionFactoryImpl(CoreFactory coreFactory, Environment environment)
Should not be called directly. -
Uses of Environment in spoon.reflect.visitor
Modifier and TypeFieldDescriptionprotected Environment
DefaultJavaPrettyPrinter.env
Environment which Spoon is executed.ModifierConstructorDescriptionCreates a new code generator visitor.ElementPrinterHelper(TokenWriter printerTokenWriter, DefaultJavaPrettyPrinter prettyPrinter, Environment env)
ModelConsistencyChecker(Environment environment, boolean fixInconsistencies, boolean fixNullParents)
Creates a new model consistency checker.PrinterHelper(Environment env)
-
Uses of Environment in spoon.support
Modifier and TypeClassDescriptionclass
This class implements a simple Spoon environment that reports messages in the standard output stream (Java-compliant).Modifier and TypeMethodDescriptionDefaultOutputDestinationHandler.getEnvironment()
JavaOutputProcessor.getEnvironment()
ModifierConstructorDescriptionDefaultOutputDestinationHandler(File defaultOutputDirectory, Environment environment)
-
Uses of Environment in spoon.support.compiler
ModifierConstructorDescriptionProgressLogger(Environment environment)
SpoonPom(String path, MavenLauncher.SOURCE_TYPE sourceType, Environment environment)
Extract the information from the pomSpoonPom(String path, MavenLauncher.SOURCE_TYPE sourceType, Environment environment, Pattern profileFilter)
Extract the information from the pomSpoonPom(String path, SpoonPom parent, MavenLauncher.SOURCE_TYPE sourceType, Environment environment)
Extract the information from the pomSpoonPom(String path, SpoonPom parent, MavenLauncher.SOURCE_TYPE sourceType, Environment environment, Pattern profileFilter)
Extract the information from the pom -
Uses of Environment in spoon.support.compiler.jdt
Modifier and TypeMethodDescriptionprotected void
JDTBasedSpoonCompiler.report(Environment environment, org.eclipse.jdt.core.compiler.CategorizedProblem problem)
protected void
JDTSnippetCompiler.report(Environment environment, org.eclipse.jdt.core.compiler.CategorizedProblem problem)
void
JDTBasedSpoonCompiler.reportProblems(Environment environment)
Report problems as logs when building the AST model In in full classpath, a problem categorized as "Error" triggers an exceptionvoid
JDTBasedSpoonCompiler.reportProblemsWhenCompiling(Environment environment)
Report problems as logs when compiling to binary. -
Uses of Environment in spoon.support.modelobs
Modifier and TypeMethodDescriptionChangeCollector.attachTo(Environment env)
static @Nullable ChangeCollector
ChangeCollector.getChangeCollector(Environment env)
static void
ChangeCollector.runWithoutChangeListener(Environment env, Runnable runnable)
Allows to run code using change collector switched off. -
Uses of Environment in spoon.support.sniper
ModifierConstructorDescriptionCreates a newPrettyPrinter
which copies origin sources and prints only changes. -
Uses of Environment in spoon.support.sniper.internal