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.

RuntimeVisTypeAnnos.java 1.3KB

123456789101112131415161718192021222324252627282930313233343536
  1. /* *******************************************************************
  2. * Copyright (c) 2013 VMware
  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.ClassVisitor;
  17. import org.aspectj.apache.bcel.classfile.ConstantPool;
  18. public class RuntimeVisTypeAnnos extends RuntimeTypeAnnos {
  19. public RuntimeVisTypeAnnos(int nameIdx, int len, DataInputStream dis,ConstantPool cpool) throws IOException {
  20. this(nameIdx, len, cpool);
  21. readTypeAnnotations(dis,cpool);
  22. }
  23. public RuntimeVisTypeAnnos(int nameIdx, int len, ConstantPool cpool) {
  24. super(Constants.ATTR_RUNTIME_VISIBLE_TYPE_ANNOTATIONS, true, nameIdx, len, cpool);
  25. }
  26. public void accept(ClassVisitor v) {
  27. v.visitRuntimeVisibleTypeAnnotations(this);
  28. }
  29. }