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.String
first
The first.private boolean
firstNotNull
The first not null.private java.lang.String
second
The second.private boolean
secondNotNull
The second not null.private java.lang.String
third
The third.private boolean
thirdNotNull
The 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 int
getFirst()
Gets the first.int
getSecond()
Gets the second.int
getThird()
Gets the third.boolean
isFirstNotNull()
Checks if is first not null.boolean
isSecondNotNull()
Checks if is second not null.boolean
isThirdNotNull()
Checks if is third not null.void
setFirst(java.lang.String first)
Sets the first.void
setSecond(java.lang.String second)
Sets the second.void
setThird(java.lang.String third)
Sets the third.java.lang.String
toString()
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:
toString
in 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
-