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

The following examples show how to use proguard.classfile.attribute.preverification.visitor.StackMapFrameVisitor. 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: StackMapTableAttribute.java    From java-n-IDE-for-Android with 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 #2
Source File: StackMapTableAttribute.java    From bazel with 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 #3
Source File: StackMapTableAttribute.java    From proguard with GNU General Public License v2.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 File: StackMapAttribute.java    From bazel with 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 File: StackMapAttribute.java    From java-n-IDE-for-Android with 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 #6
Source File: StackMapAttribute.java    From proguard with 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 #7
Source File: MoreZeroFrame.java    From java-n-IDE-for-Android with 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 #8
Source File: LessZeroFrame.java    From bazel with 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 #9
Source File: SameZeroFrame.java    From bazel with 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 File: LessZeroFrame.java    From proguard with 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 #11
Source File: SameZeroFrame.java    From proguard with 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 #12
Source File: LessZeroFrame.java    From java-n-IDE-for-Android with 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 #13
Source File: SameOneFrame.java    From java-n-IDE-for-Android with 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 #14
Source File: SameZeroFrame.java    From java-n-IDE-for-Android with 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 File: FullFrame.java    From java-n-IDE-for-Android with 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 #16
Source File: StackMapFrame.java    From java-n-IDE-for-Android with 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 File: StackMapFrame.java    From proguard with 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 File: StackMapFrame.java    From bazel with 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);