Uses of Annotation Type
com.stata.sfi.Synchronized
Packages that use Synchronized
Package
Description
The Stata Function Interface (SFI) provides the classes necessary for Java to
interact with core features of Stata.
Provides a set of utility classes for
extending the functionality of the Stata Function Interface (SFI).
-
Uses of Synchronized in com.stata.sfi
Methods in com.stata.sfi with annotations of type SynchronizedModifier and TypeMethodDescriptionstatic intData.addVarByte(String name) Add a variable of type byte to the current Stata dataset.static intDeprecated.Add a variable of type byte to a data frame.intFrame.addVarByte(String varname) Add a variable of type byte to the frame.static intData.addVarDouble(String name) Add a variable of type double to the current Stata dataset.static intDeprecated.Add a variable of type double to a data frame.intFrame.addVarDouble(String varname) Add a variable of type double to the frame.static intData.addVarFloat(String name) Add a variable of type float to the current Stata dataset.static intDeprecated.Add a variable of type float to a data frame.intFrame.addVarFloat(String varname) Add a variable of type float to the frame.static intAdd a variable of type int to the current Stata dataset.static intDeprecated.Add a variable of type int to a data frame.intAdd a variable of type int to the frame.static intData.addVarLong(String name) Add a variable of type long to the current Stata dataset.static intDeprecated.Add a variable of type long to a data frame.intFrame.addVarLong(String varname) Add a variable of type long to the frame.static intAdd a variable of type str to the current Stata dataset.static intDeprecated.Add a variable of type str to a data frame.intAdd a variable of type str to the frame.static intData.addVarStrL(String name) Add a variable of type strL to the current Stata dataset.static intDeprecated.Add a variable of type strL to a data frame.intFrame.addVarStrL(String varname) Add a variable of type strL to the frame.static intDataFrame.allocate(String rname) Deprecated.Allocate a new data frame.static intData.allocateStrL(StrLConnector sc, long size) Allocate a strL so that a buffer can be stored usingwriteBytes; the contents of the strL will not be initialized.static intData.allocateStrL(StrLConnector sc, long size, boolean binary) Allocate a strL so that a buffer can be stored usingwriteBytes; the contents of the strL will not be initialized.static intDataFrame.allocateStrL(StrLConnector dsc, long size) Deprecated.Allocate a strL so that a buffer can be stored usingwriteBytes; the contents of the strL will not be initialized.static intDataFrame.allocateStrL(StrLConnector dsc, long size, boolean binary) Deprecated.Allocate a strL so that a buffer can be stored usingwriteBytes; the contents of the strL will not be initialized.intFrame.allocateStrL(StrLConnector dsc, long size) Allocate a strL so that a buffer can be stored usingwriteBytes; the contents of the strL will not be initialized.intFrame.allocateStrL(StrLConnector dsc, long size, boolean binary) Allocate a strL so that a buffer can be stored usingwriteBytes; the contents of the strL will not be initialized.static voidSFIToolkit.callGC()Call the Java garbage collector. Calling this method should generally be avoided.intFrame.changeToCWF()Set theFrameas the current working frame in Stata.voidStrLConnector.close()Close the connection and release any resources.static FrameConnect to an existing frame in Stata and return a newFrameinstance that can be used to access it.static intMatrix.convertSymmetricToStd(String name) Convert a symmetric matrix to a standard matrix.static FrameCreate a new frame in Stata and return a newFrameinstance that can be used to access it.static intValueLabel.createLabel(String name) Create a new value-label name.static intMatrix.createMatrix(String name, int rows, int cols, double initialValue) Create a Stata matrix.static intMatrix.createMatrix(String name, int rows, int cols, double initialValue, boolean isSymmetric) Create a Stata matrix.static voidDisplay an object in the Stata Results window.static voidDisplay an object in the Stata Results window.static voidSFIToolkit.display(Object o, DisplayMode mode) Display an object in the Stata Results window.static voidSFIToolkit.display(Object o, DisplayMode mode, boolean asis) Display an object in the Stata Results window.static voidDisplay a string in the Stata Results window.static voidDisplay a string in the Stata Results window.static voidSFIToolkit.display(String s, DisplayMode mode) Display a string in the Stata Results window.static voidSFIToolkit.display(String s, DisplayMode mode, boolean asis) Display a string in the Stata Results window.static voidSFIToolkit.displayln()Send a line separator to the output.static voidDisplay an object in the Stata Results window and automatically add a line separator at the end.static voidDisplay an object in the Stata Results window and automatically add a line separator at the end.static voidSFIToolkit.displayln(Object o, DisplayMode mode) Display an object in the Stata Results window and automatically add a line separator at the end.static voidSFIToolkit.displayln(Object o, DisplayMode mode, boolean asis) Display an object in the Stata Results window and automatically add a line separator at the end.static voidDisplay a string in the Stata Results window and automatically add a line separator at the end.static voidSFIToolkit.displayln(String s, DisplayMode mode) Display a string in the Stata Results window and automatically add a line separator at the end.static voidSFIToolkit.displayln(String s, DisplayMode mode, boolean asis) Display a string in the Stata Results window and automatically add a line separator at the end.intFrame.drop()Drop the frame in Stata.static intData.dropVar(int var) Drop the variable at the specified variable index.static intDataFrame.dropVar(String rname, int var) Deprecated.Drop the variable at the specified variable index.intFrame.dropVar(int var) Drop the variable at the specified variable index.static voidDisplay an object in the Stata Results window as an error.static voidDisplay an object in the Stata Results window as an error.static voidDisplay a string in the Stata Results window as an error.static voidDisplay a string in the Stata Results window as an error.static booleanSFIToolkit.errorDebug(String s) Display a string in the Stata Results window as an error if set debug on is enabled.static booleanSFIToolkit.errorDebug(String s, boolean asis) Display a string in the Stata Results window as an error if set debug on is enabled.static booleanSFIToolkit.errorDebug(Throwable t) Display the stack trace as an error if set debug on is enabled.static voidDisplay an object in the Stata Results window as an error and automatically add a line separator at the end.static voidDisplay a string in the Stata Results window as an error and automatically add a line separator at the end.static intSFIToolkit.errorMsg(int rc) Display the standard Stata error message associated with return code rc in the Stata Results window.static intDataFrame.free(String rname) Deprecated.Free a previously allocated data frame.static doubleMatrix.getAt(double[] matrix, int colCount, int row, int col) Access an element of a previously obtained Stata matrix in the form of a one-dimensional array.static doubleSFIToolkit.getCallerVersion()Get the version number of the calling program.static double[]Mata.getComplexAt(double[] matrix, int colCount, int row, int col) Get an element from a previously returned matrix.static voidMata.getComplexValues(double[] complex, Double real, Double imaginary) Get the real and imaginary parts from a complex result.static StringFrame.getCWF()Utility method for getting the name of the current working frame in Stata.static StringCharacteristic.getDtaChar(String name) Get a characteristic for the current dataset.static StringData.getFormattedValue(int var, long obs, boolean bValueLabel) Read a value from the current Stata dataset, applying its display format.Frame.getFormattedValue(int var, long obs, boolean bValueLabel) Read a value from the frame, applying its display format.static StringFrame.getFrameAt(int index) Utility method for getting the name of a Stata frame at a given index.static intFrame.getFrameCount()Utility method for getting the number of frames in Stata.static String[]Frame.getFrames()Utility method for getting the names of all frames in Stata.static StringGet the contents of a global macro.static StringGet the contents of a global macro.static StringMacro.getGlobalSafe(String name) Get the contents of a global macro without returning null.static StringMacro.getGlobalSafe(String name, int type) Get the contents of a global macro without returning null.static StringGet the label for a specified value-label value.static StringDeprecated.static String[]Get the labels for a specified value-label name.static StringGet the contents of a local macro.static StringMacro.getLocalSafe(String name) Get the contents of a local macro without returning null.static longMata.getMataColTotal(String name) Get the number of columns in a Mata matrix.static double[]Mata.getMataCompAt(String name, long row, long col) Read a complex Mata matrix element.static StringMata.getMataEltype(String name) Get the type of a Mata object.static doubleMata.getMataRealAt(String name, long row, long col) Read a real Mata matrix element.static longMata.getMataRowTotal(String name) Get the number of rows in a Mata matrix.static StringMata.getMataStringAt(String name, long row, long col) Read a string Mata matrix element.static double[]Get the data in a Stata matrix.static intMatrix.getMatrixCol(String name) Get the number of columns in a Stata matrix.static String[]Matrix.getMatrixColNames(String name) Get the column names of a Stata matrix.static intMatrix.getMatrixRow(String name) Get the number of rows in a Stata matrix.static String[]Matrix.getMatrixRowNames(String name) Get the row names of a Stata matrix.static String[]ValueLabel.getNames()Get the names of all value labels in the current dataset.static longData.getObsParsedIn1()Get the first in a range of observations if Java was invoked with the in qualifier.static longData.getObsParsedIn2()Get the last in a range of observations if Java was invoked with the in qualifier.static intData.getParsedVarCount()Get the number of variables specified when Java was invoked.longStrLConnector.getSize()Get the total number of bytes available in the strL.static StringData.getStr(int var, long obs) Read a string value from the current Stata dataset; this method can be used to read str or strL data types.static StringDataFrame.getStr(String rname, int var, long obs) Deprecated.Read a string value from a data frame.Frame.getStr(int index, long obs) Read a string value from the frame.static StringGet the contents of a Stata string scalar.static StringGet the contents of a Stata string scalar.static StringSFIToolkit.getTempFile()Get a valid Stata temporary filename.static StringSFIToolkit.getTempName()Get a valid Stata temporary name.static DoubleGet the contents of a Stata scalar.static DoubleGet the contents of a Stata scalar.ValueLabel.getValueLabels(String name) Deprecated.This method is deprecated because it is not compatible with getting labels for extended missing values; useValueLabel.getValueLabels(String, Map)instead.static Map<LabelValue,String> ValueLabel.getValueLabels(String name, Map<LabelValue, String> map) Get the value and label pairings for a specified value-label name.static int[]Deprecated.This method is deprecated because it is not compatible with getting labels for extended missing values; useValueLabel.getValueLabels(String, Map)instead.static StringCharacteristic.getVariableChar(String variable, String name) Get a characteristic for a variable in the current dataset.static intData.getVarIndex(String varname) Look up the variable index for the specified name in the current Stata dataset.static intDeprecated.Look up the variable index for the specified name in the data frame.intFrame.getVarIndex(String varname) Look up the variable index for the specified variable name in the frame.static StringValueLabel.getVarValueLabel(int index) Get the value-label name associated with a variable.static StringSFIToolkit.getWorkingDir()Get the current Stata working directory.booleanStrLConnector.isBinary()Determine if the attached strL has been marked as binary.static booleanMata.isTypeComplex(String name) Determine if the matrix type is complex.static booleanMata.isTypeReal(String name) Determine if the matrix type is real.static booleanMata.isTypeString(String name) Determine if the matrix type is string.static booleanData.isVarlistSpecified()Determine if a varlist was specified when Java was invoked.static StringSFIToolkit.processTildePath(String path) Stata utility to convert a path beginning with a tilde to a user's home directory.static intData.readBytes(StrLConnector sc, byte[] b) Read a sequence of bytes from a strL.static intData.readBytes(StrLConnector sc, byte[] b, int off, int len) Read a sequence of bytes from a strL.static intDataFrame.readBytes(StrLConnector dsc, byte[] b) Deprecated.Read a sequence of bytes from a strL in the current Stata dataset.static intDataFrame.readBytes(StrLConnector dsc, byte[] b, int off, int len) Deprecated.Read a sequence of bytes from a strL in the current Stata dataset.intFrame.readBytes(StrLConnector dsc, byte[] b) Read a sequence of bytes from a strL.intFrame.readBytes(StrLConnector dsc, byte[] b, int off, int len) Read a sequence of bytes from a strL.static intValueLabel.removeLabel(String name) Remove a value-label name.static intValueLabel.removeLabelValue(String name, int value) Remove a value-label value from the specified value-label name.static intValueLabel.removeLabelValue(String name, Missing.Extended missingValue) Remove a value-label value from the specified value-label name.static intValueLabel.removeVarValueLabel(int index) Remove a value-label name from a variable.intRename the frame in Stata.static intRename a Stata variable.intRename a variable.voidStrLConnector.reset()Reset the access position to its initial value.static FileSFIToolkit.resolvePath(String path) Resolve a path to aFile; the path may be relative to Stata's current working directory, begin with a tilde, or be an absolute path.static intCharacteristic.setDtaChar(String name, String value) Set a characteristic for the current dataset.static intSet the value of a global macro.static intSet the value of a global macro.static intSet the value of a global macro.static intSet the value of a global macro.static intValueLabel.setLabelValue(String name, int value, String label) Set a value and label for a value-label name.static intValueLabel.setLabelValue(String name, Missing.Extended missingValue, String label) Set a value and label for a value-label name.static intSet the value of a local macro.static intMatrix.setMatrixColNames(String name, String[] colNames) Set the column names of a Stata matrix.static intMatrix.setMatrixRowNames(String name, String[] rowNames) Set the row names of a Stata matrix.static intData.setObsTotal(long obs) Set the number of observations in the current Stata dataset.static intDataFrame.setObsTotal(String rname, long obs) Deprecated.Set the number of observations in a data frame.intFrame.setObsTotal(long obs) Set the number of observations in the frame.voidStrLConnector.setPosition(long pos) Set the access position.static voidSFIToolkit.setRC(int rc) Set the Stata return code when used with Java integration (that is, java[:] blocks).static intSet the contents of a Stata string scalar.static intSet the contents of a Stata string scalar.static intSet the value of a Stata scalar.static intSet the value of a Stata scalar.static intSet the value of a Stata scalar.static intSet the value of a Stata scalar.static intData.setVarFormat(int var, String format) Set the format for a Stata variable.static intDeprecated.Set the format for a variable in a data frame.intFrame.setVarFormat(int var, String format) Set the format for a variable in the frame.static intCharacteristic.setVariableChar(String variable, String name, String value) Set a characteristic for a variable in the current dataset.static intData.setVarLabel(int var, String label) Set the label for a Stata variable.intFrame.setVarLabel(int var, String label) Set the label for a variable in the frame.static intValueLabel.setVarValueLabel(int index, String labelName) Set the value label for a variable.static intData.storeBytes(StrLConnector sc, byte[] bytes, boolean binary) Store a byte buffer to a strL.static intDataFrame.storeBytes(String rname, int var, long obs, byte[] bytes, boolean binary) Deprecated.Store a byte buffer to a strL in the current Stata dataset.intFrame.storeBytes(int var, long obs, byte[] bytes, boolean binary) Store a byte buffer to a strL in the frame.static intMatrix.storeMatrixAt(String name, int row, int col, double val) Store an element in an existing Stata matrix.static intData.storeNum(int var, long obs, double value) Store a numeric value in the current Stata dataset.intFrame.storeNum(int var, long obs, double value) Store a numeric value in the frame.static intStore a string value in the current Stata dataset; this method can be used to store str or strL data types.static intDeprecated.Store a string value in a data frame.intStore a string value in the frame.static intStore a string value in the current Stata dataset; this method can be used to store str data types.intStore a string value in the frame.static voidData.updateModified()Inform Stata that its data has been modified.voidFrame.updateModified()Inform Stata that the frame's data have been modified.static intData.writeBytes(StrLConnector sc, byte[] b) Write a byte buffer to a strL; the strL must be allocated usingallocateStrLbefore calling this method.static intData.writeBytes(StrLConnector sc, byte[] b, int off, int len) Writelenbytes from the specified byte buffer starting at offsetoffto a strL; the strL must be allocated usingallocateStrLbefore calling this method.static intDataFrame.writeBytes(StrLConnector dsc, byte[] b) Deprecated.Write a byte buffer to a strL in the current Stata dataset; the strL must be allocated usingallocateStrLbefore calling this method.static intDataFrame.writeBytes(StrLConnector dsc, byte[] b, int off, int len) Deprecated.Writelenbytes from the specified byte buffer starting at offsetoffto a strL in the current Stata dataset; the strL must be allocated usingallocateStrLbefore calling this method.intFrame.writeBytes(StrLConnector dsc, byte[] b) Write a byte buffer to a strL; the strL must be allocated usingallocateStrLbefore calling this method.intFrame.writeBytes(StrLConnector dsc, byte[] b, int off, int len) Writelenbytes from the specified byte buffer starting at offsetoffto a strL; the strL must be allocated usingallocateStrLbefore calling this method. -
Uses of Synchronized in com.stata.sfi.util
Methods in com.stata.sfi.util with annotations of type SynchronizedModifier and TypeMethodDescriptionstatic voidPreference.deleteSavedPref(String section, String key) Delete a saved preference.static StringPreference.getSavedPref(String section, String key, String defaultValue) Get a saved preference.static booleanPreference.setSavedPref(String section, String key, String value) Write a saved preference.
ValueLabel.getLabel(String, double)instead.