Class JRClauseTokens

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int CLAUSE_ID_POSITION
      The position of the clause Id token.
    • Constructor Summary

      Constructors 
      Constructor Description
      JRClauseTokens​(java.lang.String[] tokens)
      Wraps an array of tokens.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getClauseId()
      Returns the clause Id, which is the first token in the clause.
      java.lang.String getToken​(int position)
      Returns a token at a specified position.
      • Methods inherited from class java.lang.Object

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

      • JRClauseTokens

        public JRClauseTokens​(java.lang.String[] tokens)
        Wraps an array of tokens.
        Parameters:
        tokens - the tokens
    • Method Detail

      • getClauseId

        public java.lang.String getClauseId()
        Returns the clause Id, which is the first token in the clause.
        Returns:
        the clause Id
      • getToken

        public java.lang.String getToken​(int position)
        Returns a token at a specified position.

        If the specified position is greater than the number of tokens or the token is empty, the method returns null.

        Parameters:
        position - the position
        Returns:
        the token at the specified position