daikon.chicory
Class StaticObjInfo

Object
  extended by DaikonVariableInfo
      extended by StaticObjInfo
All Implemented Interfaces:
Comparable<DaikonVariableInfo>, Iterable<DaikonVariableInfo>

public class StaticObjInfo
extends DaikonVariableInfo

The StaticObjInfo class is a subtype of DaikonVariableInfo used as a root for static variables within a class (which are the only variables visible to static methods). Nothing is printed for this variable in either the decl or dtrace file, it exists only so that the static variables of a class can be nested within it and not directly under the root.


Field Summary
 Class<?> type
           
 
Fields inherited from class DaikonVariableInfo
children, class_suffix, classClassName, compareInfoString, declShouldPrint, dkconfig_constant_infer, dtraceShouldPrint, dtraceShouldPrintChildren, isArray, ppt_statics, repTypeName, std_visibility, stringClassName, typeName
 
Constructor Summary
StaticObjInfo()
           
StaticObjInfo(Class<?> type)
           
 
Method Summary
 VarKind get_var_kind()
          'this' is a top level variable
 Object getMyValFromParentVal(Object val)
          Given an object value corresponding to the parent of this DaikonVariableInfo variable, return the value (of the corresponding value in the target application) of this DaikonVariableInfo variable.
 
Methods inherited from class DaikonVariableInfo
addChild, addChildNodes, addClassVars, addDeclVar, addDeclVar, addParameters, addPureMethodDecl, array_child, checkForDerivedVariables, checkForListDecl, checkForRuntimeClass, compareTo, declShouldPrint, dTraceShouldPrint, dTraceShouldPrintChildren, get_const_val, get_relative_name, get_var_flags, getCompareString, getDTraceValueString, getName, getRepName, getRepTypeName, getRepTypeNameOnly, getTypeName, getTypeNameOnly, getValueStringOfList, getValueStringOfObjectWithMod, implementsList, isArray, isFieldVisible, isHashcode, isHashcodeArray, isInt, isStatic, iterator, shouldAddRuntimeClass, stdClassName, systemClass, toString, tree_as_list, treeString
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

type

public Class<?> type
Constructor Detail

StaticObjInfo

public StaticObjInfo()

StaticObjInfo

public StaticObjInfo(Class<?> type)
Method Detail

getMyValFromParentVal

public Object getMyValFromParentVal(Object val)
Description copied from class: DaikonVariableInfo
Given an object value corresponding to the parent of this DaikonVariableInfo variable, return the value (of the corresponding value in the target application) of this DaikonVariableInfo variable. For instance, if the variable a has a field b, then calling getMyValFromParentVal(val_of_a) will return the value of a.b

Specified by:
getMyValFromParentVal in class DaikonVariableInfo
Parameters:
val - The parent object. Can be null for static fields. (Are there any other circumstances where it can be null?)

get_var_kind

public VarKind get_var_kind()
'this' is a top level variable

Specified by:
get_var_kind in class DaikonVariableInfo