Package daikon.split

Class SplitterExample

    • Method Detail

      • instantiateSplitter

        public Splitter instantiateSplitter​(Ppt ppt)
        Description copied from class: Splitter
        Creates a valid splitter than can be used for testing the condition via test(ValueTuple). The implementation should always set the "instantiated" protected field to true, if that field is present in the Splitter class.
        Specified by:
        instantiateSplitter in class Splitter
      • valid

        @EnsuresNonNullIf(result=true,
                          expression="x_varinfo")
        public boolean valid()
        Description copied from class: Splitter
        Returns true or false according to whether this was instantiated correctly and test(ValueTuple) can be called without error. An alternate design would have Splitter.instantiateSplitter(Ppt) check this, but it's a bit easier on implementers of subclasses of Splitter for the work to be done (in just one place) by the caller.
        Specified by:
        valid in class Splitter
      • test

        @RequiresNonNull("x_varinfo")
        public boolean test​(ValueTuple vt)
        Description copied from class: Splitter
        Returns true or false according to whether the values in the specified ValueTuple satisfy the condition represented by this Splitter. Requires that valid() returns true.
        Specified by:
        test in class Splitter
      • instantiateDummy

        @RequiresNonNull("dummyInvFactory")
        public void instantiateDummy​(PptTopLevel ppt)
        Description copied from class: Splitter
        Make an instance DummyInvariant for this instance of the splitter, if possible on an appropriate slice from ppt.
        Overrides:
        instantiateDummy in class Splitter