Package sleep.engine

Class Step

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected int line
      the script line number that this step was generated from
      Step next
      Steps act as a simple self contained linked list
    • Constructor Summary

      Constructors 
      Constructor Description
      Step()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Scalar evaluate​(ScriptEnvironment e)
      evaluate this atomic step.
      int getHighLineNumber()
      returns the last line number that this step is associated with (assuming it is associated with multiple lines
      int getLineNumber()
      returns the line number this step is associated with
      int getLowLineNumber()
      returns the first line number that this step is associated with (assuming it is associated with multiple lines
      void setInfo​(int _line)
      convience method for the code generator to set the line number.
      java.lang.String toString()  
      java.lang.String toString​(java.lang.String prefix)
      returns a string representation of this atomic step
      • Methods inherited from class java.lang.Object

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

      • line

        protected int line
        the script line number that this step was generated from
      • next

        public Step next
        Steps act as a simple self contained linked list
    • Constructor Detail

      • Step

        public Step()
    • Method Detail

      • toString

        public java.lang.String toString​(java.lang.String prefix)
        returns a string representation of this atomic step
      • setInfo

        public void setInfo​(int _line)
        convience method for the code generator to set the line number.
      • getHighLineNumber

        public int getHighLineNumber()
        returns the last line number that this step is associated with (assuming it is associated with multiple lines
      • getLowLineNumber

        public int getLowLineNumber()
        returns the first line number that this step is associated with (assuming it is associated with multiple lines
      • getLineNumber

        public int getLineNumber()
        returns the line number this step is associated with
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object