Java Code Examples for proguard.classfile.attribute.visitor.ExceptionInfoVisitor#visitExceptionInfo()

The following examples show how to use proguard.classfile.attribute.visitor.ExceptionInfoVisitor#visitExceptionInfo() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CodeAttribute.java    From java-n-IDE-for-Android with Apache License 2.0 5 votes vote down vote up
/**
 * Applies the given exception visitor to all exceptions.
 */
public void exceptionsAccept(Clazz clazz, Method method, ExceptionInfoVisitor exceptionInfoVisitor)
{
    for (int index = 0; index < u2exceptionTableLength; index++)
    {
        // We don't need double dispatching here, since there is only one
        // type of ExceptionInfo.
        exceptionInfoVisitor.visitExceptionInfo(clazz, method, this, exceptionTable[index]);
    }
}
 
Example 2
Source File: CodeAttribute.java    From java-n-IDE-for-Android with Apache License 2.0 5 votes vote down vote up
/**
 * Applies the given exception visitor to all exceptions that are applicable
 * to the instruction at the specified offset.
 */
public void exceptionsAccept(Clazz clazz, Method method, int offset, ExceptionInfoVisitor exceptionInfoVisitor)
{
    for (int index = 0; index < u2exceptionTableLength; index++)
    {
        ExceptionInfo exceptionInfo = exceptionTable[index];
        if (exceptionInfo.isApplicable(offset))
        {
            exceptionInfoVisitor.visitExceptionInfo(clazz, method, this, exceptionInfo);
        }
    }
}
 
Example 3
Source File: CodeAttribute.java    From java-n-IDE-for-Android with Apache License 2.0 5 votes vote down vote up
/**
 * Applies the given exception visitor to all exceptions that are applicable
 * to any of the instructions in the specified range of offsets.
 */
public void exceptionsAccept(Clazz clazz, Method method, int startOffset, int endOffset, ExceptionInfoVisitor exceptionInfoVisitor)
{
    for (int index = 0; index < u2exceptionTableLength; index++)
    {
        ExceptionInfo exceptionInfo = exceptionTable[index];
        if (exceptionInfo.isApplicable(startOffset, endOffset))
        {
            exceptionInfoVisitor.visitExceptionInfo(clazz, method, this, exceptionInfo);
        }
    }
}