Class Shape

java.lang.Object
shaperCompiler.util.Shape
Direct Known Subclasses:
Circle, Rectangle, Square, Triangle

public class Shape
extends java.lang.Object
The Class Shape.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    (package private) java.lang.String jobSpeed
    The job speed.
    (package private) java.lang.String lube
    The lube.
    (package private) java.lang.String moveSpeed
    The move speed.
    (package private) char type
    The type.
  • Constructor Summary

    Constructors 
    Constructor Description
    Shape​(char type)
    Instantiates a new shape.
    Shape​(char type, org.antlr.runtime.Token ms, org.antlr.runtime.Token js, org.antlr.runtime.Token lb)
    Instantiates a new shape.
  • Method Summary

    Modifier and Type Method Description
    java.lang.String getJobSpeed()
    Gets the job speed.
    java.lang.String getLube()
    Gets the lube.
    java.lang.String getMoveSpeed()
    Gets the move speed.
    char getType()
    Gets the type.
    void setJobSpeed​(java.lang.String jobSpeed)
    Sets the job speed.
    void setLube​(java.lang.String lube)
    Sets the lube.
    void setMoveSpeed​(java.lang.String moveSpeed)
    Sets the move speed.
    void setType​(char 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

      char type
      The type.
    • moveSpeed

      java.lang.String moveSpeed
      The move speed.
    • jobSpeed

      java.lang.String jobSpeed
      The job speed.
    • lube

      java.lang.String lube
      The lube.
  • Constructor Details

    • Shape

      public Shape​(char type, org.antlr.runtime.Token ms, org.antlr.runtime.Token js, org.antlr.runtime.Token lb)
      Instantiates a new shape.
      Parameters:
      type - the type
      ms - the ms
      js - the js
      lb - the lb
    • Shape

      public Shape​(char type)
      Instantiates a new shape.
      Parameters:
      type - the type
  • Method Details

    • toString

      public java.lang.String toString()
      To string.
      Overrides:
      toString in class java.lang.Object
      Returns:
      the string
    • getType

      public char getType()
      Gets the type.
      Returns:
      the type
    • setType

      public void setType​(char type)
      Sets the type.
      Parameters:
      type - the new type
    • getMoveSpeed

      public java.lang.String getMoveSpeed()
      Gets the move speed.
      Returns:
      the move speed
    • setMoveSpeed

      public void setMoveSpeed​(java.lang.String moveSpeed)
      Sets the move speed.
      Parameters:
      moveSpeed - the new move speed
    • getJobSpeed

      public java.lang.String getJobSpeed()
      Gets the job speed.
      Returns:
      the job speed
    • setJobSpeed

      public void setJobSpeed​(java.lang.String jobSpeed)
      Sets the job speed.
      Parameters:
      jobSpeed - the new job speed
    • getLube

      public java.lang.String getLube()
      Gets the lube.
      Returns:
      the lube
    • setLube

      public void setLube​(java.lang.String lube)
      Sets the lube.
      Parameters:
      lube - the new lube