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 int
compareTo(GCodeError o)
Compare to.short
getColumn()
Gets the column.java.lang.String
getMessage()
Gets the message.short
getRow()
Gets the row.short
getType()
Gets the type.void
setColumn(short column)
Sets the column.void
setMessage(java.lang.String message)
Sets the message.void
setRow(short row)
Sets the row.void
setType(short type)
Sets the type.java.lang.String
toString()
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:
toString
in classjava.lang.Object
- Returns:
- the string
-
compareTo
Compare to.- Specified by:
compareTo
in interfacejava.lang.Comparable<GCodeError>
- Parameters:
o
- the o- Returns:
- the int
-