Class JRClauseTokens
java.lang.Object
net.sf.jasperreports.engine.query.JRClauseTokens
Query clause chunk wrapper.
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The position of the clause Id token. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the clause Id, which is the first token in the clause.getToken
(int position) Returns a token at a specified position.
-
Field Details
-
CLAUSE_ID_POSITION
public static final int CLAUSE_ID_POSITIONThe position of the clause Id token.- See Also:
-
-
Constructor Details
-
JRClauseTokens
Wraps an array of tokens.- Parameters:
tokens
- the tokens
-
-
Method Details
-
getClauseId
Returns the clause Id, which is the first token in the clause.- Returns:
- the clause Id
-
getToken
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
-