daikon.chicory
Class StaticObjInfo
Object
DaikonVariableInfo
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.
| Fields inherited from class DaikonVariableInfo |
children, class_suffix, classClassName, compareInfoString, declShouldPrint, dkconfig_constant_infer, dtraceShouldPrint, dtraceShouldPrintChildren, isArray, ppt_statics, repTypeName, std_visibility, stringClassName, typeName |
|
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 |
type
public Class<?> type
StaticObjInfo
public StaticObjInfo()
StaticObjInfo
public StaticObjInfo(Class<?> type)
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