001package daikon; 002 003import java.io.Serializable; 004import org.checkerframework.checker.nullness.qual.Nullable; 005 006/** 007 * Represents a parent of a variable. Includes the name of the parent program point, as well as the 008 * relationship id. If the name of the variable at the parent program point is different, the parent 009 * variable name is also specified. 010 */ 011public class VarParent implements Serializable { 012 // We are Serializable, so we specify a version to allow changes to 013 // method signatures without breaking serialization. If you add or 014 // remove fields, you should change this number to the current date. 015 private static final long serialVersionUID = 20130425L; 016 017 /** Parent ppt for this variable. */ 018 public String parent_ppt; 019 020 /** Parent variable (within parent_ppt) (if any) */ 021 public @Nullable String parent_variable; 022 023 /** Parent ppt relation id. */ 024 public int parent_relation_id; 025 026 public VarParent(String parent_ppt, int parent_relation_id, @Nullable String parent_variable) { 027 this.parent_ppt = parent_ppt; 028 this.parent_relation_id = parent_relation_id; 029 this.parent_variable = parent_variable; 030 } 031}