Package gcodeCompiler.util
Class GCodeError
java.lang.Object
gcodeCompiler.util.GCodeError
- All Implemented Interfaces:
java.lang.Comparable<GCodeError>
public class GCodeError extends java.lang.Object implements java.lang.Comparable<GCodeError>
The Class GCodeError.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description GCodeError()Instantiates a new g code error.GCodeError(short type, short row, short column, java.lang.String message)Instantiates a new g code error. -
Method Summary
Modifier and Type Method Description intcompareTo(GCodeError o)Compare to.shortgetColumn()Gets the column.java.lang.StringgetMessage()Gets the message.shortgetRow()Gets the row.shortgetType()Gets the type.voidsetColumn(short column)Sets the column.voidsetMessage(java.lang.String message)Sets the message.voidsetRow(short row)Sets the row.voidsetType(short type)Sets the type.java.lang.StringtoString()To string.
-
Field Details
-
Constructor Details
-
GCodeError
public GCodeError(short type, short row, short column, java.lang.String message)Instantiates a new g code error.- Parameters:
type- the typerow- the rowcolumn- the columnmessage- the message
-
GCodeError
public GCodeError()Instantiates a new g code error.
-
-
Method Details
-
getType
public short getType()Gets the type.- Returns:
- the type
-
setType
public void setType(short type)Sets the type.- Parameters:
type- the new type
-
getRow
public short getRow()Gets the row.- Returns:
- the row
-
setRow
public void setRow(short row)Sets the row.- Parameters:
row- the new row
-
getColumn
public short getColumn()Gets the column.- Returns:
- the column
-
setColumn
public void setColumn(short column)Sets the column.- Parameters:
column- the new column
-
getMessage
public java.lang.String getMessage()Gets the message.- Returns:
- the message
-
setMessage
public void setMessage(java.lang.String message)Sets the message.- Parameters:
message- the new message
-
toString
public java.lang.String toString()To string.- Overrides:
toStringin classjava.lang.Object- Returns:
- the string
-
compareTo
Compare to.- Specified by:
compareToin interfacejava.lang.Comparable<GCodeError>- Parameters:
o- the o- Returns:
- the int
-