1 /* 2 * reserved comment block 3 * DO NOT REMOVE OR ALTER! 4 */ 5 /* 6 * Licensed to the Apache Software Foundation (ASF) under one or more 7 * contributor license agreements. See the NOTICE file distributed with 8 * this work for additional information regarding copyright ownership. 9 * The ASF licenses this file to You under the Apache License, Version 2.0 10 * (the "License"); you may not use this file except in compliance with 11 * the License. You may obtain a copy of the License at 12 * 13 * http://www.apache.org/licenses/LICENSE-2.0 14 * 15 * Unless required by applicable law or agreed to in writing, software 16 * distributed under the License is distributed on an "AS IS" BASIS, 17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 * See the License for the specific language governing permissions and 19 * limitations under the License. 20 */ 21 22 package com.sun.org.apache.bcel.internal.classfile; 23 24 import java.io.DataInput; 25 import java.io.DataOutputStream; 26 import java.io.IOException; 27 28 import com.sun.org.apache.bcel.internal.Const; 29 30 /** 31 * represents an annotation that is represented in the class file but is not 32 * provided to the JVM. 33 * 34 * @version $Id: RuntimeInvisibleAnnotations 35 * @since 6.0 36 */ 37 public class RuntimeInvisibleAnnotations extends Annotations 38 { 39 /** 40 * @param name_index 41 * Index pointing to the name <em>Code</em> 42 * @param length 43 * Content length in bytes 44 * @param input 45 * Input stream 46 * @param constant_pool 47 * Array of constants 48 */ 49 public RuntimeInvisibleAnnotations(final int name_index, final int length, final DataInput input, final ConstantPool constant_pool) 50 throws IOException 51 { 52 super(Const.ATTR_RUNTIME_INVISIBLE_ANNOTATIONS, name_index, length, input, constant_pool, false); 53 } 54 55 /** 56 * @return deep copy of this attribute 57 */ 58 @Override 59 public Attribute copy(final ConstantPool constant_pool) 60 { 61 return (Attribute) clone(); 62 } 63 64 @Override 65 public final void dump(final DataOutputStream dos) throws IOException 66 { 67 super.dump(dos); 68 writeAnnotations(dos); 69 } 70 }