FieldOrMethod.java revision 286
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * reserved comment block
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * DO NOT REMOVE OR ALTER!
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedypackage com.sun.org.apache.bcel.internal.classfile;
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy/* ====================================================================
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * The Apache Software License, Version 1.1
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * Copyright (c) 2001 The Apache Software Foundation. All rights
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * Redistribution and use in source and binary forms, with or without
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * modification, are permitted provided that the following conditions
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * 1. Redistributions of source code must retain the above copyright
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * notice, this list of conditions and the following disclaimer.
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * 2. Redistributions in binary form must reproduce the above copyright
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * notice, this list of conditions and the following disclaimer in
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * the documentation and/or other materials provided with the
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * distribution.
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * 3. The end-user documentation included with the redistribution,
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * if any, must include the following acknowledgment:
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * "This product includes software developed by the
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * Apache Software Foundation (http://www.apache.org/)."
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * Alternately, this acknowledgment may appear in the software itself,
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * if and wherever such third-party acknowledgments normally appear.
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * 4. The names "Apache" and "Apache Software Foundation" and
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * "Apache BCEL" must not be used to endorse or promote products
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * derived from this software without prior written permission. For
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * written permission, please contact apache@apache.org.
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * 5. Products derived from this software may not be called "Apache",
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * "Apache BCEL", nor may "Apache" appear in their name, without
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * prior written permission of the Apache Software Foundation.
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * SUCH DAMAGE.
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * ====================================================================
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * This software consists of voluntary contributions made by many
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * individuals on behalf of the Apache Software Foundation. For more
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * information on the Apache Software Foundation, please see
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedyimport com.sun.org.apache.bcel.internal.Constants;
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * Abstract super class for fields and methods.
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy * @author <A HREF="mailto:markus.dahm@berlin.de">M. Dahm</A>
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedypublic abstract class FieldOrMethod extends AccessFlags implements Cloneable, Node {
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy protected int name_index; // Points to field name in constant pool
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy protected int signature_index; // Points to encoded signature
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy protected int attributes_count;// No. of attributes
d583b39bfb4e2571d3e41097c5c357ffe353ad45John Wren Kennedy protected Attribute[] attributes; // Collection of attributes
FieldOrMethod() {}
ConstantUtf8 c;
return c.getBytes();
ConstantUtf8 c;
return c.getBytes();
} catch(CloneNotSupportedException e) {}