Package shaperCompiler.util
Class ShaperError
java.lang.Object
shaperCompiler.util.ShaperError
- All Implemented Interfaces:
java.lang.Comparable<ShaperError>
public class ShaperError extends java.lang.Object implements java.lang.Comparable<ShaperError>
The Class ShaperError.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ShaperError()
Instantiates a new shaper error.ShaperError(short type, short row, short column, java.lang.String message)
Instantiates a new shaper error. -
Method Summary
Modifier and Type Method Description int
compareTo(ShaperError 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
-
ShaperError
public ShaperError(short type, short row, short column, java.lang.String message)Instantiates a new shaper error.- Parameters:
type
- the typerow
- the rowcolumn
- the columnmessage
- the message
-
ShaperError
public ShaperError()Instantiates a new shaper 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<ShaperError>
- Parameters:
o
- the o- Returns:
- the int
-