Codota Logo
TruffleLocator$Response
Code IndexAdd Codota to your IDE (free)

How to use
TruffleLocator$Response
in
com.oracle.truffle.api.impl

Best Java code snippets using com.oracle.truffle.api.impl.TruffleLocator$Response (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Dictionary d =
  • Codota Iconnew Hashtable()
  • Codota IconBundle bundle;bundle.getHeaders()
  • Codota Iconnew Properties()
  • Smart code suggestions by Codota
}
origin: org.graalvm.truffle/truffle-api

/**
 * Creates the set of classloaders to be used by the system.
 *
 * @return set of classloaders to search registrations in
 */
public static Set<ClassLoader> loaders() {
  Iterable<TruffleLocator> allLocators;
  TruffleLocator locator = Truffle.getRuntime().getCapability(TruffleLocator.class);
  if (locator != null) {
    allLocators = Collections.singleton(locator);
  } else {
    allLocators = Collections.emptyList();
  }
  Set<ClassLoader> found = new LinkedHashSet<>();
  Response response = new Response(found);
  for (TruffleLocator test : allLocators) {
    test.locate(response);
  }
  found.add(ClassLoader.getSystemClassLoader());
  found.add(TruffleLocator.class.getClassLoader());
  return found;
}
origin: org.graalvm.truffle/truffle-api

static void initializeNativeImageTruffleLocator() {
  assert TruffleOptions.AOT : "Only supported in AOT mode.";
  if (nativeImageLocator != null) {
    if (ImageInfo.inImageBuildtimeCode() || NATIVE_IMAGE_LOCATOR_INITIALIZED.compareAndSet(false, true)) {
      nativeImageLocator.locate(new Response(new HashSet<>()));
    }
  }
}
origin: com.oracle.truffle/truffle-api

/**
 * Creates the set of classloaders to be used by the system.
 *
 * @return set of classloaders to search registrations in
 */
public static Set<ClassLoader> loaders() {
  Iterable<TruffleLocator> allLocators;
  TruffleLocator locator = Truffle.getRuntime().getCapability(TruffleLocator.class);
  if (locator != null) {
    allLocators = Collections.singleton(locator);
  } else {
    allLocators = Collections.emptyList();
  }
  Set<ClassLoader> found = new LinkedHashSet<>();
  Response response = new Response(found);
  for (TruffleLocator test : allLocators) {
    test.locate(response);
  }
  found.add(ClassLoader.getSystemClassLoader());
  found.add(TruffleLocator.class.getClassLoader());
  return found;
}
com.oracle.truffle.api.implTruffleLocator$Response

Javadoc

Callback to register languages.

Most used methods

  • <init>

Popular in Java

  • Running tasks concurrently on multiple threads
  • setRequestProperty (URLConnection)
  • putExtra (Intent)
  • runOnUiThread (Activity)
  • Properties (java.util)
    The Properties class represents a persistent set of properties. The Properties can be saved to a st
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now