Interface IRuntimeEnvironment

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      IResolvable get​(java.lang.String name)
      Returns the resolvable of name name if defined.
      java.lang.String[] getContextPaths()
      Returns the search paths of the current context.
      java.lang.Object getIvmlValue​(java.lang.String name)
      Returns the value of the IVML element denoted by name in the closest scope defining an IVML configuration.
      TypeRegistry getTypeRegistry()
      Returns the (local) type registry of this runtime environment.
      java.lang.Object getValue​(IResolvable resolvable)
      Returns the value of resolvable.
      void setValue​(IResolvable var, java.lang.Object object)
      Changes the value of var where it is defined.
      void storeArtifacts​(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 of resolvable.
        Parameters:
        resolvable - the resolvable
        Returns:
        the value of resolvable
        Throws:
        VilException - in case that resolvable was not defined
      • getIvmlValue

        java.lang.Object getIvmlValue​(java.lang.String name)
                               throws VilException
        Returns the value of the IVML element denoted by name in the closest scope defining an IVML configuration.
        Parameters:
        name - the name
        Returns:
        the value
        Throws:
        VilException - in case that name was not defined
      • get

        IResolvable get​(java.lang.String name)
        Returns the resolvable of name name if 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 of var where it is defined.
        Parameters:
        var - the variable to be modified
        object - the value of var
        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 VilException
        Stores the artifacts in the current context.
        Parameters:
        force - forces storing artifacts even over (dynamic) exclusion criteria
        Throws:
        VilException - in case that storing artifacts fails