public class MATLABStackFrame
extends java.lang.Object
implements java.io.Serializable
MATLABException
.
A MATLABStackFrame
contains name of the MATLAB file, name of the function in the file and the
line number in the file.
NOTE: Users don't need to create an instance of this class from scratch.
It will be available if a MATLAB error on server causes MATLABException
to be thrown on the
client side.
Constructor and Description |
---|
MATLABStackFrame(java.lang.String file,
java.lang.String name,
int line)
Construct
MATLABStackFrame using file name, function name and line number |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Returns true if 2
MATLABStackFrame instances have the same file name, function name and line number |
java.lang.String |
getFile()
Get the complete path to MATLAB file including the extension.
|
int |
getLine()
Get the line number in MATLAB file
|
java.lang.String |
getName()
Get the name of MATLAB function in MATLAB file.
|
int |
hashCode()
Return hash value for an instance of
MATLABStackFrame instance |
java.lang.String |
toString()
Return string representation of an instance of
MATLABStackFrame |
public MATLABStackFrame(java.lang.String file, java.lang.String name, int line)
MATLABStackFrame
using file name, function name and line numberfile
- name of the filename
- name of function in the fileline
- line numberpublic java.lang.String getFile()
public java.lang.String getName()
public int getLine()
public java.lang.String toString()
MATLABStackFrame
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
MATLABStackFrame
instances have the same file name, function name and line numberequals
in class java.lang.Object
obj
- to be compared for equalityMATLABStackFrame
instance has the same file name, function name and line numberpublic int hashCode()
MATLABStackFrame
instancehashCode
in class java.lang.Object
Copyright 2010-2016 The MathWorks, Inc.