Module jamal.tools

Class Input

  • All Implemented Interfaces:
    java.lang.CharSequence, Input

    public class Input
    extends java.lang.Object
    implements Input
    A simple implementation of the Input interface utilizing four fields.
    • Constructor Detail

      • Input

        public Input()
      • Input

        public Input​(java.lang.String string)
      • Input

        public Input​(java.lang.String input,
                     Position ref)
    • Method Detail

      • makeInput

        public static Input makeInput()
      • makeInput

        public static Input makeInput​(java.lang.String string)
      • makeInput

        public static Input makeInput​(java.lang.String input,
                                      Position ref)
      • getLine

        public int getLine()
        Specified by:
        getLine in interface Input
      • getColumn

        public int getColumn()
        Specified by:
        getColumn in interface Input
      • stepLine

        public void stepLine()
        Specified by:
        stepLine in interface Input
      • stepColumn

        public void stepColumn()
        Specified by:
        stepColumn in interface Input
      • getSB

        public java.lang.StringBuilder getSB()
        Specified by:
        getSB in interface Input
      • getReference

        public java.lang.String getReference()
        Specified by:
        getReference in interface Input
      • toString

        public java.lang.String toString()
        Specified by:
        toString in interface java.lang.CharSequence
        Overrides:
        toString in class java.lang.Object