at.dms.kjc
Class CFieldTable

java.lang.Object
  |
  +--at.dms.util.Utils
        |
        +--at.dms.kjc.CFieldTable

public class CFieldTable
extends Utils

This class encapsulates the fields of a class.


Fields inherited from class at.dms.util.Utils
DBG_LEVEL_HIGH, DBG_LEVEL_LOW, DBG_LEVEL_NO
 
Constructor Summary
CFieldTable(CField[] array)
          Constructs a field table.
 
Method Summary
 void addField(CSourceField field)
          Adds a field.
 FieldInfo[] buildFieldInfo()
          Returns the field infos.
(package private)  void dumpFields()
          Debug method.
 CField lookup(java.lang.String ident)
          Returns the field with specified name
 int size()
          Returns the number of fields.
 
Methods inherited from class at.dms.util.Utils
assert, assert, fail, fail, hasFlag, hasMoreThanOneFlag, hasOtherFlags, splitQualifiedName, splitQualifiedName, vectorToArray, vectorToIntArray
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CFieldTable

public CFieldTable(CField[] array)
Constructs a field table.
Method Detail

lookup

public CField lookup(java.lang.String ident)
Returns the field with specified name
Parameters:
ident - the simple name of the field

size

public int size()
Returns the number of fields.

addField

public void addField(CSourceField field)
Adds a field.

buildFieldInfo

public FieldInfo[] buildFieldInfo()
Returns the field infos.

dumpFields

void dumpFields()
Debug method.