Package daikon.split

Class SplitterObject

  • All Implemented Interfaces:
    Comparable<SplitterObject>

    public class SplitterObject
    extends Object
    implements Comparable<SplitterObject>
    A SplitterObject is the starting point for all the information we have about a splitting condition. It is created immediately when the condition is read from the .spinfo file, and later contains a reference to the compiled "Splitter" object.
    • Constructor Detail

      • SplitterObject

        public SplitterObject​(String pptName,
                              String condition,
                              String directory)
        Parameters:
        condition - the splitting condition of this splitter
        directory - the directory where the source of this splitter is located
    • Method Detail

      • load

        public void load()
        Sets the "splitter" field of this object to a newly-instantiated object.
      • splitterExists

        public boolean splitterExists()
        Returns true if the Splitter object exists for this SplitterObject, i.e. whether it successfully loaded.
        Returns:
        true if the Splitter object exists for this SplitterObject, i.e. whether it successfully loaded
      • compiled

        public boolean compiled()
        Returns true if the .class file exists for the Splitter represented by this SplitterObject, false otherwise.
        Returns:
        true if the .class file exists for the Splitter represented by this SplitterObject, false otherwise
      • getSplitter

        public @Nullable Splitter getSplitter()
        Returns the Splitter that this SplitterObject represents, or null if splitterExists() == false.
        Returns:
        the Splitter that this SplitterObject represents, or null if splitterExists() == false
      • setError

        public void setError​(String errorMessage)
        Set the error message of this this SplitterObject. This indicates the status of the Splitter.
      • getError

        public String getError()
        Get the error message of this SplitterObject.
      • setGUID

        public void setGUID​(int ID)
        Set the unique ID of this splitterObject.
      • getGUID

        public int getGUID()
        Return the unique ID of this splitterObject.
      • getFullSourcePath

        public String getFullSourcePath()
        Returns the full source of the Splitter.
        Returns:
        the full source of the Splitter
      • getPptName

        public String getPptName()
        Returns the program point represented by this Splitter.
        Returns:
        the program point represented by this Splitter
      • setClassName

        public void setClassName​(@BinaryName String className)
        Set the className of this Splitter.
      • getClassName

        public @BinaryName String getClassName()
        Returns the className of the Splitter.
        Returns:
        the className of the Splitter
      • condition

        public String condition()
        Returns the condition represented by the Splitter.
        Returns:
        the condition represented by the Splitter