Class RuntimeEnvironment
- java.lang.Object
-
- net.ssehub.easy.instantiation.core.model.common.RuntimeEnvironment<VariableDeclaration,Script>
-
- net.ssehub.easy.instantiation.core.model.buildlangModel.RuntimeEnvironment
-
- All Implemented Interfaces:
IRestrictionEvaluationContext,IRuntimeEnvironment
public class RuntimeEnvironment extends RuntimeEnvironment<VariableDeclaration,Script>
A specific runtime environment containing the global OTHERPROJECTS variable.- Author:
- Holger Eichelberger
-
-
Field Summary
Fields Modifier and Type Field Description private OtherProjectsotherProjectsDefines the other project variable, currently as a local set implementation using a hash set.
-
Constructor Summary
Constructors Constructor Description RuntimeEnvironment()Creates a new runtime environment using the default type registry.RuntimeEnvironment(TypeRegistry typeRegistry)Creates a new runtime environment with a given type registry instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected IExpressionVisitorcreateEvaluationProcessor()Creates the expression visitor for this environment.(package private) OtherProjectsgetOtherProjects()Returns the other projects variable (for package internal use only).protected voidreleaseEvaluationProcessor(IExpressionVisitor processor)Releases the expression visitor for this environment.-
Methods inherited from class net.ssehub.easy.instantiation.core.model.common.RuntimeEnvironment
addValue, checkType, decreaseIndentation, deleteContext, endEvaluation, get, getContextModel, getContextPaths, getIndentation, getIndentationConfiguration, getIvmlValue, getMostSpecificContextModel, getTopLevelConfiguration, getTypeRegistry, getValue, getValue, getValue, increaseIndentation, isDefined, markNoAutoStore, popLevel, pushLevel, removeValue, setContextPaths, setIndentation, setIndentationSteps, setValue, setValue, setValue, startEvaluation, storeArtifacts, switchContext, unmarkNoAutoStore, unsetValue
-
-
-
-
Field Detail
-
otherProjects
private OtherProjects otherProjects
Defines the other project variable, currently as a local set implementation using a hash set. This variable is global across the entire execution starting at a certain script including imported scripts etc.
-
-
Constructor Detail
-
RuntimeEnvironment
public RuntimeEnvironment()
Creates a new runtime environment using the default type registry.
-
RuntimeEnvironment
public RuntimeEnvironment(TypeRegistry typeRegistry)
Creates a new runtime environment with a given type registry instance.- Parameters:
typeRegistry- the type registry to use
-
-
Method Detail
-
getOtherProjects
OtherProjects getOtherProjects()
Returns the other projects variable (for package internal use only).- Returns:
- the other projects variable
-
createEvaluationProcessor
protected IExpressionVisitor createEvaluationProcessor()
Description copied from class:RuntimeEnvironmentCreates the expression visitor for this environment.- Specified by:
createEvaluationProcessorin classRuntimeEnvironment<VariableDeclaration,Script>- Returns:
- the expression visitor
-
releaseEvaluationProcessor
protected void releaseEvaluationProcessor(IExpressionVisitor processor)
Description copied from class:RuntimeEnvironmentReleases the expression visitor for this environment.- Specified by:
releaseEvaluationProcessorin classRuntimeEnvironment<VariableDeclaration,Script>- Parameters:
processor- the expression visitor
-
-