Java Code Examples for proguard.classfile.attribute.preverification.visitor.StackMapFrameVisitor

The following examples show how to use proguard.classfile.attribute.preverification.visitor.StackMapFrameVisitor. These examples are extracted from open source projects. 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
/**
 * Applies the given stack map frame visitor to all stack map frames.
 */
public void stackMapFramesAccept(Clazz clazz, Method method, CodeAttribute codeAttribute, StackMapFrameVisitor stackMapFrameVisitor)
{
    int offset = 0;

    for (int index = 0; index < u2stackMapFramesCount; index++)
    {
        StackMapFrame stackMapFrame = stackMapFrames[index];

        // Note that the byte code offset is computed differently for the
        // first stack map frame.
        offset += stackMapFrame.getOffsetDelta() + (index == 0 ? 0 : 1);

        stackMapFrame.accept(clazz, method, codeAttribute, offset, stackMapFrameVisitor);
    }
}
 
Example 2
/**
 * Applies the given stack map frame visitor to all stack map frames.
 */
public void stackMapFramesAccept(Clazz clazz, Method method, CodeAttribute codeAttribute, StackMapFrameVisitor stackMapFrameVisitor)
{
    int offset = 0;

    for (int index = 0; index < u2stackMapFramesCount; index++)
    {
        StackMapFrame stackMapFrame = stackMapFrames[index];

        // Note that the byte code offset is computed differently for the
        // first stack map frame.
        offset += stackMapFrame.getOffsetDelta() + (index == 0 ? 0 : 1);

        stackMapFrame.accept(clazz, method, codeAttribute, offset, stackMapFrameVisitor);
    }
}
 
Example 3
Source Project: bazel   Source File: StackMapTableAttribute.java    License: Apache License 2.0 6 votes vote down vote up
/**
 * Applies the given stack map frame visitor to all stack map frames.
 */
public void stackMapFramesAccept(Clazz clazz, Method method, CodeAttribute codeAttribute, StackMapFrameVisitor stackMapFrameVisitor)
{
    int offset = 0;

    for (int index = 0; index < u2stackMapFramesCount; index++)
    {
        StackMapFrame stackMapFrame = stackMapFrames[index];

        // Note that the byte code offset is computed differently for the
        // first stack map frame.
        offset += stackMapFrame.getOffsetDelta() + (index == 0 ? 0 : 1);

        stackMapFrame.accept(clazz, method, codeAttribute, offset, stackMapFrameVisitor);
    }
}
 
Example 4
Source Project: java-n-IDE-for-Android   Source File: StackMapAttribute.java    License: Apache License 2.0 5 votes vote down vote up
/**
 * Applies the given stack map frame visitor to all stack map frames.
 */
public void stackMapFramesAccept(Clazz clazz, Method method, CodeAttribute codeAttribute, StackMapFrameVisitor stackMapFrameVisitor)
{
    for (int index = 0; index < u2stackMapFramesCount; index++)
    {
        FullFrame stackMapFrame = stackMapFrames[index];

        // We don't need double dispatching here, since there is only one
        // type of StackMapFrame.
        stackMapFrameVisitor.visitFullFrame(clazz, method, codeAttribute, stackMapFrame.getOffsetDelta(), stackMapFrame);
    }
}
 
Example 5
Source Project: proguard   Source File: StackMapAttribute.java    License: GNU General Public License v2.0 5 votes vote down vote up
/**
 * Applies the given stack map frame visitor to all stack map frames.
 */
public void stackMapFramesAccept(Clazz clazz, Method method, CodeAttribute codeAttribute, StackMapFrameVisitor stackMapFrameVisitor)
{
    for (int index = 0; index < u2stackMapFramesCount; index++)
    {
        FullFrame stackMapFrame = stackMapFrames[index];

        // We don't need double dispatching here, since there is only one
        // type of StackMapFrame.
        stackMapFrameVisitor.visitFullFrame(clazz, method, codeAttribute, stackMapFrame.getOffsetDelta(), stackMapFrame);
    }
}
 
Example 6
Source Project: bazel   Source File: StackMapAttribute.java    License: Apache License 2.0 5 votes vote down vote up
/**
 * Applies the given stack map frame visitor to all stack map frames.
 */
