Class ClassDepot

java.lang.Object
de.uzl.its.swat.symbolic.ClassDepot
All Implemented Interfaces:
Serializable

public class ClassDepot extends Object implements Serializable
Serializable depot for classes represented using their name and a corresponding class template in a tree map
See Also:
  • Constructor Details

    • ClassDepot

      public ClassDepot()
      Constructor that instantiates the template map
  • Method Details

    • getInstance

      public static ClassDepot getInstance()
      Getter for this classes instance.
      Returns:
      An instance of this ClassDepot
    • getFieldIndex

      public int getFieldIndex(String cName, String field)
      Gets the index of a field by name and class
      Parameters:
      cName - The class containing the field
      field - The field name
      Returns:
      The index of the field, or -1 if the field Name is not found
    • getStaticFieldIndex

      public int getStaticFieldIndex(String cName, String field)
      Gets the index of a static field by name and class
      Parameters:
      cName - The class containing the static field
      field - The static field name
      Returns:
      The index of the static field, or -1 if the field Name is not found
    • nFields

      public int nFields(String cName)
      Gets the number of fields in the template
      Parameters:
      cName - The name of the class
      Returns:
      The number of fields
    • nStaticFields

      public int nStaticFields(String cName)
      Gets the number of static fields in the template
      Parameters:
      cName - The name of the class
      Returns:
      The number of static fields