Package gcodeCompiler.util
Class Coordinate
java.lang.Object
gcodeCompiler.util.Coordinate
public class Coordinate
extends java.lang.Object
Coordinate class.
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringfirstThe first.private booleanfirstNotNullThe first not null.private java.lang.StringsecondThe second.private booleansecondNotNullThe second not null.private java.lang.StringthirdThe third.private booleanthirdNotNullThe third not null. -
Constructor Summary
Constructors Constructor Description Coordinate(java.lang.String first, java.lang.String second, java.lang.String third)Instantiates a new coordinate.Coordinate(org.antlr.runtime.Token first, org.antlr.runtime.Token second, org.antlr.runtime.Token third)Instantiates a new coordinate. -
Method Summary
Modifier and Type Method Description intgetFirst()Gets the first.intgetSecond()Gets the second.intgetThird()Gets the third.booleanisFirstNotNull()Checks if is first not null.booleanisSecondNotNull()Checks if is second not null.booleanisThirdNotNull()Checks if is third not null.voidsetFirst(java.lang.String first)Sets the first.voidsetSecond(java.lang.String second)Sets the second.voidsetThird(java.lang.String third)Sets the third.java.lang.StringtoString()To string.
-
Field Details
-
first
private java.lang.String firstThe first. -
second
private java.lang.String secondThe second. -
third
private java.lang.String thirdThe third. -
firstNotNull
private boolean firstNotNullThe first not null. -
secondNotNull
private boolean secondNotNullThe second not null. -
thirdNotNull
private boolean thirdNotNullThe third not null.
-
-
Constructor Details
-
Coordinate
public Coordinate(org.antlr.runtime.Token first, org.antlr.runtime.Token second, org.antlr.runtime.Token third)Instantiates a new coordinate.- Parameters:
first- the firstsecond- the secondthird- the third
-
Coordinate
public Coordinate(java.lang.String first, java.lang.String second, java.lang.String third)Instantiates a new coordinate.- Parameters:
first- the firstsecond- the secondthird- the third
-
-
Method Details
-
toString
public java.lang.String toString()To string.- Overrides:
toStringin classjava.lang.Object- Returns:
- the string
-
getFirst
public int getFirst()Gets the first.- Returns:
- the first
-
getSecond
public int getSecond()Gets the second.- Returns:
- the second
-
getThird
public int getThird()Gets the third.- Returns:
- the third
-
isFirstNotNull
public boolean isFirstNotNull()Checks if is first not null.- Returns:
- true, if is first not null
-
isSecondNotNull
public boolean isSecondNotNull()Checks if is second not null.- Returns:
- true, if is second not null
-
isThirdNotNull
public boolean isThirdNotNull()Checks if is third not null.- Returns:
- true, if is third not null
-
setFirst
public void setFirst(java.lang.String first)Sets the first.- Parameters:
first- the new first
-
setSecond
public void setSecond(java.lang.String second)Sets the second.- Parameters:
second- the new second
-
setThird
public void setThird(java.lang.String third)Sets the third.- Parameters:
third- the new third
-