Codota Logo
rocks.inspectit.agent.java.instrumentation.asm
Code IndexAdd Codota to your IDE (free)

How to use rocks.inspectit.agent.java.instrumentation.asm

Best Java code snippets using rocks.inspectit.agent.java.instrumentation.asm (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ArrayList a =
  • Codota Iconnew ArrayList<String>()
  • Codota Iconnew ArrayList()
  • Codota Iconnew ArrayList<Object>()
  • Smart code suggestions by Codota
}
origin: inspectIT/inspectIT

/**
 * {@inheritDoc}
 */
@Override
protected void onMethodEnter() {
  generateBeforeBodyCall();
  // start our try block
  visitLabel(tryBlockStart);
}
origin: inspectIT/inspectIT

/**
 * {@inheritDoc}
 */
@Override
protected void onMethodEnter() {
  generateBeforeBodyCall();
  // start our try block
  visitLabel(tryBlockStart);
}
origin: inspectIT/inspectIT

/**
 * {@inheritDoc}
 */
@Override
public void visit(int version, int access, String name, String signature, String superName, String[] interfaces) {
  // calling super to ensure the visitor pattern
  super.visit(version, access, name, signature, superName, interfaces);
  loaderAwareClassWriter.setClassName(name);
  loaderAwareClassWriter.setSuperClassName(superName);
}
origin: inspectIT/inspectIT

protected void prepareWriter(ClassReader cr, ClassLoader classLoader, boolean enhancedExceptionSensor, MethodInstrumentationConfig... configs) {
  classWriter = new LoaderAwareClassWriter(cr, ClassWriter.COMPUTE_FRAMES, classLoader);
  classInstrumenter = new ClassInstrumenter(instrumenterFactory, classWriter, Arrays.asList(configs), enhancedExceptionSensor);
}
origin: inspectIT/inspectIT

/**
 * Creates class from given bytes. Class will have the given FQN. Class will be created with the
 * {@link InstrumentingClassLoader}, thus not the same class loader as the one test class is
 * loaded.
 */
protected Class<?> createClass(String className, byte[] bytes) throws InstantiationException, IllegalAccessException, ClassNotFoundException {
  return new InstrumentingClassLoader().findClass(className, bytes);
}
origin: inspectIT/inspectIT

public void throwsAndHandlesException() {
  try {
    throw new MyTestException();
  } catch (MyTestException e) {
  }
}
origin: inspectIT/inspectIT

/**
 * Test interface to be used during
 * {@link rocks.inspectit.agent.java.instrumentation.asm.ClassAnalyzerTest}.
 */
@TestAnnotation
@SuppressWarnings("PMD")
interface TestInterface extends Serializable {

  @TestAnnotation
  String method1(int i, long[] j, String s, Object[][][] array3Dim);

}
origin: inspectIT/inspectIT

  public void callsMethodWithExceptionAndTryCatchFinally() {
    try {
      throwsAnException();
    } catch (MyTestException e) {
    } finally {
    }
  }
}
origin: inspectIT/inspectIT

public static void callsStaticMethodWithException() {
  try {
    InstrumentationExceptionTestClass.staticThrowsAnException();
  } catch (MyTestException exception) {
  }
}
origin: inspectIT/inspectIT

  protected Class<?> findClass(String name, byte[] bytes) throws ClassNotFoundException {
    return defineClass(name, bytes, 0, bytes.length);
  }
}
origin: inspectIT/inspectIT

/**
 * Creates instance of a class defined by given bytes. Class will be created with
 * {@link #createClass(String, byte[])} method.
 */
protected Object createInstance(String className, byte[] bytes) throws InstantiationException, IllegalAccessException, ClassNotFoundException {
  return createClass(className, bytes).newInstance();
}
origin: inspectIT/inspectIT

protected void prepareWriter(ClassReader cr, ClassLoader classLoader, boolean enhancedExceptionSensor, MethodInstrumentationConfig... configs) {
  classWriter = new LoaderAwareClassWriter(cr, ClassWriter.COMPUTE_FRAMES, classLoader);
  classInstrumenter = new ClassInstrumenter(instrumenterFactory, classWriter, Arrays.asList(configs), enhancedExceptionSensor);
}
origin: inspectIT/inspectIT

public InstrumentationExceptionTestClass(String message) throws MyTestException {
  try {
    throw new MyTestException(message);
  } catch (MyTestException e) {
  }
}
origin: inspectIT/inspectIT

@Override
@TestAnnotation
protected void method0() {
}
origin: inspectIT/inspectIT

public void callsMethodWithException() {
  try {
    throwsAnException();
  } catch (MyTestException exception) {
  }
}
origin: inspectIT/inspectIT

public void throwsAnException() throws MyTestException {
  throw new MyTestException();
}
origin: inspectIT/inspectIT

@TestAnnotation
String method1(int i, long[] j, String s, Object[][][] array3Dim);
origin: inspectIT/inspectIT

public InstrumentationExceptionTestClass(int i) throws MyTestException {
  throwsAnException();
}
origin: inspectIT/inspectIT

public static void staticThrowsAnException() throws MyTestException {
  throw new MyTestException();
}
origin: inspectIT/inspectIT

public void createsExceptionObject() {
  new MyTestException();
}
rocks.inspectit.agent.java.instrumentation.asm

Most used classes

  • AsmUtil
    Our small utility class for ASM.
  • ClassAnalyzer
    Class for parsing byte code of a class and creating a info.novatec.inspectit.instrumentation.classca
  • ClassInstrumenter
    Used to instrument classes via ASM.
  • ConstructorInstrumenter
    Used to instrument constructors only.
  • LoaderAwareClassWriter
    Extension to the ClassWriter that has a specific class loader to use when resolving common super cla
  • AbstractInstrumentationTest$InstrumentingClassLoader,
  • AbstractInstrumentationTest,
  • AbstractMethodInstrumenter,
  • ClassInstrumenterTest$Instrument,
  • ClassInstrumenterTest,
  • InstrumentationExceptionTestClass,
  • MethodAnalyzer,
  • MyTestException,
  • SpecialMethodInstrumenter,
  • SpecialMethodInstrumenterTest$NoSubstitution,
  • SpecialMethodInstrumenterTest$ParameterValueSubstitution,
  • SpecialMethodInstrumenterTest$ReturnValueAndParameterValueSubstitution,
  • SpecialMethodInstrumenterTest$ReturnValueSubstitution,
  • SpecialMethodInstrumenterTest
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now