Tabnine Logo
IManifoldHost.addTypeSystemListenerAsWeakRef
Code IndexAdd Tabnine to your IDE (free)

How to use
addTypeSystemListenerAsWeakRef
method
in
manifold.api.host.IManifoldHost

Best Java code snippets using manifold.api.host.IManifoldHost.addTypeSystemListenerAsWeakRef (Showing top 5 results out of 315)

origin: manifold-systems/manifold

public TypeSystemAwareCache( IManifoldHost host, String name, int size, Loader<K, V> loader )
{
 super( name, size, loader );
 host.addTypeSystemListenerAsWeakRef( null, _cacheClearer );
}
origin: manifold-systems/manifold

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() );
}
origin: manifold-systems/manifold

private ClassSymbols( IModule module )
 _module.getHost().addTypeSystemListenerAsWeakRef( module, new CacheClearer() );
 _altJavacTask_PlainFileMgr = LocklessLazyVar.make( () -> {
  init();
origin: manifold-systems/manifold

/**
 * @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() );
}
origin: manifold-systems/manifold

ManifoldJavaFileManager( IManifoldHost host, JavaFileManager fileManager, Context ctx, boolean fromJavaC )
{
 super( fileManager, ctx == null ? ctx = new Context() : ctx );
 _host = host;
 _ctx = ctx;
 _fromJavaC = fromJavaC;
 _classFiles = new FqnCache<>();
 _generatedFiles = new FqnCache<>();
 if( ctx.get(JavaFileManager.class) == null )
 {
  ctx.put( JavaFileManager.class, fileManager );
 }
 _host.addTypeSystemListenerAsWeakRef( null, this );
}
manifold.api.hostIManifoldHostaddTypeSystemListenerAsWeakRef

Popular methods of IManifoldHost

  • getFileSystem
  • getJavaParser
  • getSingleModule
  • getActualClassLoader
  • isPathIgnored

Popular in Java

  • Making http requests using okhttp
  • runOnUiThread (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • addToBackStack (FragmentTransaction)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now