Class NPathComplexityCheck.TokenEnd

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int endColumnNo
      End column of token.
      private int endLineNo
      End line of token.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private TokenEnd()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isAfter​(DetailAST ast)
      Checks if saved coordinates located after given token.
      void reset()
      Sets end token coordinates to the start of the file.
      void setToken​(DetailAST endToken)
      Sets end coordinates from given token.
      • Methods inherited from class java.lang.Object

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

      • endLineNo

        private int endLineNo
        End line of token.
      • endColumnNo

        private int endColumnNo
        End column of token.
    • Method Detail

      • setToken

        public void setToken​(DetailAST endToken)
        Sets end coordinates from given token.
        Parameters:
        endToken - token.
      • reset

        public void reset()
        Sets end token coordinates to the start of the file.
      • isAfter

        public boolean isAfter​(DetailAST ast)
        Checks if saved coordinates located after given token.
        Parameters:
        ast - given token.
        Returns:
        true, if saved coordinates located after given token.