Module jamal.tools

Class Input

java.lang.Object
javax0.jamal.tools.Input
All Implemented Interfaces:
CharSequence, javax0.jamal.api.Input

public class Input
extends Object
implements javax0.jamal.api.Input
A simple implementation of the Input interface utilizing four fields.
  • Constructor Details

  • Method Details

    • makeInput

      public static Input makeInput()
    • makeInput

      public static Input makeInput​(String string)
    • makeInput

      public static Input makeInput​(StringBuilder input, javax0.jamal.api.Position ref)
    • makeInput

      public static Input makeInput​(String input, javax0.jamal.api.Position ref)
    • makeInput

      public static Input makeInput​(javax0.jamal.api.Input input)
    • getLine

      public int getLine()
      Specified by:
      getLine in interface javax0.jamal.api.Input
    • getColumn

      public int getColumn()
      Specified by:
      getColumn in interface javax0.jamal.api.Input
    • stepLine

      public void stepLine()
      Specified by:
      stepLine in interface javax0.jamal.api.Input
    • stepColumn

      public void stepColumn()
      Specified by:
      stepColumn in interface javax0.jamal.api.Input
    • getSB

      public StringBuilder getSB()
      Specified by:
      getSB in interface javax0.jamal.api.Input
    • getPosition

      public javax0.jamal.api.Position getPosition()
      Specified by:
      getPosition in interface javax0.jamal.api.Input
    • getReference

      public String getReference()
      Specified by:
      getReference in interface javax0.jamal.api.Input
    • toString

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