Package de.uzl.its.swat.symbolic
Class ClassDepot
java.lang.Object
de.uzl.its.swat.symbolic.ClassDepot
- All Implemented Interfaces:
Serializable
Serializable depot for classes represented using their name and a corresponding class template in
a tree map
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getFieldIndex
(String cName, String field) Gets the index of a field by name and classstatic ClassDepot
Getter for this classes instance.int
getStaticFieldIndex
(String cName, String field) Gets the index of a static field by name and classint
Gets the number of fields in the templateint
nStaticFields
(String cName) Gets the number of static fields in the template
-
Constructor Details
-
ClassDepot
public ClassDepot()Constructor that instantiates the template map
-
-
Method Details
-
getInstance
Getter for this classes instance.- Returns:
- An instance of this ClassDepot
-
getFieldIndex
Gets the index of a field by name and class- Parameters:
cName
- The class containing the fieldfield
- The field name- Returns:
- The index of the field, or -1 if the field Name is not found
-
getStaticFieldIndex
Gets the index of a static field by name and class- Parameters:
cName
- The class containing the static fieldfield
- The static field name- Returns:
- The index of the static field, or -1 if the field Name is not found
-
nFields
Gets the number of fields in the template- Parameters:
cName
- The name of the class- Returns:
- The number of fields
-
nStaticFields
Gets the number of static fields in the template- Parameters:
cName
- The name of the class- Returns:
- The number of static fields
-