Class JRClauseTokens

java.lang.Object
net.sf.jasperreports.engine.query.JRClauseTokens

public class JRClauseTokens extends Object
Query clause chunk wrapper.
Author:
Lucian Chirita (lucianc@users.sourceforge.net)
See Also:
  • Field Details

  • Constructor Details

    • JRClauseTokens

      public JRClauseTokens(String[] tokens)
      Wraps an array of tokens.
      Parameters:
      tokens - the tokens
  • Method Details

    • getClauseId

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

      public 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