Tabnine Logo
ObjectType.getClassName
Code IndexAdd Tabnine to your IDE (free)

How to use
getClassName
method
in
me.jamiemansfield.bombe.type.ObjectType

Best Java code snippets using me.jamiemansfield.bombe.type.ObjectType.getClassName (Showing top 4 results out of 315)

origin: me.jamiemansfield/bombe-core

@Override
public boolean isInstanceOf(final Type obj, final InheritanceProvider inheritanceProvider) {
  if (this == obj) return true;
  if (!(obj instanceof ObjectType)) return false;
  final ObjectType that = (ObjectType) obj;
  return this.equals(that) ||
      that.getClassName().equals("java/lang/Object") ||
      inheritanceProvider.getParentsOf(this.className).contains(that.getClassName());
}
origin: me.jamiemansfield/lorenz

/**
 * Gets the de-obfuscated raw view of the type.
 *
 * @param type The type to de-obfuscate
 * @return The de-obfuscated raw view
 * @since 0.4.0
 */
default String deobfuscate(final Type type) {
  if (type instanceof ArrayType) {
    final ArrayType arr = (ArrayType) type;
    return arr.getDims() + this.deobfuscate(arr.getComponent());
  }
  else if (type instanceof ObjectType) {
    final ObjectType obj = (ObjectType) type;
    final Optional<? extends ClassMapping<?>> typeMapping = this.getClassMapping(obj.getClassName());
    return "L" + typeMapping.map(Mapping::getFullDeobfuscatedName).orElse(obj.getClassName()) + ";";
  }
  return type.toString();
}
origin: me.jamiemansfield/lorenz

private static FieldType handleNonePrefix(final FieldType type) {
  if (type instanceof ArrayType) {
    final ArrayType arr = (ArrayType) type;
    return new ArrayType(arr.getDimCount(), handleNonePrefix(arr.getComponent()));
  }
  if (type instanceof ObjectType) {
    final ObjectType obj = (ObjectType) type;
    return new ObjectType(handleNonePrefix(obj.getClassName()));
  }
  return type;
}
origin: me.jamiemansfield/lorenz

private static FieldType handleNonePrefix(final FieldType type) {
  if (type instanceof ArrayType) {
    final ArrayType arr = (ArrayType) type;
    return new ArrayType(arr.getDimCount(), handleNonePrefix(arr.getComponent()));
  }
  if (type instanceof ObjectType) {
    final ObjectType obj = (ObjectType) type;
    return new ObjectType(handleNonePrefix(obj.getClassName()));
  }
  return type;
}
me.jamiemansfield.bombe.typeObjectTypegetClassName

Javadoc

Gets the name of the class of the object.

Popular methods of ObjectType

  • <init>
    Creates a new object type, of the given class name.
  • equals

Popular in Java

  • Creating JSON documents from java classes using gson
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • putExtra (Intent)
  • setRequestProperty (URLConnection)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • Join (org.hibernate.mapping)
  • Top 12 Jupyter Notebook extensions
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