Package eu.simuline.octave.type
Class OctaveFake
- java.lang.Object
-
- eu.simuline.octave.type.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.
-
-
Constructor Summary
Constructors Constructor Description OctaveFake(String data)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getData()
OctaveFake
shallowCopy()
Make a shallow copy of this object.
-
-
-
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 anOctaveObject
is returned from a getter, e.g. onOctaveStruct
orOctaveStruct
, 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 interfaceOctaveObject
- Returns:
- a shallow copy of this
-
getData
public String getData()
- Returns:
- the data
-
-