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

    Fields 
    Modifier and Type Field Description
    private short column
    The column.
    private java.lang.String message
    The message.
    private short row
    The row.
    private short type
    The type.
  • 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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • type

      private short type
      The type.
    • row

      private short row
      The row.
    • column

      private short column
      The column.
    • message

      private java.lang.String message
      The message.
  • Constructor Details

    • GCodeError

      public GCodeError​(short type, short row, short column, java.lang.String message)
      Instantiates a new g code error.
      Parameters:
      type - the type
      row - the row
      column - the column
      message - 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 class java.lang.Object
      Returns:
      the string
    • compareTo

      public int compareTo​(GCodeError o)
      Compare to.
      Specified by:
      compareTo in interface java.lang.Comparable<GCodeError>
      Parameters:
      o - the o
      Returns:
      the int