Class RootInfo

    • Method Detail

      • getMyValFromParentVal

        public Object getMyValFromParentVal​(Object value)
        Description copied from class: DaikonVariableInfo
        Given a value corresponding to the parent of this, return the value of this.

        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:
        value - the parent object. Can be null for static fields.
        Returns:
        the value for this, computed from parentVal
      • getObjectPpt

        public static RootInfo getObjectPpt​(ClassInfo cinfo,
                                            int depth)
        Creates a new RootInfo object for an object program point. This will include the class' fields and the "this" object.
        Parameters:
        cinfo - information about the class
        depth - the depth to which to nest variables, as in "a.b.field"
        Returns:
        a a new RootInfo object for an object program point
      • getClassPpt

        public static RootInfo getClassPpt​(ClassInfo cinfo,
                                           int depth)
        Creates a new RootInfo object for a class program point. This will just include static fields.
        Parameters:
        cinfo - information about the class
        depth - the depth to which to nest variables, as in "a.b.field"
        Returns:
        a new RootInfo object for a class program point