Interface IRuntimeEnvironment
-
- All Known Implementing Classes:
RuntimeEnvironment,RuntimeEnvironment,RuntimeEnvironment
public interface IRuntimeEnvironmentDefines the type of a runtime environment to evaluate expressions in.- Author:
- Holger Eichelberger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IResolvableget(java.lang.String name)Returns the resolvable of namenameif defined.java.lang.String[]getContextPaths()Returns the search paths of the current context.java.lang.ObjectgetIvmlValue(java.lang.String name)Returns the value of the IVML element denoted bynamein the closest scope defining an IVML configuration.TypeRegistrygetTypeRegistry()Returns the (local) type registry of this runtime environment.java.lang.ObjectgetValue(IResolvable resolvable)Returns the value ofresolvable.voidsetValue(IResolvable var, java.lang.Object object)Changes the value ofvarwhere it is defined.voidstoreArtifacts(boolean force)Stores the artifacts in the current context.
-
-
-
Method Detail
-
getTypeRegistry
TypeRegistry getTypeRegistry()
Returns the (local) type registry of this runtime environment.- Returns:
- the type registry
-
getValue
java.lang.Object getValue(IResolvable resolvable) throws VilException
Returns the value ofresolvable.- Parameters:
resolvable- the resolvable- Returns:
- the value of
resolvable - Throws:
VilException- in case thatresolvablewas not defined
-
getIvmlValue
java.lang.Object getIvmlValue(java.lang.String name) throws VilExceptionReturns the value of the IVML element denoted bynamein the closest scope defining an IVML configuration.- Parameters:
name- the name- Returns:
- the value
- Throws:
VilException- in case thatnamewas not defined
-
get
IResolvable get(java.lang.String name)
Returns the resolvable of namenameif defined.- Parameters:
name- the name of the variable- Returns:
- the variable or null if not found
-
setValue
void setValue(IResolvable var, java.lang.Object object) throws VilException
Changes the value ofvarwhere it is defined.- Parameters:
var- the variable to be modifiedobject- the value ofvar- Throws:
VilException- in case of an attempt of modifying a constant
-
getContextPaths
java.lang.String[] getContextPaths()
Returns the search paths of the current context.- Returns:
- the (qualified) search paths (may be null)
-
storeArtifacts
void storeArtifacts(boolean force) throws VilExceptionStores the artifacts in the current context.- Parameters:
force- forces storing artifacts even over (dynamic) exclusion criteria- Throws:
VilException- in case that storing artifacts fails
-
-