Package daikon.chicory
Class PureMethodInfo
- Object
-
- DaikonVariableInfo
-
- PureMethodInfo
-
- All Implemented Interfaces:
Comparable<DaikonVariableInfo>
,Iterable<DaikonVariableInfo>
public class PureMethodInfo extends DaikonVariableInfo
The PureMethodInfo class is a subtype of DaikonVariableInfo used for "variable types" which correspond to the values of pure method invocations.
-
-
Field Summary
-
Fields inherited from class DaikonVariableInfo
children, class_suffix, class_suffix_relative_name, classClassName, compareInfoString, declShouldPrint, dkconfig_constant_infer, dtraceShouldPrint, dtraceShouldPrintChildren, isArray, isNonNullParamString, isNonNullString, isParamString, ppt_statics, repTypeName, std_visibility, stringClassName, typeName
-
-
Constructor Summary
Constructors Constructor Description PureMethodInfo(String name, MethodInfo methInfo, String typeName, String repTypeName, String receiverName, boolean inArray)
PureMethodInfo(String name, MethodInfo methInfo, String typeName, String repTypeName, String receiverName, boolean inArray, DaikonVariableInfo[] args)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static @Nullable Object
convertWrapper(@Nullable Object obj)
Convert standard wrapped (boxed) Objects (i.e., Integers) to Chicory wrappers (ie, Runtime.IntWrap).String
get_relative_name()
Return the short name of the method as the relative name.VarKind
get_var_kind()
Returns the kind of the variable (array, field, function, etc)@Nullable Object
getMyValFromParentVal(Object parentVal)
Invokes this pure method on the given parentVal.-
Methods inherited from class DaikonVariableInfo
addChild, addChildNodes, addClassVars, addDeclVar, addParamDeclVar, addParameters, addPureMethodDecl, array_child, checkForDerivedVariables, checkForListDecl, checkForRuntimeClass, compareTo, declShouldPrint, dTraceShouldPrint, dTraceShouldPrintChildren, get_const_val, get_function_args, 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
-
Methods inherited from interface Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
PureMethodInfo
public PureMethodInfo(String name, MethodInfo methInfo, String typeName, String repTypeName, String receiverName, boolean inArray)
-
PureMethodInfo
public PureMethodInfo(String name, MethodInfo methInfo, String typeName, String repTypeName, String receiverName, boolean inArray, DaikonVariableInfo[] args)
-
-
Method Detail
-
getMyValFromParentVal
public @Nullable Object getMyValFromParentVal(Object parentVal)
Invokes this pure method on the given parentVal. This is safe because the method is pure!- Specified by:
getMyValFromParentVal
in classDaikonVariableInfo
- Parameters:
parentVal
- the parent object. Can be null for static fields.- Returns:
- the value for this, computed from
parentVal
-
convertWrapper
public static @Nullable Object convertWrapper(@Nullable Object obj)
Convert standard wrapped (boxed) Objects (i.e., Integers) to Chicory wrappers (ie, Runtime.IntWrap). Should not be called if the Object was not auto-boxed from from a primitive!
-
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 classDaikonVariableInfo
-
get_relative_name
public String get_relative_name()
Return the short name of the method as the relative name.- Overrides:
get_relative_name
in classDaikonVariableInfo
-
-