/** * Constructor for SourceFileAttribute. * @param classFileBytes * @param constantPool * @param offset * @throws ClassFormatException */ public SourceFileAttribute( byte[] classFileBytes, IConstantPool constantPool, int offset) throws ClassFormatException { super(classFileBytes, constantPool, offset); this.sourceFileIndex = u2At(classFileBytes, 6, offset); IConstantPoolEntry constantPoolEntry = constantPool.decodeEntry(this.sourceFileIndex); if (constantPoolEntry.getKind() != IConstantPoolConstant.CONSTANT_Utf8) { throw new ClassFormatException(ClassFormatException.INVALID_CONSTANT_POOL_ENTRY); } this.sourceFileName = constantPoolEntry.getUtf8Value(); } /**
/** * Constructor for SourceFileAttribute. * @param classFileBytes * @param constantPool * @param offset * @throws ClassFormatException */ public SourceFileAttribute( byte[] classFileBytes, IConstantPool constantPool, int offset) throws ClassFormatException { super(classFileBytes, constantPool, offset); this.sourceFileIndex = u2At(classFileBytes, 6, offset); IConstantPoolEntry constantPoolEntry = constantPool.decodeEntry(this.sourceFileIndex); if (constantPoolEntry.getKind() != IConstantPoolConstant.CONSTANT_Utf8) { throw new ClassFormatException(ClassFormatException.INVALID_CONSTANT_POOL_ENTRY); } this.sourceFileName = constantPoolEntry.getUtf8Value(); } /**
/** * Constructor for SourceFileAttribute. * @param classFileBytes * @param constantPool * @param offset * @throws ClassFormatException */ public SourceFileAttribute( byte[] classFileBytes, IConstantPool constantPool, int offset) throws ClassFormatException { super(classFileBytes, constantPool, offset); this.sourceFileIndex = u2At(classFileBytes, 6, offset); IConstantPoolEntry constantPoolEntry = constantPool.decodeEntry(this.sourceFileIndex); if (constantPoolEntry.getKind() != IConstantPoolConstant.CONSTANT_Utf8) { throw new ClassFormatException(ClassFormatException.INVALID_CONSTANT_POOL_ENTRY); } this.sourceFileName = constantPoolEntry.getUtf8Value(); } /**
/** * Constructor for SourceFileAttribute. * @param classFileBytes * @param constantPool * @param offset * @throws ClassFormatException */ public SourceFileAttribute( byte[] classFileBytes, IConstantPool constantPool, int offset) throws ClassFormatException { super(classFileBytes, constantPool, offset); this.sourceFileIndex = u2At(classFileBytes, 6, offset); IConstantPoolEntry constantPoolEntry = constantPool.decodeEntry(this.sourceFileIndex); if (constantPoolEntry.getKind() != IConstantPoolConstant.CONSTANT_Utf8) { throw new ClassFormatException(ClassFormatException.INVALID_CONSTANT_POOL_ENTRY); } this.sourceFileName = constantPoolEntry.getUtf8Value(); } /**
/** * Constructor for SourceFileAttribute. * @param classFileBytes * @param constantPool * @param offset * @throws ClassFormatException */ public SourceFileAttribute( byte[] classFileBytes, IConstantPool constantPool, int offset) throws ClassFormatException { super(classFileBytes, constantPool, offset); this.sourceFileIndex = u2At(classFileBytes, 6, offset); IConstantPoolEntry constantPoolEntry = constantPool.decodeEntry(this.sourceFileIndex); if (constantPoolEntry.getKind() != IConstantPoolConstant.CONSTANT_Utf8) { throw new ClassFormatException(ClassFormatException.INVALID_CONSTANT_POOL_ENTRY); } this.sourceFileName = constantPoolEntry.getUtf8Value(); } /**
/** * Constructor for SourceFileAttribute. * @param classFileBytes * @param constantPool * @param offset * @throws ClassFormatException */ public SourceFileAttribute( byte[] classFileBytes, IConstantPool constantPool, int offset) throws ClassFormatException { super(classFileBytes, constantPool, offset); this.sourceFileIndex = u2At(classFileBytes, 6, offset); IConstantPoolEntry constantPoolEntry = constantPool.decodeEntry(this.sourceFileIndex); if (constantPoolEntry.getKind() != IConstantPoolConstant.CONSTANT_Utf8) { throw new ClassFormatException(ClassFormatException.INVALID_CONSTANT_POOL_ENTRY); } this.sourceFileName = constantPoolEntry.getUtf8Value(); } /**
/** * Constructor for SourceFileAttribute. * @param classFileBytes * @param constantPool * @param offset * @throws ClassFormatException */ public SourceFileAttribute( byte[] classFileBytes, IConstantPool constantPool, int offset) throws ClassFormatException { super(classFileBytes, constantPool, offset); this.sourceFileIndex = u2At(classFileBytes, 6, offset); IConstantPoolEntry constantPoolEntry = constantPool.decodeEntry(this.sourceFileIndex); if (constantPoolEntry.getKind() != IConstantPoolConstant.CONSTANT_Utf8) { throw new ClassFormatException(ClassFormatException.INVALID_CONSTANT_POOL_ENTRY); } this.sourceFileName = constantPoolEntry.getUtf8Value(); } /**