blob: a52692c20afa29e8b3cad17fd9eca23cfdc581d3 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2009 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.equinox.p2.internal.repository.comparator;
public class AnnotationDefaultAttribute extends ClassFileAttribute {
private AnnotationComponentValue memberValue;
/**
* Constructor for AnnotationDefaultAttribute.
* @param classFileBytes
* @param constantPool
* @param offset
* @throws ClassFormatException
*/
public AnnotationDefaultAttribute(byte[] classFileBytes, ConstantPool constantPool, int offset) throws ClassFormatException {
super(classFileBytes, constantPool, offset);
this.memberValue = new AnnotationComponentValue(classFileBytes, constantPool, offset + 6);
}
/* (non-Javadoc)
* @see org.eclipse.jdt.core.util.IAnnotationDefaultAttribute#getMemberValue()
*/
public AnnotationComponentValue getMemberValue() {
return this.memberValue;
}
}