org.apache.tomcat.util.bcel.classfile
Class FieldOrMethod
java.lang.Object
org.apache.tomcat.util.bcel.classfile.AccessFlags
org.apache.tomcat.util.bcel.classfile.FieldOrMethod
- All Implemented Interfaces:
- Serializable, Cloneable
- Direct Known Subclasses:
- Field, Method
public abstract class FieldOrMethod
- extends AccessFlags
- implements Cloneable
Abstract super class for fields and methods.
- Version:
- $Id: FieldOrMethod.java 1057670 2011-01-11 14:52:05Z markt $
- Author:
- M. Dahm
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
name_index
protected int name_index
signature_index
protected int signature_index
attributes_count
protected int attributes_count
attributes
protected Attribute[] attributes
constant_pool
protected ConstantPool constant_pool
FieldOrMethod
protected FieldOrMethod(DataInputStream file,
ConstantPool constant_pool)
throws IOException,
ClassFormatException
- Construct object from file stream.
- Parameters:
file
- Input stream
- Throws:
IOException
ClassFormatException
FieldOrMethod
protected FieldOrMethod(int access_flags,
int name_index,
int signature_index,
Attribute[] attributes,
ConstantPool constant_pool)
- Parameters:
access_flags
- Access rights of methodname_index
- Points to field name in constant poolsignature_index
- Points to encoded signatureattributes
- Collection of attributesconstant_pool
- Array of constants
setAttributes
public final void setAttributes(Attribute[] attributes)
- Parameters:
attributes
- Collection of object attributes.
getName
public final String getName()
- Returns:
- Name of object, i.e., method name or field name
getSignature
public final String getSignature()
- Returns:
- String representation of object's type signature (java style)
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.