private String returnConstantClassName(IConstantPoolEntry constantClass) { char[] className = constantClass.getClassInfoName(); if (className.length == 0) { return EMPTY_CLASS_NAME; } switch(className[0]) { case '[' : StringBuffer classNameBuffer = new StringBuffer(); Util.appendTypeSignature(className, 0, classNameBuffer, isCompact()); return classNameBuffer.toString(); default: return returnClassName(className); } } private String returnClassName(char[] classInfoName) {
private String returnConstantClassName(IConstantPoolEntry constantClass) { char[] className = constantClass.getClassInfoName(); if (className.length == 0) { return EMPTY_CLASS_NAME; } switch(className[0]) { case '[' : StringBuffer classNameBuffer = new StringBuffer(); Util.appendTypeSignature(className, 0, classNameBuffer, isCompact()); return classNameBuffer.toString(); default: return returnClassName(className); } } private String returnClassName(char[] classInfoName) {
private String returnConstantClassName(IConstantPoolEntry constantClass) { char[] className = constantClass.getClassInfoName(); if (className.length == 0) { return EMPTY_CLASS_NAME; } switch(className[0]) { case '[' : StringBuffer classNameBuffer = new StringBuffer(); Util.appendTypeSignature(className, 0, classNameBuffer, isCompact()); return classNameBuffer.toString(); default: return returnClassName(className); } } private String returnClassName(char[] classInfoName) {
private String returnConstantClassName(IConstantPoolEntry constantClass) { char[] className = constantClass.getClassInfoName(); if (className.length == 0) { return EMPTY_CLASS_NAME; } switch(className[0]) { case '[' : StringBuffer classNameBuffer = new StringBuffer(); Util.appendTypeSignature(className, 0, classNameBuffer, isCompact()); return classNameBuffer.toString(); default: return returnClassName(className); } } private String returnClassName(char[] classInfoName) {
private String returnConstantClassName(IConstantPoolEntry constantClass) { char[] className = constantClass.getClassInfoName(); if (className.length == 0) { return EMPTY_CLASS_NAME; } switch(className[0]) { case '[' : StringBuffer classNameBuffer = new StringBuffer(); Util.appendTypeSignature(className, 0, classNameBuffer, isCompact()); return classNameBuffer.toString(); default: return returnClassName(className); } } private String returnClassName(char[] classInfoName) {
private String returnConstantClassName(IConstantPoolEntry constantClass) { char[] className = constantClass.getClassInfoName(); if (className.length == 0) { return EMPTY_CLASS_NAME; } switch(className[0]) { case '[' : StringBuffer classNameBuffer = new StringBuffer(); Util.appendTypeSignature(className, 0, classNameBuffer, isCompact()); return classNameBuffer.toString(); default: return returnClassName(className); } } private String returnClassName(char[] classInfoName) {
private String returnConstantClassName(IConstantPoolEntry constantClass) { char[] className = constantClass.getClassInfoName(); if (className.length == 0) { return EMPTY_CLASS_NAME; } switch(className[0]) { case '[' : StringBuffer classNameBuffer = new StringBuffer(); Util.appendTypeSignature(className, 0, classNameBuffer, isCompact()); return classNameBuffer.toString(); default: return returnClassName(className); } } private String returnClassName(char[] classInfoName) {
public NestHostAttribute(byte[] classFileBytes, IConstantPool constantPool, int offset) throws ClassFormatException { super(classFileBytes, constantPool, offset); int index = u2At(classFileBytes, 6, offset); this.hostIndex = index; IConstantPoolEntry constantPoolEntry = constantPool.decodeEntry(index); if (constantPoolEntry.getKind() != IConstantPoolConstant.CONSTANT_Class) { throw new ClassFormatException(ClassFormatException.INVALID_CONSTANT_POOL_ENTRY); } this.hostName = constantPoolEntry.getClassInfoName(); }
public NestMembersAttributeEntry(byte[] classFileBytes, IConstantPool constantPool, int offset) throws ClassFormatException { this.memberClassNameIndex = u2At(classFileBytes, 0, offset); if (this.memberClassNameIndex != 0) { IConstantPoolEntry constantPoolEntry; constantPoolEntry = constantPool.decodeEntry(this.memberClassNameIndex); if (constantPoolEntry.getKind() != IConstantPoolConstant.CONSTANT_Class) { throw new ClassFormatException(ClassFormatException.INVALID_CONSTANT_POOL_ENTRY); } this.memberClassName = constantPoolEntry.getClassInfoName(); } }
/** * Constructor for ModuleMainClassAttribute. * @param classFileBytes * @param constantPool * @param offset * @throws ClassFormatException */ public ModuleMainClassAttribute( byte[] classFileBytes, IConstantPool constantPool, int offset) throws ClassFormatException { super(classFileBytes, constantPool, offset); int readOffset = 6; this.mainClassIndex = u2At(classFileBytes, readOffset, offset); IConstantPoolEntry constantPoolEntry = constantPool.decodeEntry(this.mainClassIndex); if (constantPoolEntry.getKind() != IConstantPoolConstant.CONSTANT_Class) { throw new ClassFormatException(ClassFormatException.INVALID_CONSTANT_POOL_ENTRY); } this.mainClassName = constantPoolEntry.getClassInfoName(); }
/** * Constructor for ModuleMainClassAttribute. * @param classFileBytes * @param constantPool * @param offset * @throws ClassFormatException */ public ModuleMainClassAttribute( byte[] classFileBytes, IConstantPool constantPool, int offset) throws ClassFormatException { super(classFileBytes, constantPool, offset); int readOffset = 6; this.mainClassIndex = u2At(classFileBytes, readOffset, offset); IConstantPoolEntry constantPoolEntry = constantPool.decodeEntry(this.mainClassIndex); if (constantPoolEntry.getKind() != IConstantPoolConstant.CONSTANT_Class) { throw new ClassFormatException(ClassFormatException.INVALID_CONSTANT_POOL_ENTRY); } this.mainClassName = constantPoolEntry.getClassInfoName(); }
ExceptionAttribute(byte[] classFileBytes, IConstantPool constantPool, int offset) throws ClassFormatException { super(classFileBytes, constantPool, offset); this.exceptionsNumber = u2At(classFileBytes, 6, offset); int exceptionLength = this.exceptionsNumber; this.exceptionNames = CharOperation.NO_CHAR_CHAR; this.exceptionIndexes = org.eclipse.jdt.internal.compiler.util.Util.EMPTY_INT_ARRAY; if (exceptionLength != 0) { this.exceptionNames = new char[exceptionLength][]; this.exceptionIndexes = new int[exceptionLength]; } int readOffset = 8; IConstantPoolEntry constantPoolEntry; for (int i = 0; i < exceptionLength; i++) { this.exceptionIndexes[i] = u2At(classFileBytes, readOffset, offset); constantPoolEntry = constantPool.decodeEntry(this.exceptionIndexes[i]); if (constantPoolEntry.getKind() != IConstantPoolConstant.CONSTANT_Class) { throw new ClassFormatException(ClassFormatException.INVALID_CONSTANT_POOL_ENTRY); } this.exceptionNames[i] = constantPoolEntry.getClassInfoName(); readOffset += 2; } }
ExceptionAttribute(byte[] classFileBytes, IConstantPool constantPool, int offset) throws ClassFormatException { super(classFileBytes, constantPool, offset); this.exceptionsNumber = u2At(classFileBytes, 6, offset); int exceptionLength = this.exceptionsNumber; this.exceptionNames = CharOperation.NO_CHAR_CHAR; this.exceptionIndexes = org.eclipse.jdt.internal.compiler.util.Util.EMPTY_INT_ARRAY; if (exceptionLength != 0) { this.exceptionNames = new char[exceptionLength][]; this.exceptionIndexes = new int[exceptionLength]; } int readOffset = 8; IConstantPoolEntry constantPoolEntry; for (int i = 0; i < exceptionLength; i++) { this.exceptionIndexes[i] = u2At(classFileBytes, readOffset, offset); constantPoolEntry = constantPool.decodeEntry(this.exceptionIndexes[i]); if (constantPoolEntry.getKind() != IConstantPoolConstant.CONSTANT_Class) { throw new ClassFormatException(ClassFormatException.INVALID_CONSTANT_POOL_ENTRY); } this.exceptionNames[i] = constantPoolEntry.getClassInfoName(); readOffset += 2; } }
ExceptionTableEntry(byte[] classFileBytes, IConstantPool constantPool, int offset) throws ClassFormatException { this.startPC = u2At(classFileBytes, 0, offset); this.endPC = u2At(classFileBytes, 2, offset); this.handlerPC = u2At(classFileBytes, 4, offset); this.catchTypeIndex = u2At(classFileBytes, 6, offset); if (this.catchTypeIndex != 0) { IConstantPoolEntry constantPoolEntry = constantPool.decodeEntry(this.catchTypeIndex); if (constantPoolEntry.getKind() != IConstantPoolConstant.CONSTANT_Class) { throw new ClassFormatException(ClassFormatException.INVALID_CONSTANT_POOL_ENTRY); } this.catchType = constantPoolEntry.getClassInfoName(); } } /**
ExceptionTableEntry(byte[] classFileBytes, IConstantPool constantPool, int offset) throws ClassFormatException { this.startPC = u2At(classFileBytes, 0, offset); this.endPC = u2At(classFileBytes, 2, offset); this.handlerPC = u2At(classFileBytes, 4, offset); this.catchTypeIndex = u2At(classFileBytes, 6, offset); if (this.catchTypeIndex != 0) { IConstantPoolEntry constantPoolEntry = constantPool.decodeEntry(this.catchTypeIndex); if (constantPoolEntry.getKind() != IConstantPoolConstant.CONSTANT_Class) { throw new ClassFormatException(ClassFormatException.INVALID_CONSTANT_POOL_ENTRY); } this.catchType = constantPoolEntry.getClassInfoName(); } } /**
ExceptionTableEntry(byte[] classFileBytes, IConstantPool constantPool, int offset) throws ClassFormatException { this.startPC = u2At(classFileBytes, 0, offset); this.endPC = u2At(classFileBytes, 2, offset); this.handlerPC = u2At(classFileBytes, 4, offset); this.catchTypeIndex = u2At(classFileBytes, 6, offset); if (this.catchTypeIndex != 0) { IConstantPoolEntry constantPoolEntry = constantPool.decodeEntry(this.catchTypeIndex); if (constantPoolEntry.getKind() != IConstantPoolConstant.CONSTANT_Class) { throw new ClassFormatException(ClassFormatException.INVALID_CONSTANT_POOL_ENTRY); } this.catchType = constantPoolEntry.getClassInfoName(); } } /**
ExceptionTableEntry(byte[] classFileBytes, IConstantPool constantPool, int offset) throws ClassFormatException { this.startPC = u2At(classFileBytes, 0, offset); this.endPC = u2At(classFileBytes, 2, offset); this.handlerPC = u2At(classFileBytes, 4, offset); this.catchTypeIndex = u2At(classFileBytes, 6, offset); if (this.catchTypeIndex != 0) { IConstantPoolEntry constantPoolEntry = constantPool.decodeEntry(this.catchTypeIndex); if (constantPoolEntry.getKind() != IConstantPoolConstant.CONSTANT_Class) { throw new ClassFormatException(ClassFormatException.INVALID_CONSTANT_POOL_ENTRY); } this.catchType = constantPoolEntry.getClassInfoName(); } } /**
ExceptionTableEntry(byte[] classFileBytes, IConstantPool constantPool, int offset) throws ClassFormatException { this.startPC = u2At(classFileBytes, 0, offset); this.endPC = u2At(classFileBytes, 2, offset); this.handlerPC = u2At(classFileBytes, 4, offset); this.catchTypeIndex = u2At(classFileBytes, 6, offset); if (this.catchTypeIndex != 0) { IConstantPoolEntry constantPoolEntry = constantPool.decodeEntry(this.catchTypeIndex); if (constantPoolEntry.getKind() != IConstantPoolConstant.CONSTANT_Class) { throw new ClassFormatException(ClassFormatException.INVALID_CONSTANT_POOL_ENTRY); } this.catchType = constantPoolEntry.getClassInfoName(); } } /**
ExceptionTableEntry(byte[] classFileBytes, IConstantPool constantPool, int offset) throws ClassFormatException { this.startPC = u2At(classFileBytes, 0, offset); this.endPC = u2At(classFileBytes, 2, offset); this.handlerPC = u2At(classFileBytes, 4, offset); this.catchTypeIndex = u2At(classFileBytes, 6, offset); if (this.catchTypeIndex != 0) { IConstantPoolEntry constantPoolEntry = constantPool.decodeEntry(this.catchTypeIndex); if (constantPoolEntry.getKind() != IConstantPoolConstant.CONSTANT_Class) { throw new ClassFormatException(ClassFormatException.INVALID_CONSTANT_POOL_ENTRY); } this.catchType = constantPoolEntry.getClassInfoName(); } } /**
ExceptionTableEntry(byte[] classFileBytes, IConstantPool constantPool, int offset) throws ClassFormatException { this.startPC = u2At(classFileBytes, 0, offset); this.endPC = u2At(classFileBytes, 2, offset); this.handlerPC = u2At(classFileBytes, 4, offset); this.catchTypeIndex = u2At(classFileBytes, 6, offset); if (this.catchTypeIndex != 0) { IConstantPoolEntry constantPoolEntry = constantPool.decodeEntry(this.catchTypeIndex); if (constantPoolEntry.getKind() != IConstantPoolConstant.CONSTANT_Class) { throw new ClassFormatException(ClassFormatException.INVALID_CONSTANT_POOL_ENTRY); } this.catchType = constantPoolEntry.getClassInfoName(); } } /**