|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
ObjectDaikonWriter
DeclWriter
public class DeclWriter
DeclWriter writes the .decls file to a stream. It
uses traversal pattern trees (see DaikonVariableInfo) for each
program point. These are also used by the DTraceWriter.
| Field Summary | |
|---|---|
static String |
declareHeader
Header string before each new method entry or exit point |
| Fields inherited from class DaikonWriter |
|---|
lineSep, no_modifiers_ppt |
| Constructor Summary | |
|---|---|
DeclWriter(PrintStream writer)
Constructs a DeclWriter, preparing it to receive messages. |
|
| Method Summary | |
|---|---|
static String |
classObjectName(Class<?> type)
Returns the correctly formulated ":::OBJECT" name of the class (i.e., the program point name) |
void |
print_decl_class(ClassInfo cinfo,
DeclReader comp_info)
Prints declarations for all the methods in the indicated class. |
void |
printDeclClass(ClassInfo cinfo,
DeclReader comp_info)
Prints declarations for all the methods in the indicated class. |
void |
printHeaderInfo(String className)
Prints header information to the decls file. |
| Methods inherited from class DaikonWriter |
|---|
escape, isStaticConstField, methodEntryName, methodEntryName, methodExitName, methodExitName, shouldInstrumentMethod, stdClassName |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String declareHeader
| Constructor Detail |
|---|
public DeclWriter(PrintStream writer)
writer - Stream to write to| Method Detail |
|---|
public void printHeaderInfo(String className)
className - Name of the top-level class (used only for printing comments)public static String classObjectName(Class<?> type)
type - the ClassType type
public void printDeclClass(ClassInfo cinfo,
DeclReader comp_info)
cinfo - Class whose declarations should be printed.
public void print_decl_class(ClassInfo cinfo,
DeclReader comp_info)
cinfo - Class whose declarations should be printed.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||