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.

RuntimeVisibleAnnotations.java 1.3KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. package org.aspectj.apache.bcel.classfile.annotation;
  2. import java.io.DataInputStream;
  3. import java.io.DataOutputStream;
  4. import java.io.IOException;
  5. import org.aspectj.apache.bcel.Constants;
  6. import org.aspectj.apache.bcel.classfile.Attribute;
  7. import org.aspectj.apache.bcel.classfile.ConstantPool;
  8. import org.aspectj.apache.bcel.classfile.Visitor;
  9. public class RuntimeVisibleAnnotations extends RuntimeAnnotations {
  10. public RuntimeVisibleAnnotations(int nameIdx, int len, ConstantPool cpool) {
  11. super(Constants.ATTR_RUNTIME_VISIBLE_ANNOTATIONS, true, nameIdx, len, cpool);
  12. }
  13. public RuntimeVisibleAnnotations(int nameIdx, int len,
  14. DataInputStream dis,ConstantPool cpool) throws IOException {
  15. this(nameIdx, len, cpool);
  16. readAnnotations(dis,cpool);
  17. }
  18. public RuntimeVisibleAnnotations(int nameIndex, int len, byte[] rvaData,ConstantPool cpool) {
  19. super(Constants.ATTR_RUNTIME_VISIBLE_ANNOTATIONS,true,nameIndex,len,rvaData,cpool);
  20. }
  21. public void accept(Visitor v) {
  22. v.visitRuntimeVisibleAnnotations(this);
  23. }
  24. public final void dump(DataOutputStream dos) throws IOException {
  25. super.dump(dos);
  26. writeAnnotations(dos);
  27. }
  28. public Attribute copy(ConstantPool constant_pool) {
  29. throw new RuntimeException("Not implemented yet!");
  30. }
  31. }