mjc

org.multijava.util.classfile
Class Attribute

java.lang.Object
  extended byorg.multijava.util.classfile.Attribute
Direct Known Subclasses:
AnchorAttribute, CodeInfo, ConstantValueAttribute, DeprecatedAttribute, DispatcherAttribute, ExceptionsAttribute, GenericAttribute, GenericFunctionsAttribute, InnerClassTable, LineNumberTable, LocalVariableTable, MultimethodBodyAttribute, RedirectorAttribute, RMJAttribute, RuntimeVisibleAnnotationsAttribute, RuntimeVisibleParameterAnnotationsAttribute, SignatureAttribute, SourceFileAttribute, SyntheticAttribute, UniverseClassAttribute, UniverseFieldAttribute, UniverseMethodAttribute

public abstract class Attribute
extends Object

This is the root class of every attribute


Constructor Summary
Attribute()
           
 
Method Summary
protected abstract  int getSize()
          Returns the space in bytes used by this attribute in the classfile
protected abstract  int getTag()
          Returns the attribute's tag
protected abstract  void resolveConstants(ConstantPool cp)
          Insert or check location of constant value on constant pool
protected abstract  void write(ConstantPool cp, DataOutput out)
          Write this class into the the file (out) getting data position from the constant pool
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Attribute

public Attribute()
Method Detail

getTag

protected abstract int getTag()
Returns the attribute's tag


getSize

protected abstract int getSize()
Returns the space in bytes used by this attribute in the classfile


resolveConstants

protected abstract void resolveConstants(ConstantPool cp)
                                  throws ClassFileFormatException
Insert or check location of constant value on constant pool

Parameters:
cp - the constant pool for this class
Throws:
ClassFileFormatException

write

protected abstract void write(ConstantPool cp,
                              DataOutput out)
                       throws IOException,
                              ClassFileFormatException
Write this class into the the file (out) getting data position from the constant pool

Parameters:
cp - the constant pool that contain all data
out - the file where to write this object info
Throws:
IOException - an io problem has occured
ClassFileFormatException - attempt to write a bad classfile info

mjc

mjc is Copyright (C) 2000-2004 by Iowa State University and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. mjc is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.