public VerificationTypeInfo duplicate() { final VerificationTypeInfo verificationTypeInfo = new VerificationTypeInfo(); verificationTypeInfo.id = this.id; verificationTypeInfo.tag = this.tag; verificationTypeInfo.constantPoolName = this.constantPoolName; verificationTypeInfo.offset = this.offset; return verificationTypeInfo; } public boolean equals(Object obj) {
public void replaceWithElementType() { VerificationTypeInfo info = this.stackItems[this.numberOfStackItems - 1]; VerificationTypeInfo info2 = info.duplicate(); info2.replaceWithElementType(); this.stackItems[this.numberOfStackItems - 1] = info2; } public int getIndexOfDifferentLocals(int differentLocalsCount) {
private boolean equals(VerificationTypeInfo info, VerificationTypeInfo info2) { if (info == null) { return info2 == null; } if (info2 == null) return false; return info.equals(info2); } }
this.contents[localContentsOffset++] = (byte) VerificationTypeInfo.ITEM_TOP; } else { switch(info.id()) { case T_boolean : case T_byte : break; case VerificationTypeInfo.ITEM_OBJECT : int indexForType = this.constantPool.literalIndexForType(info.constantPoolName()); this.contents[localContentsOffset++] = (byte) (indexForType >> 8); this.contents[localContentsOffset++] = (byte) indexForType; this.contents[localContentsOffset++] = (byte) VerificationTypeInfo.ITEM_TOP; } else { switch(info.id()) { case T_boolean : case T_byte : break; case VerificationTypeInfo.ITEM_OBJECT : int indexForType = this.constantPool.literalIndexForType(info.constantPoolName()); this.contents[localContentsOffset++] = (byte) (indexForType >> 8); this.contents[localContentsOffset++] = (byte) indexForType;
public int getNumberOfLocals() { if (this.numberOfLocals != -1) { return this.numberOfLocals; } int result = 0; final int length = this.locals == null ? 0 : this.locals.length; for(int i = 0; i < length; i++) { if (this.locals[i] != null) { switch(this.locals[i].id()) { case TypeIds.T_double : case TypeIds.T_long : i++; } result++; } } this.numberOfLocals = result; return result; } public int getOffsetDelta(StackMapFrame prevFrame) {
@Override public boolean equals(Object obj) { if (obj instanceof VerificationTypeInfo) { VerificationTypeInfo info1 = (VerificationTypeInfo) obj; return info1.tag == this.tag && CharOperation.equals(info1.constantPoolName(), constantPoolName()); } return false; } @Override
switch(this.tag) { case VerificationTypeInfo.ITEM_UNINITIALIZED_THIS : buffer.append("uninitialized_this(").append(readableName()).append(")"); //$NON-NLS-1$//$NON-NLS-2$ break; case VerificationTypeInfo.ITEM_UNINITIALIZED : buffer.append("uninitialized(").append(readableName()).append(")"); //$NON-NLS-1$//$NON-NLS-2$ break; case VerificationTypeInfo.ITEM_OBJECT : buffer.append(readableName()); break; case VerificationTypeInfo.ITEM_DOUBLE :
public StackMapFrame duplicate() { int length = this.locals.length; StackMapFrame result = new StackMapFrame(length); result.numberOfLocals = -1; result.numberOfDifferentLocals = -1; result.pc = this.pc; result.numberOfStackItems = this.numberOfStackItems; if (length != 0) { result.locals = new VerificationTypeInfo[length]; for (int i = 0; i < length; i++) { final VerificationTypeInfo verificationTypeInfo = this.locals[i]; if (verificationTypeInfo != null) { result.locals[i] = verificationTypeInfo.duplicate(); } } } length = this.numberOfStackItems; if (length != 0) { result.stackItems = new VerificationTypeInfo[length]; for (int i = 0; i < length; i++) { result.stackItems[i] = this.stackItems[i].duplicate(); } } return result; } public int numberOfDifferentLocals(StackMapFrame prevFrame) {
this.contents[localContentsOffset++] = (byte) VerificationTypeInfo.ITEM_TOP; } else { switch(info.id()) { case T_boolean : case T_byte : break; case VerificationTypeInfo.ITEM_OBJECT : int indexForType = this.constantPool.literalIndexForType(info.constantPoolName()); this.contents[localContentsOffset++] = (byte) (indexForType >> 8); this.contents[localContentsOffset++] = (byte) indexForType; this.contents[localContentsOffset++] = (byte) VerificationTypeInfo.ITEM_TOP; } else { switch(info.id()) { case T_boolean : case T_byte : break; case VerificationTypeInfo.ITEM_OBJECT : int indexForType = this.constantPool.literalIndexForType(info.constantPoolName()); this.contents[localContentsOffset++] = (byte) (indexForType >> 8); this.contents[localContentsOffset++] = (byte) indexForType;
public int getNumberOfLocals() { if (this.numberOfLocals != -1) { return this.numberOfLocals; } int result = 0; final int length = this.locals == null ? 0 : this.locals.length; for(int i = 0; i < length; i++) { if (this.locals[i] != null) { switch(this.locals[i].id()) { case TypeIds.T_double : case TypeIds.T_long : i++; } result++; } } this.numberOfLocals = result; return result; } public int getOffsetDelta(StackMapFrame prevFrame) {
public boolean equals(Object obj) { if (obj instanceof VerificationTypeInfo) { VerificationTypeInfo info1 = (VerificationTypeInfo) obj; return info1.tag == this.tag && CharOperation.equals(info1.constantPoolName(), constantPoolName()); } return false; } public int hashCode() {
switch(this.tag) { case VerificationTypeInfo.ITEM_UNINITIALIZED_THIS : buffer.append("uninitialized_this(").append(readableName()).append(")"); //$NON-NLS-1$//$NON-NLS-2$ break; case VerificationTypeInfo.ITEM_UNINITIALIZED : buffer.append("uninitialized(").append(readableName()).append(")"); //$NON-NLS-1$//$NON-NLS-2$ break; case VerificationTypeInfo.ITEM_OBJECT : buffer.append(readableName()); break; case VerificationTypeInfo.ITEM_DOUBLE :
public StackMapFrame duplicate() { int length = this.locals.length; StackMapFrame result = new StackMapFrame(length); result.numberOfLocals = -1; result.numberOfDifferentLocals = -1; result.pc = this.pc; result.numberOfStackItems = this.numberOfStackItems; if (length != 0) { result.locals = new VerificationTypeInfo[length]; for (int i = 0; i < length; i++) { final VerificationTypeInfo verificationTypeInfo = this.locals[i]; if (verificationTypeInfo != null) { result.locals[i] = verificationTypeInfo.duplicate(); } } } length = this.numberOfStackItems; if (length != 0) { result.stackItems = new VerificationTypeInfo[length]; for (int i = 0; i < length; i++) { result.stackItems[i] = this.stackItems[i].duplicate(); } } return result; } public int numberOfDifferentLocals(StackMapFrame prevFrame) {
public void replaceWithElementType() { VerificationTypeInfo info = this.stackItems[this.numberOfStackItems - 1]; VerificationTypeInfo info2 = info.duplicate(); info2.replaceWithElementType(); this.stackItems[this.numberOfStackItems - 1] = info2; } public int getIndexOfDifferentLocals(int differentLocalsCount) {
this.contents[localContentsOffset++] = (byte) VerificationTypeInfo.ITEM_TOP; } else { switch(info.id()) { case T_boolean : case T_byte : break; case VerificationTypeInfo.ITEM_OBJECT : int indexForType = this.constantPool.literalIndexForType(info.constantPoolName()); this.contents[localContentsOffset++] = (byte) (indexForType >> 8); this.contents[localContentsOffset++] = (byte) indexForType; this.contents[localContentsOffset++] = (byte) VerificationTypeInfo.ITEM_TOP; } else { switch(info.id()) { case T_boolean : case T_byte : break; case VerificationTypeInfo.ITEM_OBJECT : int indexForType = this.constantPool.literalIndexForType(info.constantPoolName()); this.contents[localContentsOffset++] = (byte) (indexForType >> 8); this.contents[localContentsOffset++] = (byte) indexForType;
public VerificationTypeInfo duplicate() { final VerificationTypeInfo verificationTypeInfo = new VerificationTypeInfo(); verificationTypeInfo.id = this.id; verificationTypeInfo.tag = this.tag; verificationTypeInfo.constantPoolName = this.constantPoolName; verificationTypeInfo.offset = this.offset; return verificationTypeInfo; } public boolean equals(Object obj) {
public int getNumberOfLocals() { if (this.numberOfLocals != -1) { return this.numberOfLocals; } int result = 0; final int length = this.locals == null ? 0 : this.locals.length; for(int i = 0; i < length; i++) { if (this.locals[i] != null) { switch(this.locals[i].id()) { case TypeIds.T_double : case TypeIds.T_long : i++; } result++; } } this.numberOfLocals = result; return result; } public int getOffsetDelta(StackMapFrame prevFrame) {
private boolean equals(VerificationTypeInfo info, VerificationTypeInfo info2) { if (info == null) { return info2 == null; } if (info2 == null) return false; return info.equals(info2); } }
public boolean equals(Object obj) { if (obj instanceof VerificationTypeInfo) { VerificationTypeInfo info1 = (VerificationTypeInfo) obj; return info1.tag == this.tag && CharOperation.equals(info1.constantPoolName(), constantPoolName()); } return false; } public int hashCode() {
switch(this.tag) { case VerificationTypeInfo.ITEM_UNINITIALIZED_THIS : buffer.append("uninitialized_this(").append(readableName()).append(")"); //$NON-NLS-1$//$NON-NLS-2$ break; case VerificationTypeInfo.ITEM_UNINITIALIZED : buffer.append("uninitialized(").append(readableName()).append(")"); //$NON-NLS-1$//$NON-NLS-2$ break; case VerificationTypeInfo.ITEM_OBJECT : buffer.append(readableName()); break; case VerificationTypeInfo.ITEM_DOUBLE :