Tabnine Logo
AnyException
Code IndexAdd Tabnine to your IDE (free)

How to use
AnyException
in
cn.wensiqun.asmsupport.standard.def.clazz

Best Java code snippets using cn.wensiqun.asmsupport.standard.def.clazz.AnyException (Showing top 3 results out of 315)

origin: wensiqun/asmsupport

@Override
public int hashCode() {
  return getName().hashCode();
}
origin: wensiqun/asmsupport

@Override
public IClass getType(Class<?> javaClass) {
  String desc = Type.getDescriptor(javaClass);
  Reference<IClass> ref = cache.get(desc);
  IClass type = ref == null ? null : ref.get();
  if (type == null) {
    if (AnyException.class.equals(javaClass)) {
      type = new AnyException(this);
    } else if (javaClass.isArray()) {
      type = getArrayType(
          ClassUtils.getRootComponentType(javaClass), Type
              .getType(javaClass).getDimensions());
    } else {
      type = new ProductClass(javaClass, this);
    }
    cache.put(desc, new WeakReference<>(type));
  }
  return type;
}
origin: wensiqun/asmsupport

@Override
public IClass getType(String possible) {
  String desc = ClassUtils.getDescription(possible);
  Reference<IClass> ref = cache.get(desc);
  IClass type = ref == null ? null : ref.get();
  if (type == null) {
    if ("E".equals(desc)) {
      type = new AnyException(this);
    } else {
      Class<?> reflexClazz = ClassUtils.primitiveToClass(desc);
      if (reflexClazz == null) {
        try {
          reflexClazz = loadClass(ClassUtils.getClassname(possible));
        } catch (ClassNotFoundException e) {
          throw new ASMSupportException(e);
        }
      }
      if (reflexClazz.isArray()) {
        type = getArrayType(
            ClassUtils.getRootComponentType(reflexClazz), Type
                .getType(reflexClazz).getDimensions());
      } else {
        type = new ProductClass(reflexClazz, this);
      }
    }
    cache.put(desc, new WeakReference<>(type));
  }
  return type;
}
cn.wensiqun.asmsupport.standard.def.clazzAnyException

Javadoc

Use internal,

Most used methods

  • <init>
  • getName

Popular in Java

  • Reading from database using SQL prepared statement
  • scheduleAtFixedRate (Timer)
  • getApplicationContext (Context)
  • runOnUiThread (Activity)
  • String (java.lang)
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Table (org.hibernate.mapping)
    A relational table
  • 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