daikon.chicory
Class ArrayInfo
Object
DaikonVariableInfo
ArrayInfo
- All Implemented Interfaces:
- Comparable<DaikonVariableInfo>, Iterable<DaikonVariableInfo>
public class ArrayInfo
- extends DaikonVariableInfo
The ArrayInfo class is a subtype of DaikonVariableInfo used for
variable types which are arrays (i.e., their name ends with "[]").
| 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 |
ArrayInfo(String theName,
Class<?> array_type)
Constructs an ArrayInfo object with the specified name
and type. |
|
Method Summary |
VarKind |
get_var_kind()
Returns the kind of the variable (array, field, function, etc) |
Object |
getMyValFromParentVal(Object value)
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. |
Class<?> |
getType()
|
| 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 |
ArrayInfo
public ArrayInfo(String theName,
Class<?> array_type)
- Constructs an ArrayInfo object with the specified name
and type.
- Parameters:
theName - The variable name. Should end with "[]"array_type - component type of the array
getMyValFromParentVal
public Object getMyValFromParentVal(Object value)
- 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
getMyValParentVal(val_of_a) will return the value of a.b
- Specified by:
getMyValFromParentVal in class DaikonVariableInfo
- Parameters:
value - The parent object. Can be null for static fields.
(Are there any other circumstances where it can be null?)
getType
public Class<?> getType()
get_var_kind
public VarKind get_var_kind()
- Description copied from class:
DaikonVariableInfo
- Returns the kind of the variable (array, field, function, etc)
- Specified by:
get_var_kind in class DaikonVariableInfo