daikon.chicory
Class ClassInfo

Object
  extended by ClassInfo

public class ClassInfo
extends Object

Keeps information about a class that is useful for writing out decl and/or dtrace information. Original information is filled out during the transformation and other information is added the after the class is first loaded


Field Summary
 String class_name
          fully qualified name of the class
 Class<?> clazz
          reflection object for this class
 List<MethodInfo> method_infos
          list of methods in the class
 boolean shouldInclude
          Whether or not any methods in this class were instrumented
 Map<String,String> staticMap
          Mapping from field name to string representation of its value
 RootInfo traversalClass
          DaikonVariables for the class (static vars only)
 RootInfo traversalObject
          DaikonVariables for the object (instance and static)
 
Constructor Summary
ClassInfo(String class_name, ClassLoader theLoader)
          Create ClassInfo with specified name
 
Method Summary
 void dump(PrintStream ps)
          dumps all of the class info to the specified stream
 List<MethodInfo> get_method_infos()
           
 void init_traversal(int depth)
          Initializes the daikon variables for the object and class ppts
 void initViaReflection()
          Gets the reflection object Class for this class, and the Method objects for each method that is already in method_infos.
 void set_method_infos(List<MethodInfo> method_infos)
          Set the list of methods
 String toString()
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

class_name

public String class_name
fully qualified name of the class


clazz

public Class<?> clazz
reflection object for this class


method_infos

public List<MethodInfo> method_infos
list of methods in the class


traversalObject

public RootInfo traversalObject
DaikonVariables for the object (instance and static)


traversalClass

public RootInfo traversalClass
DaikonVariables for the class (static vars only)


shouldInclude

public boolean shouldInclude
Whether or not any methods in this class were instrumented


staticMap

public Map<String,String> staticMap
Mapping from field name to string representation of its value

Constructor Detail

ClassInfo

public ClassInfo(String class_name,
                 ClassLoader theLoader)
Create ClassInfo with specified name

Method Detail

set_method_infos

public void set_method_infos(List<MethodInfo> method_infos)
Set the list of methods


get_method_infos

public List<MethodInfo> get_method_infos()

initViaReflection

public void initViaReflection()
Gets the reflection object Class for this class, and the Method objects for each method that is already in method_infos.


dump

public void dump(PrintStream ps)
dumps all of the class info to the specified stream


init_traversal

public void init_traversal(int depth)
Initializes the daikon variables for the object and class ppts


toString

public String toString()
Overrides:
toString in class Object