AnnotationDefaultAttribute.java :  » IDE-Eclipse » equinox » org » eclipse » equinox » p2 » internal » repository » comparator » Java Open Source

Java Open Source » IDE Eclipse » equinox 
equinox » org » eclipse » equinox » p2 » internal » repository » comparator » AnnotationDefaultAttribute.java
/*******************************************************************************
 * 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;
  }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.