Module jamal.api

Class Position


  • public class Position
    extends java.lang.Object
    The Position contains the name of a file, a line number and the column number. This serves as a parameter when an error happens. The exception BadSyntaxAt gets an object of this type as a parameter and later it is used to compose the message of the exception when the exception is logged.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      int column  
      java.lang.String file  
      int line  
    • Constructor Summary

      Constructors 
      Constructor Description
      Position​(java.lang.String file)  
      Position​(java.lang.String file, int line)  
      Position​(java.lang.String file, int line, int column)  
    • Method Summary

      • Methods inherited from class java.lang.Object

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

      • file

        public final java.lang.String file
      • line

        public final int line
      • column

        public final int column
    • Constructor Detail

      • Position

        public Position​(java.lang.String file)
      • Position

        public Position​(java.lang.String file,
                        int line)
      • Position

        public Position​(java.lang.String file,
                        int line,
                        int column)