public class JRClauseTokens
extends java.lang.Object
JRQueryChunk.getTokens()
,
JRQueryChunk.TYPE_CLAUSE_TOKENS
Modifier and Type | Field and Description |
---|---|
static int |
CLAUSE_ID_POSITION
The position of the clause Id token.
|
Constructor and Description |
---|
JRClauseTokens(java.lang.String[] tokens)
Wraps an array of tokens.
|
Modifier and Type | Method and 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.
|
public static final int CLAUSE_ID_POSITION
getClauseId()
,
Constant Field Valuespublic JRClauseTokens(java.lang.String[] tokens)
tokens
- the tokenspublic java.lang.String getClauseId()
public java.lang.String getToken(int position)
If the specified position is greater than the number of tokens or
the token is empty, the method returns null
.
position
- the position© 2001-2014 TIBCO Software Inc. www.jaspersoft.com