You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

RuntimeVisAnnos.java 1.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /* *******************************************************************
  2. * Copyright (c) 2004 IBM
  3. * All rights reserved.
  4. * This program and the accompanying materials are made available
  5. * under the terms of the Eclipse Public License v1.0
  6. * which accompanies this distribution and is available at
  7. * http://www.eclipse.org/legal/epl-v10.html
  8. *
  9. * Contributors:
  10. * Andy Clement - initial implementation {date}
  11. * ******************************************************************/
  12. package org.aspectj.apache.bcel.classfile.annotation;
  13. import java.io.DataInputStream;
  14. import java.io.DataOutputStream;
  15. import java.io.IOException;
  16. import org.aspectj.apache.bcel.Constants;
  17. import org.aspectj.apache.bcel.classfile.Attribute;
  18. import org.aspectj.apache.bcel.classfile.ClassVisitor;
  19. import org.aspectj.apache.bcel.classfile.ConstantPool;
  20. public class RuntimeVisAnnos extends RuntimeAnnos {
  21. public RuntimeVisAnnos(int nameIdx, int len, ConstantPool cpool) {
  22. super(Constants.ATTR_RUNTIME_VISIBLE_ANNOTATIONS, true, nameIdx, len, cpool);
  23. }
  24. public RuntimeVisAnnos(int nameIdx, int len,
  25. DataInputStream dis,ConstantPool cpool) throws IOException {
  26. this(nameIdx, len, cpool);
  27. readAnnotations(dis,cpool);
  28. }
  29. public RuntimeVisAnnos(int nameIndex, int len, byte[] rvaData,ConstantPool cpool) {
  30. super(Constants.ATTR_RUNTIME_VISIBLE_ANNOTATIONS,true,nameIndex,len,rvaData,cpool);
  31. }
  32. public void accept(ClassVisitor v) {
  33. v.visitRuntimeVisibleAnnotations(this);
  34. }
  35. public final void dump(DataOutputStream dos) throws IOException {
  36. super.dump(dos);
  37. writeAnnotations(dos);
  38. }
  39. public Attribute copy(ConstantPool constant_pool) {
  40. throw new RuntimeException("Not implemented yet!");
  41. }
  42. }