Example usage for org.eclipse.jdt.core.util IVerificationTypeInfo ITEM_OBJECT

List of usage examples for org.eclipse.jdt.core.util IVerificationTypeInfo ITEM_OBJECT

Introduction

In this page you can find the example usage for org.eclipse.jdt.core.util IVerificationTypeInfo ITEM_OBJECT.

Prototype

int ITEM_OBJECT

To view the source code for org.eclipse.jdt.core.util IVerificationTypeInfo ITEM_OBJECT.

Click Source Link

Document

The tag value representing object variable info

Usage

From source file:org.eclipse.objectteams.otdt.internal.core.compiler.bytecode.BytecodeTransformer.java

License:Open Source License

private int rewriteVerificationInfo(byte[] codeToAdjust, int offset) {
    // this code is a stripped down version of VerificationInfo.<init> (from model):
    final int t = (codeToAdjust[offset] & 0xFF);
    int readOffset = 1;
    switch (t) {/*from  w  w w. ja v a2 s.  c  o  m*/
    case IVerificationTypeInfo.ITEM_OBJECT:
        updateCPO(null, codeToAdjust, offset + 1, 2);
        readOffset += 2;
        break;
    case IVerificationTypeInfo.ITEM_UNINITIALIZED:
        readOffset += 2;
    }
    return readOffset;
}