1 /* 2 * Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved. 3 */ 4 /* 5 * Licensed to the Apache Software Foundation (ASF) under one or more 6 * contributor license agreements. See the NOTICE file distributed with 7 * this work for additional information regarding copyright ownership. 8 * The ASF licenses this file to You under the Apache License, Version 2.0 9 * (the "License"); you may not use this file except in compliance with 10 * the License. You may obtain a copy of the License at 11 * 12 * http://www.apache.org/licenses/LICENSE-2.0 13 * 14 * Unless required by applicable law or agreed to in writing, software 15 * distributed under the License is distributed on an "AS IS" BASIS, 16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 * See the License for the specific language governing permissions and 18 * limitations under the License. 19 */ 20 package com.sun.org.apache.bcel.internal.generic; 21 22 import java.util.ArrayList; 23 import java.util.List; 24 25 import com.sun.org.apache.bcel.internal.Const; 26 import com.sun.org.apache.bcel.internal.classfile.AccessFlags; 27 import com.sun.org.apache.bcel.internal.classfile.Attribute; 28 29 /** 30 * Super class for FieldGen and MethodGen objects, since they have 31 * some methods in common! 32 * 33 * @version $Id$ 34 * @LastModified: Jun 2019 35 */ 36 public abstract class FieldGenOrMethodGen extends AccessFlags implements NamedAndTyped, Cloneable { 37 38 private String name; 39 private Type type; 40 private ConstantPoolGen cp; 41 42 private final List<Attribute> attribute_vec = new ArrayList<>(); 43 44 // @since 6.0 45 private final List<AnnotationEntryGen> annotation_vec= new ArrayList<>(); 46 47 48 protected FieldGenOrMethodGen() { 49 } 50 51 52 /** 53 * @since 6.0 54 */ | 1 /* 2 * Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved. 3 */ 4 /* 5 * Licensed to the Apache Software Foundation (ASF) under one or more 6 * contributor license agreements. See the NOTICE file distributed with 7 * this work for additional information regarding copyright ownership. 8 * The ASF licenses this file to You under the Apache License, Version 2.0 9 * (the "License"); you may not use this file except in compliance with 10 * the License. You may obtain a copy of the License at 11 * 12 * http://www.apache.org/licenses/LICENSE-2.0 13 * 14 * Unless required by applicable law or agreed to in writing, software 15 * distributed under the License is distributed on an "AS IS" BASIS, 16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 17 * See the License for the specific language governing permissions and 18 * limitations under the License. 19 */ 20 package com.sun.org.apache.bcel.internal.generic; 21 22 import java.util.ArrayList; 23 import java.util.List; 24 25 import com.sun.org.apache.bcel.internal.Const; 26 import com.sun.org.apache.bcel.internal.classfile.AccessFlags; 27 import com.sun.org.apache.bcel.internal.classfile.Attribute; 28 29 /** 30 * Super class for FieldGen and MethodGen objects, since they have 31 * some methods in common! 32 * 33 * @LastModified: Jun 2020 34 */ 35 public abstract class FieldGenOrMethodGen extends AccessFlags implements NamedAndTyped, Cloneable { 36 37 private String name; 38 private Type type; 39 private ConstantPoolGen cp; 40 41 private final List<Attribute> attribute_vec = new ArrayList<>(); 42 43 // @since 6.0 44 private final List<AnnotationEntryGen> annotation_vec= new ArrayList<>(); 45 46 47 protected FieldGenOrMethodGen() { 48 } 49 50 51 /** 52 * @since 6.0 53 */ |