@Override public boolean accept( IModule module ) { // Dark Java files are intended to be compiled dynamically at runtime, they // should never be compiled statically, otherwise just use normal Java. return module.getHost() instanceof IRuntimeManifoldHost; }
@Override public boolean accept( IModule module ) { // Dark Java files are intended to be compiled dynamically at runtime, they // should never be compiled statically, otherwise just use normal Java. return module.getHost() instanceof IRuntimeManifoldHost; }
@Override protected Map<String, LocklessLazyVar<Model>> getPeripheralTypes() { return SystemProperties.make( getModule().getHost() ); }
@Override protected Model createModel( String extensionFqn, Set<IFile> files ) { return new Model( getModule().getHost(), extensionFqn, files ); }
@Override public IManifoldHost getHost() { return getTypeManifold().getModule().getHost(); }
@Override protected Map<String, LocklessLazyVar<Model>> getPeripheralTypes() { return SystemProperties.make( getModule().getHost() ); }
@Override public IManifoldHost getHost() { return getTypeManifold().getModule().getHost(); }
public void init( IModule module ) { init( module, (fqn, files) -> new TemplateModel( module.getHost(), fqn, files ) ); }
@Override protected Model createModel( String extensionFqn, Set<IFile> files ) { return new Model( getModule().getHost(), extensionFqn, files ); }
public PathCache( IModule module, Supplier<Collection<IDirectory>> pathSupplier, Runnable clearHandler ) { _module = module; _pathSupplier = pathSupplier; _clearHandler = clearHandler; _reverseMap = new ConcurrentHashMap<>(); init(); _module.getHost().addTypeSystemListenerAsWeakRef( module, _clearer = new CacheClearer() ); }
public void init( IModule module ) { init( module, (fqn,files) -> new Model( getModule().getHost(), fqn, files ) ); }
@Override public void init( IModule module ) { init( module, (fqn, files) -> new Model( getModule().getHost(), fqn, files ) ); }
@Override public void init( IModule module ) { init( module, (host, fqn) -> new Model( getModule().getHost(), host, fqn ) ); }
@Override public void init( IModule module ) { init( module, (host, fqn) -> new Model( getModule().getHost(), host, fqn ) ); }
@Override public void init( IModule module ) { init( module, (fqn, files) -> new Model( getModule().getHost(), fqn, files ) ); }
@Override public void init( IModule module ) { init( module, ( fqn, files ) -> new YamlModel( getModule().getHost(), fqn, files ) ); }
@Override public void init( IModule module ) { init( module, ( fqn, files ) -> new YamlModel( getModule().getHost(), fqn, files ) ); }
public void init( IModule module ) { init( module, (fqn, files) -> new JavascriptModel( getModule().getHost(), fqn, files ) ); }
public void init( IModule module ) { init( module, (fqn, files) -> new JavascriptModel( getModule().getHost(), fqn, files ) ); }
/** * @param module The module passed into the ISourceProvider implementation constructor * @param modelMapper A function to provide a model given a qualified name and resource file */ protected void init( IModule module, BiFunction<String, Set<IFile>, M> modelMapper ) { _module = module; _modelMapper = modelMapper; _fqnToModel = LocklessLazyVar.make( this::buildFqnToModelCache ); getModule().getHost().addTypeSystemListenerAsWeakRef( getModule(), _cacheClearer = createCacheClearer() ); }