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.

RuntimeVisParamAnnos.java 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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.IOException;
  15. import org.aspectj.apache.bcel.Constants;
  16. import org.aspectj.apache.bcel.classfile.Attribute;
  17. import org.aspectj.apache.bcel.classfile.ClassVisitor;
  18. import org.aspectj.apache.bcel.classfile.ConstantPool;
  19. public class RuntimeVisParamAnnos extends RuntimeParamAnnos {
  20. public RuntimeVisParamAnnos(int nameIdx, int len, ConstantPool cpool) {
  21. super(Constants.ATTR_RUNTIME_VISIBLE_PARAMETER_ANNOTATIONS, true, nameIdx, len, cpool);
  22. }
  23. public RuntimeVisParamAnnos(int nameIndex, int len, byte[] rvaData,ConstantPool cpool) {
  24. super(Constants.ATTR_RUNTIME_VISIBLE_PARAMETER_ANNOTATIONS,true,nameIndex,len,rvaData,cpool);
  25. }
  26. public RuntimeVisParamAnnos(int nameIdx, int len,
  27. DataInputStream dis,ConstantPool cpool) throws IOException {
  28. this(nameIdx, len, cpool);
  29. readParameterAnnotations(dis,cpool);
  30. }
  31. public void accept(ClassVisitor v) {
  32. v.visitRuntimeVisibleParameterAnnotations(this);
  33. }
  34. public Attribute copy(ConstantPool constant_pool) {
  35. throw new RuntimeException("Not implemented yet!");
  36. }
  37. }