|
Apache Tomcat 6.0.53 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.catalina.ssi.ExpressionTokenizer
public class ExpressionTokenizer
Parses an expression string to return the individual tokens. This is patterned similar to the StreamTokenizer in the JDK but customized for SSI conditional expression parsing.
Field Summary | |
---|---|
static int |
TOKEN_AND
|
static int |
TOKEN_END
|
static int |
TOKEN_EQ
|
static int |
TOKEN_GE
|
static int |
TOKEN_GT
|
static int |
TOKEN_LBRACE
|
static int |
TOKEN_LE
|
static int |
TOKEN_LT
|
static int |
TOKEN_NOT
|
static int |
TOKEN_NOT_EQ
|
static int |
TOKEN_OR
|
static int |
TOKEN_RBRACE
|
static int |
TOKEN_STRING
|
Constructor Summary | |
---|---|
ExpressionTokenizer(java.lang.String expr)
Creates a new parser for the specified expression. |
Method Summary | |
---|---|
int |
getIndex()
Returns the current index for error reporting purposes. |
java.lang.String |
getTokenValue()
Returns the String value of the token if it was type TOKEN_STRING. |
boolean |
hasMoreTokens()
Returns true if there are more tokens. |
protected boolean |
isMetaChar(char c)
|
int |
nextToken()
Returns the next token type and initializes any state variables accordingly. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int TOKEN_STRING
public static final int TOKEN_AND
public static final int TOKEN_OR
public static final int TOKEN_NOT
public static final int TOKEN_EQ
public static final int TOKEN_NOT_EQ
public static final int TOKEN_RBRACE
public static final int TOKEN_LBRACE
public static final int TOKEN_GE
public static final int TOKEN_LE
public static final int TOKEN_GT
public static final int TOKEN_LT
public static final int TOKEN_END
Constructor Detail |
---|
public ExpressionTokenizer(java.lang.String expr)
Method Detail |
---|
public boolean hasMoreTokens()
public int getIndex()
protected boolean isMetaChar(char c)
public int nextToken()
public java.lang.String getTokenValue()
|
Apache Tomcat 6.0.53 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |