Tabnine Logo
Analyzer$ExceptionInfo
Code IndexAdd Tabnine to your IDE (free)

How to use
Analyzer$ExceptionInfo
in
javassist.bytecode.analysis

Best Java code snippets using javassist.bytecode.analysis.Analyzer$ExceptionInfo (Showing top 6 results out of 315)

origin: org.javassist/javassist

private ExceptionInfo[] buildExceptionInfo(MethodInfo method) {
  ConstPool constPool = method.getConstPool();
  ClassPool classes = clazz.getClassPool();
  ExceptionTable table = method.getCodeAttribute().getExceptionTable();
  ExceptionInfo[] exceptions = new ExceptionInfo[table.size()];
  for (int i = 0; i < table.size(); i++) {
    int index = table.catchType(i);
    Type type;
    try {
      type = index == 0 ? Type.THROWABLE : Type.get(classes.get(constPool.getClassInfo(index)));
    } catch (NotFoundException e) {
      throw new IllegalStateException(e.getMessage());
    }
    exceptions[i] = new ExceptionInfo(table.startPc(i), table.endPc(i), table.handlerPc(i), type);
  }
  return exceptions;
}
origin: hstaudacher/osgi-jax-rs-connector

private ExceptionInfo[] buildExceptionInfo(MethodInfo method) {
  ConstPool constPool = method.getConstPool();
  ClassPool classes = clazz.getClassPool();
  ExceptionTable table = method.getCodeAttribute().getExceptionTable();
  ExceptionInfo[] exceptions = new ExceptionInfo[table.size()];
  for (int i = 0; i < table.size(); i++) {
    int index = table.catchType(i);
    Type type;
    try {
      type = index == 0 ? Type.THROWABLE : Type.get(classes.get(constPool.getClassInfo(index)));
    } catch (NotFoundException e) {
      throw new IllegalStateException(e.getMessage());
    }
    exceptions[i] = new ExceptionInfo(table.startPc(i), table.endPc(i), table.handlerPc(i), type);
  }
  return exceptions;
}
origin: com.eclipsesource.jaxrs/jersey-all

private ExceptionInfo[] buildExceptionInfo(MethodInfo method) {
  ConstPool constPool = method.getConstPool();
  ClassPool classes = clazz.getClassPool();
  ExceptionTable table = method.getCodeAttribute().getExceptionTable();
  ExceptionInfo[] exceptions = new ExceptionInfo[table.size()];
  for (int i = 0; i < table.size(); i++) {
    int index = table.catchType(i);
    Type type;
    try {
      type = index == 0 ? Type.THROWABLE : Type.get(classes.get(constPool.getClassInfo(index)));
    } catch (NotFoundException e) {
      throw new IllegalStateException(e.getMessage());
    }
    exceptions[i] = new ExceptionInfo(table.startPc(i), table.endPc(i), table.handlerPc(i), type);
  }
  return exceptions;
}
origin: org.jboss.javassist/com.springsource.javassist

private ExceptionInfo[] buildExceptionInfo(MethodInfo method) {
  ConstPool constPool = method.getConstPool();
  ClassPool classes = clazz.getClassPool();
  ExceptionTable table = method.getCodeAttribute().getExceptionTable();
  ExceptionInfo[] exceptions = new ExceptionInfo[table.size()];
  for (int i = 0; i < table.size(); i++) {
    int index = table.catchType(i);
    Type type;
    try {
      type = index == 0 ? Type.THROWABLE : Type.get(classes.get(constPool.getClassInfo(index)));
    } catch (NotFoundException e) {
      throw new IllegalStateException(e.getMessage());
    }
    exceptions[i] = new ExceptionInfo(table.startPc(i), table.endPc(i), table.handlerPc(i), type);
  }
  return exceptions;
}
origin: hstaudacher/osgi-jax-rs-connector

private ExceptionInfo[] buildExceptionInfo(MethodInfo method) {
  ConstPool constPool = method.getConstPool();
  ClassPool classes = clazz.getClassPool();
  ExceptionTable table = method.getCodeAttribute().getExceptionTable();
  ExceptionInfo[] exceptions = new ExceptionInfo[table.size()];
  for (int i = 0; i < table.size(); i++) {
    int index = table.catchType(i);
    Type type;
    try {
      type = index == 0 ? Type.THROWABLE : Type.get(classes.get(constPool.getClassInfo(index)));
    } catch (NotFoundException e) {
      throw new IllegalStateException(e.getMessage());
    }
    exceptions[i] = new ExceptionInfo(table.startPc(i), table.endPc(i), table.handlerPc(i), type);
  }
  return exceptions;
}
origin: redisson/redisson

private ExceptionInfo[] buildExceptionInfo(MethodInfo method) {
  ConstPool constPool = method.getConstPool();
  ClassPool classes = clazz.getClassPool();
  ExceptionTable table = method.getCodeAttribute().getExceptionTable();
  ExceptionInfo[] exceptions = new ExceptionInfo[table.size()];
  for (int i = 0; i < table.size(); i++) {
    int index = table.catchType(i);
    Type type;
    try {
      type = index == 0 ? Type.THROWABLE : Type.get(classes.get(constPool.getClassInfo(index)));
    } catch (NotFoundException e) {
      throw new IllegalStateException(e.getMessage());
    }
    exceptions[i] = new ExceptionInfo(table.startPc(i), table.endPc(i), table.handlerPc(i), type);
  }
  return exceptions;
}
javassist.bytecode.analysisAnalyzer$ExceptionInfo

Most used methods

  • <init>

Popular in Java

  • Updating database using SQL prepared statement
  • runOnUiThread (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • addToBackStack (FragmentTransaction)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • Permission (java.security)
    Legacy security code; do not use.
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • 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
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Github Copilot alternatives
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