Class JRClauseTokens
- java.lang.Object
-
- net.sf.jasperreports.engine.query.JRClauseTokens
-
public class JRClauseTokens extends java.lang.ObjectQuery 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 intCLAUSE_ID_POSITIONThe 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.StringgetClauseId()Returns the clause Id, which is the first token in the clause.java.lang.StringgetToken(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
-
-
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
-
-