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

How to use
getInnerClassName
method
in
java.lang.Class

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

origin: robovm/robovm

/**
 * Returns the simple name of the class represented by this {@code Class} as
 * defined in the source code. If there is no name (that is, the class is
 * anonymous) then an empty string is returned. If the receiver is an array
 * then the name of the underlying type with square braces appended (for
 * example {@code "Integer[]"}) is returned.
 *
 * @return the simple name of the class represented by this {@code Class}.
 */
public String getSimpleName() {
  if (isArray()) {
    return getComponentType().getSimpleName() + "[]";
  }
  String name = getName();
  if (isAnonymousClass()) {
    return "";
  }
  if (isMemberClass() || isLocalClass()) {
    return getInnerClassName();
  }
  int dot = name.lastIndexOf('.');
  if (dot != -1) {
    return name.substring(dot + 1);
  }
  return name;
}
origin: MobiVM/robovm

/**
 * Returns the simple name of the class represented by this {@code Class} as
 * defined in the source code. If there is no name (that is, the class is
 * anonymous) then an empty string is returned. If the receiver is an array
 * then the name of the underlying type with square braces appended (for
 * example {@code "Integer[]"}) is returned.
 *
 * @return the simple name of the class represented by this {@code Class}.
 */
public String getSimpleName() {
  if (isArray()) {
    return getComponentType().getSimpleName() + "[]";
  }
  String name = getName();
  if (isAnonymousClass()) {
    return "";
  }
  if (isMemberClass() || isLocalClass()) {
    return getInnerClassName();
  }
  int dot = name.lastIndexOf('.');
  if (dot != -1) {
    return name.substring(dot + 1);
  }
  return name;
}
origin: ibinti/bugvm

/**
 * Returns the simple name of the class represented by this {@code Class} as
 * defined in the source code. If there is no name (that is, the class is
 * anonymous) then an empty string is returned. If the receiver is an array
 * then the name of the underlying type with square braces appended (for
 * example {@code "Integer[]"}) is returned.
 *
 * @return the simple name of the class represented by this {@code Class}.
 */
public String getSimpleName() {
  if (isArray()) {
    return getComponentType().getSimpleName() + "[]";
  }
  String name = getName();
  if (isAnonymousClass()) {
    return "";
  }
  if (isMemberClass() || isLocalClass()) {
    return getInnerClassName();
  }
  int dot = name.lastIndexOf('.');
  if (dot != -1) {
    return name.substring(dot + 1);
  }
  return name;
}
origin: com.bugvm/bugvm-rt

/**
 * Returns the simple name of the class represented by this {@code Class} as
 * defined in the source code. If there is no name (that is, the class is
 * anonymous) then an empty string is returned. If the receiver is an array
 * then the name of the underlying type with square braces appended (for
 * example {@code "Integer[]"}) is returned.
 *
 * @return the simple name of the class represented by this {@code Class}.
 */
public String getSimpleName() {
  if (isArray()) {
    return getComponentType().getSimpleName() + "[]";
  }
  String name = getName();
  if (isAnonymousClass()) {
    return "";
  }
  if (isMemberClass() || isLocalClass()) {
    return getInnerClassName();
  }
  int dot = name.lastIndexOf('.');
  if (dot != -1) {
    return name.substring(dot + 1);
  }
  return name;
}
origin: com.gluonhq/robovm-rt

/**
 * Returns the simple name of the class represented by this {@code Class} as
 * defined in the source code. If there is no name (that is, the class is
 * anonymous) then an empty string is returned. If the receiver is an array
 * then the name of the underlying type with square braces appended (for
 * example {@code "Integer[]"}) is returned.
 *
 * @return the simple name of the class represented by this {@code Class}.
 */
public String getSimpleName() {
  if (isArray()) {
    return getComponentType().getSimpleName() + "[]";
  }
  String name = getName();
  if (isAnonymousClass()) {
    return "";
  }
  if (isMemberClass() || isLocalClass()) {
    return getInnerClassName();
  }
  int dot = name.lastIndexOf('.');
  if (dot != -1) {
    return name.substring(dot + 1);
  }
  return name;
}
origin: com.mobidevelop.robovm/robovm-rt

/**
 * Returns the simple name of the class represented by this {@code Class} as
 * defined in the source code. If there is no name (that is, the class is
 * anonymous) then an empty string is returned. If the receiver is an array
 * then the name of the underlying type with square braces appended (for
 * example {@code "Integer[]"}) is returned.
 *
 * @return the simple name of the class represented by this {@code Class}.
 */
public String getSimpleName() {
  if (isArray()) {
    return getComponentType().getSimpleName() + "[]";
  }
  String name = getName();
  if (isAnonymousClass()) {
    return "";
  }
  if (isMemberClass() || isLocalClass()) {
    return getInnerClassName();
  }
  int dot = name.lastIndexOf('.');
  if (dot != -1) {
    return name.substring(dot + 1);
  }
  return name;
}
origin: FlexoVM/flexovm

/**
 * Returns the simple name of the class represented by this {@code Class} as
 * defined in the source code. If there is no name (that is, the class is
 * anonymous) then an empty string is returned. If the receiver is an array
 * then the name of the underlying type with square braces appended (for
 * example {@code "Integer[]"}) is returned.
 *
 * @return the simple name of the class represented by this {@code Class}.
 */
public String getSimpleName() {
  if (isArray()) {
    return getComponentType().getSimpleName() + "[]";
  }
  String name = getName();
  if (isAnonymousClass()) {
    return "";
  }
  if (isMemberClass() || isLocalClass()) {
    return getInnerClassName();
  }
  int dot = name.lastIndexOf('.');
  if (dot != -1) {
    return name.substring(dot + 1);
  }
  return name;
}
java.langClassgetInnerClassName

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
  • 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 Android Studio
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