Class Jasic.InputStatement

  • All Implemented Interfaces:
    Jasic.Statement
    Enclosing class:
    Jasic

    public class Jasic.InputStatement
    extends java.lang.Object
    implements Jasic.Statement
    An "input" statement reads input from the user and stores it in a variable.
    • Constructor Summary

      Constructors 
      Constructor Description
      InputStatement​(java.lang.String name)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void execute()
      Statements implement this to actually perform whatever behavior the statement causes.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • InputStatement

        public InputStatement​(java.lang.String name)
    • Method Detail

      • execute

        public void execute()
        Description copied from interface: Jasic.Statement
        Statements implement this to actually perform whatever behavior the statement causes. "print" statements will display text here, "goto" statements will change the current statement, etc.
        Specified by:
        execute in interface Jasic.Statement