/** * Constructor for AnnotationDefaultAttribute. * @param classFileBytes * @param constantPool * @param offset * @throws ClassFormatException */ public AnnotationDefaultAttribute( byte[] classFileBytes, IConstantPool constantPool, int offset) throws ClassFormatException { super(classFileBytes, constantPool, offset); this.memberValue = new AnnotationComponentValue(classFileBytes, constantPool, offset + 6); }
this.enumConstantTypeNameIndex = -1; this.enumConstantNameIndex = -1; final int t = u1At(classFileBytes, 0, offset); this.tag = t; this.readOffset = 1; case 'Z' : case 's' : final int constantIndex = u2At(classFileBytes, this.readOffset, offset); this.constantValueIndex = constantIndex; if (constantIndex != 0) { break; case 'e' : int index = u2At(classFileBytes, this.readOffset, offset); this.enumConstantTypeNameIndex = index; if (index != 0) { index = u2At(classFileBytes, this.readOffset, offset); this.enumConstantNameIndex = index; if (index != 0) { break; case 'c' : final int classFileIndex = u2At(classFileBytes, this.readOffset, offset); this.classFileInfoIndex = classFileIndex; if (classFileIndex != 0) { break;
public AnnotationComponent( byte[] classFileBytes, IConstantPool constantPool, int offset) throws ClassFormatException { final int nameIndex = u2At(classFileBytes, 0, offset); this.componentNameIndex = nameIndex; if (nameIndex != 0) { IConstantPoolEntry constantPoolEntry = constantPool.decodeEntry(nameIndex); if (constantPoolEntry.getKind() != IConstantPoolConstant.CONSTANT_Utf8) { throw new ClassFormatException(ClassFormatException.INVALID_CONSTANT_POOL_ENTRY); } this.componentName = constantPoolEntry.getUtf8Value(); } this.readOffset = 2; AnnotationComponentValue value = new AnnotationComponentValue(classFileBytes, constantPool, offset + this.readOffset); this.componentValue = value; this.readOffset += value.sizeInBytes(); }
this.enumConstantTypeNameIndex = -1; this.enumConstantNameIndex = -1; final int t = u1At(classFileBytes, 0, offset); this.tag = t; this.readOffset = 1; case 'Z' : case 's' : final int constantIndex = u2At(classFileBytes, this.readOffset, offset); this.constantValueIndex = constantIndex; if (constantIndex != 0) { break; case 'e' : int index = u2At(classFileBytes, this.readOffset, offset); this.enumConstantTypeNameIndex = index; if (index != 0) { index = u2At(classFileBytes, this.readOffset, offset); this.enumConstantNameIndex = index; if (index != 0) { break; case 'c' : final int classFileIndex = u2At(classFileBytes, this.readOffset, offset); this.classFileInfoIndex = classFileIndex; if (classFileIndex != 0) { break;
public AnnotationComponent( byte[] classFileBytes, IConstantPool constantPool, int offset) throws ClassFormatException { final int nameIndex = u2At(classFileBytes, 0, offset); this.componentNameIndex = nameIndex; if (nameIndex != 0) { IConstantPoolEntry constantPoolEntry = constantPool.decodeEntry(nameIndex); if (constantPoolEntry.getKind() != IConstantPoolConstant.CONSTANT_Utf8) { throw new ClassFormatException(ClassFormatException.INVALID_CONSTANT_POOL_ENTRY); } this.componentName = constantPoolEntry.getUtf8Value(); } this.readOffset = 2; AnnotationComponentValue value = new AnnotationComponentValue(classFileBytes, constantPool, offset + this.readOffset); this.componentValue = value; this.readOffset += value.sizeInBytes(); }
this.enumConstantTypeNameIndex = -1; this.enumConstantNameIndex = -1; final int t = u1At(classFileBytes, 0, offset); this.tag = t; this.readOffset = 1; case 'Z' : case 's' : final int constantIndex = u2At(classFileBytes, this.readOffset, offset); this.constantValueIndex = constantIndex; if (constantIndex != 0) { break; case 'e' : int index = u2At(classFileBytes, this.readOffset, offset); this.enumConstantTypeNameIndex = index; if (index != 0) { index = u2At(classFileBytes, this.readOffset, offset); this.enumConstantNameIndex = index; if (index != 0) { break; case 'c' : final int classFileIndex = u2At(classFileBytes, this.readOffset, offset); this.classFileInfoIndex = classFileIndex; if (classFileIndex != 0) { break;
public AnnotationComponent( byte[] classFileBytes, IConstantPool constantPool, int offset) throws ClassFormatException { final int nameIndex = u2At(classFileBytes, 0, offset); this.componentNameIndex = nameIndex; if (nameIndex != 0) { IConstantPoolEntry constantPoolEntry = constantPool.decodeEntry(nameIndex); if (constantPoolEntry.getKind() != IConstantPoolConstant.CONSTANT_Utf8) { throw new ClassFormatException(ClassFormatException.INVALID_CONSTANT_POOL_ENTRY); } this.componentName = constantPoolEntry.getUtf8Value(); } this.readOffset = 2; AnnotationComponentValue value = new AnnotationComponentValue(classFileBytes, constantPool, offset + this.readOffset); this.componentValue = value; this.readOffset += value.sizeInBytes(); }
/** * Constructor for AnnotationDefaultAttribute. * @param classFileBytes * @param constantPool * @param offset * @throws ClassFormatException */ public AnnotationDefaultAttribute( byte[] classFileBytes, IConstantPool constantPool, int offset) throws ClassFormatException { super(classFileBytes, constantPool, offset); this.memberValue = new AnnotationComponentValue(classFileBytes, constantPool, offset + 6); }
this.enumConstantTypeNameIndex = -1; this.enumConstantNameIndex = -1; final int t = u1At(classFileBytes, 0, offset); this.tag = t; this.readOffset = 1; case 'Z' : case 's' : final int constantIndex = u2At(classFileBytes, this.readOffset, offset); this.constantValueIndex = constantIndex; if (constantIndex != 0) { break; case 'e' : int index = u2At(classFileBytes, this.readOffset, offset); this.enumConstantTypeNameIndex = index; if (index != 0) { index = u2At(classFileBytes, this.readOffset, offset); this.enumConstantNameIndex = index; if (index != 0) { break; case 'c' : final int classFileIndex = u2At(classFileBytes, this.readOffset, offset); this.classFileInfoIndex = classFileIndex; if (classFileIndex != 0) { break;
public AnnotationComponent( byte[] classFileBytes, IConstantPool constantPool, int offset) throws ClassFormatException { final int nameIndex = u2At(classFileBytes, 0, offset); this.componentNameIndex = nameIndex; if (nameIndex != 0) { IConstantPoolEntry constantPoolEntry = constantPool.decodeEntry(nameIndex); if (constantPoolEntry.getKind() != IConstantPoolConstant.CONSTANT_Utf8) { throw new ClassFormatException(ClassFormatException.INVALID_CONSTANT_POOL_ENTRY); } this.componentName = constantPoolEntry.getUtf8Value(); } this.readOffset = 2; AnnotationComponentValue value = new AnnotationComponentValue(classFileBytes, constantPool, offset + this.readOffset); this.componentValue = value; this.readOffset += value.sizeInBytes(); }
/** * Constructor for AnnotationDefaultAttribute. * @param classFileBytes * @param constantPool * @param offset * @throws ClassFormatException */ public AnnotationDefaultAttribute( byte[] classFileBytes, IConstantPool constantPool, int offset) throws ClassFormatException { super(classFileBytes, constantPool, offset); this.memberValue = new AnnotationComponentValue(classFileBytes, constantPool, offset + 6); }
this.enumConstantTypeNameIndex = -1; this.enumConstantNameIndex = -1; final int t = u1At(classFileBytes, 0, offset); this.tag = t; this.readOffset = 1; case 'Z' : case 's' : final int constantIndex = u2At(classFileBytes, this.readOffset, offset); this.constantValueIndex = constantIndex; if (constantIndex != 0) { break; case 'e' : int index = u2At(classFileBytes, this.readOffset, offset); this.enumConstantTypeNameIndex = index; if (index != 0) { index = u2At(classFileBytes, this.readOffset, offset); this.enumConstantNameIndex = index; if (index != 0) { break; case 'c' : final int classFileIndex = u2At(classFileBytes, this.readOffset, offset); this.classFileInfoIndex = classFileIndex; if (classFileIndex != 0) { break;
public AnnotationComponent( byte[] classFileBytes, IConstantPool constantPool, int offset) throws ClassFormatException { final int nameIndex = u2At(classFileBytes, 0, offset); this.componentNameIndex = nameIndex; if (nameIndex != 0) { IConstantPoolEntry constantPoolEntry = constantPool.decodeEntry(nameIndex); if (constantPoolEntry.getKind() != IConstantPoolConstant.CONSTANT_Utf8) { throw new ClassFormatException(ClassFormatException.INVALID_CONSTANT_POOL_ENTRY); } this.componentName = constantPoolEntry.getUtf8Value(); } this.readOffset = 2; AnnotationComponentValue value = new AnnotationComponentValue(classFileBytes, constantPool, offset + this.readOffset); this.componentValue = value; this.readOffset += value.sizeInBytes(); }
/** * Constructor for AnnotationDefaultAttribute. * @param classFileBytes * @param constantPool * @param offset * @throws ClassFormatException */ public AnnotationDefaultAttribute( byte[] classFileBytes, IConstantPool constantPool, int offset) throws ClassFormatException { super(classFileBytes, constantPool, offset); this.memberValue = new AnnotationComponentValue(classFileBytes, constantPool, offset + 6); }
this.enumConstantTypeNameIndex = -1; this.enumConstantNameIndex = -1; final int t = u1At(classFileBytes, 0, offset); this.tag = t; this.readOffset = 1; case 'Z' : case 's' : final int constantIndex = u2At(classFileBytes, this.readOffset, offset); this.constantValueIndex = constantIndex; if (constantIndex != 0) { break; case 'e' : int index = u2At(classFileBytes, this.readOffset, offset); this.enumConstantTypeNameIndex = index; if (index != 0) { index = u2At(classFileBytes, this.readOffset, offset); this.enumConstantNameIndex = index; if (index != 0) { break; case 'c' : final int classFileIndex = u2At(classFileBytes, this.readOffset, offset); this.classFileInfoIndex = classFileIndex; if (classFileIndex != 0) { break;
public AnnotationComponent( byte[] classFileBytes, IConstantPool constantPool, int offset) throws ClassFormatException { final int nameIndex = u2At(classFileBytes, 0, offset); this.componentNameIndex = nameIndex; if (nameIndex != 0) { IConstantPoolEntry constantPoolEntry = constantPool.decodeEntry(nameIndex); if (constantPoolEntry.getKind() != IConstantPoolConstant.CONSTANT_Utf8) { throw new ClassFormatException(ClassFormatException.INVALID_CONSTANT_POOL_ENTRY); } this.componentName = constantPoolEntry.getUtf8Value(); } this.readOffset = 2; AnnotationComponentValue value = new AnnotationComponentValue(classFileBytes, constantPool, offset + this.readOffset); this.componentValue = value; this.readOffset += value.sizeInBytes(); }
/** * Constructor for AnnotationDefaultAttribute. * @param classFileBytes * @param constantPool * @param offset * @throws ClassFormatException */ public AnnotationDefaultAttribute( byte[] classFileBytes, IConstantPool constantPool, int offset) throws ClassFormatException { super(classFileBytes, constantPool, offset); this.memberValue = new AnnotationComponentValue(classFileBytes, constantPool, offset + 6); }
this.enumConstantTypeNameIndex = -1; this.enumConstantNameIndex = -1; final int t = u1At(classFileBytes, 0, offset); this.tag = t; this.readOffset = 1; case 'Z' : case 's' : final int constantIndex = u2At(classFileBytes, this.readOffset, offset); this.constantValueIndex = constantIndex; if (constantIndex != 0) { break; case 'e' : int index = u2At(classFileBytes, this.readOffset, offset); this.enumConstantTypeNameIndex = index; if (index != 0) { index = u2At(classFileBytes, this.readOffset, offset); this.enumConstantNameIndex = index; if (index != 0) { break; case 'c' : final int classFileIndex = u2At(classFileBytes, this.readOffset, offset); this.classFileInfoIndex = classFileIndex; if (classFileIndex != 0) { break;
public AnnotationComponent( byte[] classFileBytes, IConstantPool constantPool, int offset) throws ClassFormatException { final int nameIndex = u2At(classFileBytes, 0, offset); this.componentNameIndex = nameIndex; if (nameIndex != 0) { IConstantPoolEntry constantPoolEntry = constantPool.decodeEntry(nameIndex); if (constantPoolEntry.getKind() != IConstantPoolConstant.CONSTANT_Utf8) { throw new ClassFormatException(ClassFormatException.INVALID_CONSTANT_POOL_ENTRY); } this.componentName = constantPoolEntry.getUtf8Value(); } this.readOffset = 2; AnnotationComponentValue value = new AnnotationComponentValue(classFileBytes, constantPool, offset + this.readOffset); this.componentValue = value; this.readOffset += value.sizeInBytes(); }
/** * Constructor for AnnotationDefaultAttribute. * @param classFileBytes * @param constantPool * @param offset * @throws ClassFormatException */ public AnnotationDefaultAttribute( byte[] classFileBytes, IConstantPool constantPool, int offset) throws ClassFormatException { super(classFileBytes, constantPool, offset); this.memberValue = new AnnotationComponentValue(classFileBytes, constantPool, offset + 6); }