public void stackMapFramesAccept(Clazz clazz, Method method, CodeAttribute codeAttribute, StackMapFrameVisitor stackMapFrameVisitor)
{
    for (int index = 0; index < u2stackMapFramesCount; index++)
    {
        FullFrame stackMapFrame = stackMapFrames[index];

        // We don't need double dispatching here, since there is only one
        // type of StackMapFrame.
        stackMapFrameVisitor.visitFullFrame(clazz, method, codeAttribute, stackMapFrame.getOffsetDelta(), stackMapFrame);
    }
}
 
Example 7
Source Project: java-n-IDE-for-Android   Source File: FullFrame.java    License: Apache License 2.0 4 votes vote down vote up
public void accept(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, StackMapFrameVisitor stackMapFrameVisitor)
{
    stackMapFrameVisitor.visitFullFrame(clazz, method, codeAttribute, offset, this);
}
 
Example 8
Source Project: java-n-IDE-for-Android   Source File: MoreZeroFrame.java    License: Apache License 2.0 4 votes vote down vote up
public void accept(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, StackMapFrameVisitor stackMapFrameVisitor)
{
    stackMapFrameVisitor.visitMoreZeroFrame(clazz, method, codeAttribute, offset, this);
}
 
Example 9
Source Project: java-n-IDE-for-Android   Source File: SameZeroFrame.java    License: Apache License 2.0 4 votes vote down vote up
public void accept(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, StackMapFrameVisitor stackMapFrameVisitor)
{
    stackMapFrameVisitor.visitSameZeroFrame(clazz, method, codeAttribute, offset, this);
}
 
Example 10
Source Project: java-n-IDE-for-Android   Source File: SameOneFrame.java    License: Apache License 2.0 4 votes vote down vote up
public void accept(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, StackMapFrameVisitor stackMapFrameVisitor)
{
    stackMapFrameVisitor.visitSameOneFrame(clazz, method, codeAttribute, offset, this);
}
 
Example 11
Source Project: java-n-IDE-for-Android   Source File: LessZeroFrame.java    License: Apache License 2.0 4 votes vote down vote up
public void accept(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, StackMapFrameVisitor stackMapFrameVisitor)
{
    stackMapFrameVisitor.visitLessZeroFrame(clazz, method, codeAttribute, offset, this);
}
 
Example 12
Source Project: proguard   Source File: SameZeroFrame.java    License: GNU General Public License v2.0 4 votes vote down vote up
public void accept(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, StackMapFrameVisitor stackMapFrameVisitor)
{
    stackMapFrameVisitor.visitSameZeroFrame(clazz, method, codeAttribute, offset, this);
}
 
Example 13
Source Project: proguard   Source File: LessZeroFrame.java    License: GNU General Public License v2.0 4 votes vote down vote up
public void accept(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, StackMapFrameVisitor stackMapFrameVisitor)
{
    stackMapFrameVisitor.visitLessZeroFrame(clazz, method, codeAttribute, offset, this);
}
 
Example 14
Source Project: bazel   Source File: SameZeroFrame.java    License: Apache License 2.0 4 votes vote down vote up
public void accept(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, StackMapFrameVisitor stackMapFrameVisitor)
{
    stackMapFrameVisitor.visitSameZeroFrame(clazz, method, codeAttribute, offset, this);
}
 
Example 15
Source Project: bazel   Source File: LessZeroFrame.java    License: Apache License 2.0 4 votes vote down vote up
public void accept(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, StackMapFrameVisitor stackMapFrameVisitor)
{
    stackMapFrameVisitor.visitLessZeroFrame(clazz, method, codeAttribute, offset, this);
}
 
Example 16
Source Project: java-n-IDE-for-Android   Source File: StackMapFrame.java    License: Apache License 2.0 2 votes vote down vote up
/**
 * Accepts the given visitor.
 */
public abstract void accept(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, StackMapFrameVisitor stackMapFrameVisitor);
 
Example 17
Source Project: proguard   Source File: StackMapFrame.java    License: GNU General Public License v2.0 2 votes vote down vote up
/**
 * Accepts the given visitor.
 */
public abstract void accept(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, StackMapFrameVisitor stackMapFrameVisitor);
 
Example 18
Source Project: bazel   Source File: StackMapFrame.java    License: Apache License 2.0 2 votes vote down vote up
/**
 * Accepts the given visitor.
 */
public abstract void accept(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, StackMapFrameVisitor stackMapFrameVisitor);