< prev index next >

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

Print this page




  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.IOException;
  26 
  27 import com.sun.org.apache.bcel.internal.Const;
  28 
  29 /**
  30  * This class represents a constant pool reference to a method.
  31  *
  32  * @version $Id$
  33  */
  34 public final class ConstantMethodref extends ConstantCP {
  35 
  36     /**
  37      * Initialize from another object.
  38      */
  39     public ConstantMethodref(final ConstantMethodref c) {
  40         super(Const.CONSTANT_Methodref, c.getClassIndex(), c.getNameAndTypeIndex());
  41     }
  42 
  43 
  44     /**
  45      * Initialize instance from input data.
  46      *
  47      * @param input input stream
  48      * @throws IOException
  49      */
  50     ConstantMethodref(final DataInput input) throws IOException {
  51         super(Const.CONSTANT_Methodref, input);
  52     }




  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.IOException;
  26 
  27 import com.sun.org.apache.bcel.internal.Const;
  28 
  29 /**
  30  * This class represents a constant pool reference to a method.
  31  *

  32  */
  33 public final class ConstantMethodref extends ConstantCP {
  34 
  35     /**
  36      * Initialize from another object.
  37      */
  38     public ConstantMethodref(final ConstantMethodref c) {
  39         super(Const.CONSTANT_Methodref, c.getClassIndex(), c.getNameAndTypeIndex());
  40     }
  41 
  42 
  43     /**
  44      * Initialize instance from input data.
  45      *
  46      * @param input input stream
  47      * @throws IOException
  48      */
  49     ConstantMethodref(final DataInput input) throws IOException {
  50         super(Const.CONSTANT_Methodref, input);
  51     }


< prev index next >