< prev index next >

src/java.xml/share/classes/com/sun/org/apache/bcel/internal/classfile/AnnotationEntry.java

Print this page




  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 import java.util.ArrayList;
  28 import java.util.Collections;
  29 import java.util.List;
  30 
  31 import com.sun.org.apache.bcel.internal.Const;
  32 
  33 /**
  34  * represents one annotation in the annotation table
  35  *
  36  * @version $Id: AnnotationEntry
  37  * @since 6.0
  38  */
  39 public class AnnotationEntry implements Node {
  40 
  41     private final int type_index;
  42     private final ConstantPool constant_pool;
  43     private final boolean isRuntimeVisible;
  44 
  45     private List<ElementValuePair> element_value_pairs;
  46 
  47     /*
  48      * Factory method to create an AnnotionEntry from a DataInput
  49      *
  50      * @param input
  51      * @param constant_pool
  52      * @param isRuntimeVisible
  53      * @return the entry
  54      * @throws IOException
  55      */
  56     public static AnnotationEntry read(final DataInput input, final ConstantPool constant_pool, final boolean isRuntimeVisible) throws IOException {




  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 import java.util.ArrayList;
  28 import java.util.Collections;
  29 import java.util.List;
  30 
  31 import com.sun.org.apache.bcel.internal.Const;
  32 
  33 /**
  34  * represents one annotation in the annotation table
  35  *

  36  * @since 6.0
  37  */
  38 public class AnnotationEntry implements Node {
  39 
  40     private final int type_index;
  41     private final ConstantPool constant_pool;
  42     private final boolean isRuntimeVisible;
  43 
  44     private List<ElementValuePair> element_value_pairs;
  45 
  46     /*
  47      * Factory method to create an AnnotionEntry from a DataInput
  48      *
  49      * @param input
  50      * @param constant_pool
  51      * @param isRuntimeVisible
  52      * @return the entry
  53      * @throws IOException
  54      */
  55     public static AnnotationEntry read(final DataInput input, final ConstantPool constant_pool, final boolean isRuntimeVisible) throws IOException {


< prev index next >