Tabnine Logo
Class.getClassLoaderImpl
Code IndexAdd Tabnine to your IDE (free)

How to use
getClassLoaderImpl
method
in
java.lang.Class

Best Java code snippets using java.lang.Class.getClassLoaderImpl (Showing top 7 results out of 315)

origin: robovm/robovm

/**
 * Returns the class loader which was used to load the class represented by
 * this {@code Class}. Implementations are free to return {@code null} for
 * classes that were loaded by the bootstrap class loader. The Android
 * reference implementation, though, always returns a reference to an actual
 * class loader.
 */
public ClassLoader getClassLoader() {
  if (this.isPrimitive()) {
    return null;
  }
  ClassLoader loader = getClassLoaderImpl();
  if (loader == null) {
    loader = BootClassLoader.getInstance();
  }
  return loader;
}
origin: MobiVM/robovm

/**
 * Returns the class loader which was used to load the class represented by
 * this {@code Class}. Implementations are free to return {@code null} for
 * classes that were loaded by the bootstrap class loader. The Android
 * reference implementation, though, always returns a reference to an actual
 * class loader.
 */
public ClassLoader getClassLoader() {
  if (this.isPrimitive()) {
    return null;
  }
  ClassLoader loader = getClassLoaderImpl();
  if (loader == null) {
    loader = BootClassLoader.getInstance();
  }
  return loader;
}
origin: com.gluonhq/robovm-rt

/**
 * Returns the class loader which was used to load the class represented by
 * this {@code Class}. Implementations are free to return {@code null} for
 * classes that were loaded by the bootstrap class loader. The Android
 * reference implementation, though, always returns a reference to an actual
 * class loader.
 */
public ClassLoader getClassLoader() {
  if (this.isPrimitive()) {
    return null;
  }
  ClassLoader loader = getClassLoaderImpl();
  if (loader == null) {
    loader = BootClassLoader.getInstance();
  }
  return loader;
}
origin: FlexoVM/flexovm

/**
 * Returns the class loader which was used to load the class represented by
 * this {@code Class}. Implementations are free to return {@code null} for
 * classes that were loaded by the bootstrap class loader. The Android
 * reference implementation, though, always returns a reference to an actual
 * class loader.
 */
public ClassLoader getClassLoader() {
  if (this.isPrimitive()) {
    return null;
  }
  ClassLoader loader = getClassLoaderImpl();
  if (loader == null) {
    loader = BootClassLoader.getInstance();
  }
  return loader;
}
origin: ibinti/bugvm

/**
 * Returns the class loader which was used to load the class represented by
 * this {@code Class}. Implementations are free to return {@code null} for
 * classes that were loaded by the bootstrap class loader. The Android
 * reference implementation, though, always returns a reference to an actual
 * class loader.
 */
public ClassLoader getClassLoader() {
  if (this.isPrimitive()) {
    return null;
  }
  ClassLoader loader = getClassLoaderImpl();
  if (loader == null) {
    loader = BootClassLoader.getInstance();
  }
  return loader;
}
origin: com.mobidevelop.robovm/robovm-rt

/**
 * Returns the class loader which was used to load the class represented by
 * this {@code Class}. Implementations are free to return {@code null} for
 * classes that were loaded by the bootstrap class loader. The Android
 * reference implementation, though, always returns a reference to an actual
 * class loader.
 */
public ClassLoader getClassLoader() {
  if (this.isPrimitive()) {
    return null;
  }
  ClassLoader loader = getClassLoaderImpl();
  if (loader == null) {
    loader = BootClassLoader.getInstance();
  }
  return loader;
}
origin: com.bugvm/bugvm-rt

/**
 * Returns the class loader which was used to load the class represented by
 * this {@code Class}. Implementations are free to return {@code null} for
 * classes that were loaded by the bootstrap class loader. The Android
 * reference implementation, though, always returns a reference to an actual
 * class loader.
 */
public ClassLoader getClassLoader() {
  if (this.isPrimitive()) {
    return null;
  }
  ClassLoader loader = getClassLoaderImpl();
  if (loader == null) {
    loader = BootClassLoader.getInstance();
  }
  return loader;
}
java.langClassgetClassLoaderImpl

Javadoc

This must be provided by the VM vendor, as it is used by other provided class implementations in this package. Outside of this class, it is used by SecurityManager.classLoaderDepth(), currentClassLoader() and currentLoadedClass(). Return the ClassLoader for this Class without doing any security checks. The bootstrap ClassLoader is returned, unlike getClassLoader() which returns null in place of the bootstrap ClassLoader.

Popular methods of Class

  • getName
    Returns the name of the class represented by this Class. For a description of the format which is us
  • getSimpleName
  • getClassLoader
  • isAssignableFrom
    Determines if the class or interface represented by this Class object is either the same as, or is a
  • forName
    Returns the Class object associated with the class or interface with the given string name, using th
  • newInstance
    Returns a new instance of the class represented by this Class, created by invoking the default (that
  • getMethod
    Returns a Method object that reflects the specified public member method of the class or interface r
  • getResourceAsStream
    Finds a resource with a given name. The rules for searching resources associated with a given class
  • getSuperclass
    Returns the Class representing the superclass of the entity (class, interface, primitive type or voi
  • getConstructor
  • cast
    Casts an object to the class or interface represented by this Class object.
  • isInstance
  • cast,
  • isInstance,
  • getCanonicalName,
  • getDeclaredField,
  • isArray,
  • getAnnotation,
  • getDeclaredFields,
  • getResource,
  • getDeclaredMethod,
  • getMethods

Popular in Java

  • Making http post requests using okhttp
  • scheduleAtFixedRate (Timer)
  • notifyDataSetChanged (ArrayAdapter)
  • getSharedPreferences (Context)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Socket (java.net)
    Provides a client-side TCP socket.
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • JFileChooser (javax.swing)
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • 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