Class OctaveFake

  • All Implemented Interfaces:
    OctaveObject

    public final class OctaveFake
    extends Object
    implements OctaveObject
    A fake object, the point of this object is to make it easy to create objects that is read without being unfolded into Java.
    • Field Detail

      • data

        private final String data
    • Constructor Detail

      • OctaveFake

        public OctaveFake​(String data)
        Parameters:
        data -
    • Method Detail

      • shallowCopy

        public OctaveFake shallowCopy()
        Description copied from interface: OctaveObject
        Make a shallow copy of this object. In general when an OctaveObject is returned from a getter, e.g. on OctaveStruct or OctaveStruct, a shallow copy is returned in order to follow the way octave behaves. This method is used to make that copy.
        Specified by:
        shallowCopy in interface OctaveObject
        Returns:
        a shallow copy of this
      • getData

        public String getData()
        Returns:
        the data