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:
JRQueryChunk.getTokens()
,JRQueryChunk.TYPE_CLAUSE_TOKENS
-
-
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(String[] tokens)
Wraps an array of tokens.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getClauseId()
Returns the clause Id, which is the first token in the clause.String
getToken(int position)
Returns a token at a specified position.
-
-
-
Field Detail
-
CLAUSE_ID_POSITION
public static final int CLAUSE_ID_POSITION
The position of the clause Id token.- See Also:
getClauseId()
, Constant Field Values
-
-
Constructor Detail
-
JRClauseTokens
public JRClauseTokens(String[] tokens)
Wraps an array of tokens.- Parameters:
tokens
- the tokens
-
-
Method Detail
-
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
-
-