Class CachingModuleScriptProviderBase.CachedModuleScript

java.lang.Object
org.mozilla.javascript.commonjs.module.provider.CachingModuleScriptProviderBase.CachedModuleScript
Enclosing class:
CachingModuleScriptProviderBase

public static class CachingModuleScriptProviderBase.CachedModuleScript extends Object
Instances of this class represent a loaded and cached module script.
Version:
$Id: CachingModuleScriptProviderBase.java,v 1.3 2011/04/07 20:26:12 hannes%helma.at Exp $
  • Field Details

    • moduleScript

      private final ModuleScript moduleScript
    • validator

      private final Object validator
  • Constructor Details

    • CachedModuleScript

      public CachedModuleScript(ModuleScript moduleScript, Object validator)
      Creates a new cached module script.
      Parameters:
      moduleScript - the module script itself
      validator - a validator for the moduleScript's source text entity.
  • Method Details

    • getModule

      ModuleScript getModule()
      Returns the module script.
      Returns:
      the module script.
    • getValidator

      Object getValidator()
      Returns the validator for the module script's source text entity.
      Returns:
      the validator for the module script's source text entity.