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 * @since 6.0 35 */ 36 public class RuntimeInvisibleAnnotations extends Annotations 37 { 38 /** 39 * @param name_index 40 * Index pointing to the name <em>Code</em> 41 * @param length 42 * Content length in bytes 43 * @param input 44 * Input stream 45 * @param constant_pool 46 * Array of constants 47 */ RuntimeInvisibleAnnotations(final int name_index, final int length, final DataInput input, final ConstantPool constant_pool)48 public RuntimeInvisibleAnnotations(final int name_index, final int length, final DataInput input, final ConstantPool constant_pool) 49 throws IOException 50 { 51 super(Const.ATTR_RUNTIME_INVISIBLE_ANNOTATIONS, name_index, length, input, constant_pool, false); 52 } 53 54 /** 55 * @return deep copy of this attribute 56 */ 57 @Override copy(final ConstantPool constant_pool)58 public Attribute copy(final ConstantPool constant_pool) 59 { 60 return (Attribute) clone(); 61 } 62 63 @Override dump(final DataOutputStream dos)64 public final void dump(final DataOutputStream dos) throws IOException 65 { 66 super.dump(dos); 67 writeAnnotations(dos); 68 } 69 } 70