|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ObjectDeclReader
public class DeclReader
Reads declaration files and provides methods to access the information within them. A declaration file consists of a number of program points and the variables for each program point.
| Nested Class Summary | |
|---|---|
static class |
DeclReader.DeclPpt
Information about the program point that is contained in the decl file. |
static class |
DeclReader.DeclVarInfo
Information about variables within a program point |
| Field Summary | |
|---|---|
static boolean |
avg_size
Prints only the average set size for each specified file |
static String |
comparability
|
static boolean |
declaration_type_comparability
Reads in a decl file with arbitrary comparability and writes out a file with comparability based on declaration types. |
static boolean |
dump_dtrace
|
HashMap<String,DeclReader.DeclPpt> |
ppts
|
static boolean |
primitive_declaration_type_comparability
Reads in a decl file with arbitrary comparability and writes out a file with comparability based on the primitive declaration types. |
static boolean |
rep_type_comparability
Reads in a decl file with arbitrary comparability and writes out a file with comparability based on the rep types (ie, there are comparability sets for int, boolean, string, and hashcode) Two filenames are required: input-filename output-filename. |
| Constructor Summary | |
|---|---|
DeclReader()
|
|
| Method Summary | |
|---|---|
void |
declaration_types()
Sets the comparability to match declaration types. |
void |
dump_decl()
|
DeclReader.DeclPpt |
find_ppt(String ppt_name)
|
List<DeclReader.DeclPpt> |
get_all_ppts()
Returns a list of all of the program points |
static void |
main(String[] args)
Reads a decl file and dumps statistics |
void |
primitive_declaration_types()
Sets the comparability to match primitive declaration types. |
protected DeclReader.DeclPpt |
read_decl(EntryReader decl_file)
Reads a single declaration from decl_file. |
void |
read(File pathname)
Read declarations from the specified pathname |
void |
rep_types()
Sets the comparability to match the rep types. |
void |
write_decl(String filename,
String comparability)
Writes the declaration to the specified file. |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static boolean avg_size
public static boolean primitive_declaration_type_comparability
public static boolean declaration_type_comparability
public static boolean rep_type_comparability
public static boolean dump_dtrace
public static String comparability
public HashMap<String,DeclReader.DeclPpt> ppts
| Constructor Detail |
|---|
public DeclReader()
| Method Detail |
|---|
public void read(File pathname)
protected DeclReader.DeclPpt read_decl(EntryReader decl_file)
throws IOException
IOExceptionpublic void dump_decl()
public DeclReader.DeclPpt find_ppt(String ppt_name)
public static void main(String[] args)
throws IOException
IOExceptionpublic void declaration_types()
public void primitive_declaration_types()
public void rep_types()
public void write_decl(String filename,
String comparability)
throws IOException
IOExceptionpublic List<DeclReader.DeclPpt> get_all_ppts()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||