Main Page   Packages   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

FieldGenOrMethodGen Class Reference

Inheritance diagram for FieldGenOrMethodGen:
[legend]
Collaboration diagram for FieldGenOrMethodGen:
[legend]
List of all members.

Public Methods

void addAttribute (Attribute a)
Object clone ()
Attribute[] getAttributes ()
ConstantPoolGen getConstantPool ()
String getName ()
abstract String getSignature ()
Type getType ()
void removeAttribute (Attribute a)
void setConstantPool (ConstantPoolGen cp)
void setName (String name)
void setType (Type type)

Protected Methods

 FieldGenOrMethodGen ()

Protected Attributes

String name
Type type
ConstantPoolGen cp

Private Attributes

Vector attribute_vec = new Vector()

Detailed Description

Super class for FieldGen and MethodGen objects, since they have some methods in common!

Version:
Id:
FieldGenOrMethodGen.java,v 1.1.1.1 2002/01/24 03:41:39 pserver Exp
Author:
M. Dahm

Definition at line 13 of file FieldGenOrMethodGen.java.


Member Function Documentation

void FieldGenOrMethodGen::addAttribute Attribute   a [inline]
 

Add an attribute to this method. Currently, the JVM knows about the `Code', `ConstantValue', `Synthetic' and `Exceptions' attributes. Other attributes will be ignored by the JVM but do no harm.

Parameters:
a   attribute to be added

Reimplemented in FieldGen, and MethodGen.

Definition at line 30 of file FieldGenOrMethodGen.java.

Referenced by FieldGen::FieldGen(), MethodGen::MethodGen(), FieldGen::getField(), and MethodGen::getMethod().

Attribute [] FieldGenOrMethodGen::getAttributes   [inline]
 

Returns:
all attributes of this method.

Reimplemented in FieldGen, and MethodGen.

Definition at line 42 of file FieldGenOrMethodGen.java.

Referenced by FieldGen::getField(), and MethodGen::getMethod().

String FieldGenOrMethodGen::getName   [inline]
 

Returns:
name of method/field.

Reimplemented from NamedAndTyped.

Reimplemented in FieldGen.

Definition at line 50 of file FieldGenOrMethodGen.java.

Referenced by MethodGen::getMethodName(), and FieldGen::toString().

abstract String FieldGenOrMethodGen::getSignature   [pure virtual]
 

Returns:
signature of method/field.

Reimplemented in FieldGen, FieldGen, and MethodGen.

Referenced by FieldGen::getField(), MethodGen::getMethod(), and MethodGen::getMethodSignature().

void FieldGenOrMethodGen::removeAttribute Attribute   a [inline]
 

Remove an attribute.

Reimplemented in MethodGen.

Definition at line 58 of file FieldGenOrMethodGen.java.


The documentation for this class was generated from the following file:
Generated at Thu Feb 7 07:11:22 2002 for Bandera by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001