Tabnine Logo
TruffleLocator$Response
Code IndexAdd Tabnine 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)

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: 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;
}
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<>()));
    }
  }
}
com.oracle.truffle.api.implTruffleLocator$Response

Javadoc

Callback to register languages.

Most used methods

  • <init>

Popular in Java

  • Reactive rest calls using spring rest template
  • getContentResolver (Context)
  • requestLocationUpdates (LocationManager)
  • getResourceAsStream (ClassLoader)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Top plugins for WebStorm
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