public class JRClauseTokens extends 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(String[] tokens)
Wraps an array of tokens.
|
Modifier and Type | Method and 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.
|
public static final int CLAUSE_ID_POSITION
getClauseId()
,
Constant Field Valuespublic JRClauseTokens(String[] tokens)
tokens
- the tokenspublic String getClauseId()
public 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 positionCopyright © 2017. All rights reserved.