| |
|
| java.lang.Object org.apache.catalina.ssi.ExpressionTokenizer
ExpressionTokenizer | public class ExpressionTokenizer (Code) | | 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.
version: $Revision: 531303 $ author: Paul Speed |
Method Summary | |
public int | getIndex() Returns the current index for error reporting purposes. | public String | getTokenValue() Returns the String value of the token if it was type TOKEN_STRING. | public boolean | hasMoreTokens() Returns true if there are more tokens. | protected boolean | isMetaChar(char c) | public int | nextToken() Returns the next token type and initializes any state variables
accordingly. |
TOKEN_AND | final public static int TOKEN_AND(Code) | | |
TOKEN_END | final public static int TOKEN_END(Code) | | |
TOKEN_EQ | final public static int TOKEN_EQ(Code) | | |
TOKEN_GE | final public static int TOKEN_GE(Code) | | |
TOKEN_GT | final public static int TOKEN_GT(Code) | | |
TOKEN_LBRACE | final public static int TOKEN_LBRACE(Code) | | |
TOKEN_LE | final public static int TOKEN_LE(Code) | | |
TOKEN_LT | final public static int TOKEN_LT(Code) | | |
TOKEN_NOT | final public static int TOKEN_NOT(Code) | | |
TOKEN_NOT_EQ | final public static int TOKEN_NOT_EQ(Code) | | |
TOKEN_OR | final public static int TOKEN_OR(Code) | | |
TOKEN_RBRACE | final public static int TOKEN_RBRACE(Code) | | |
TOKEN_STRING | final public static int TOKEN_STRING(Code) | | |
ExpressionTokenizer | public ExpressionTokenizer(String expr)(Code) | | Creates a new parser for the specified expression.
|
getIndex | public int getIndex()(Code) | | Returns the current index for error reporting purposes.
|
getTokenValue | public String getTokenValue()(Code) | | Returns the String value of the token if it was type TOKEN_STRING.
Otherwise null is returned.
|
hasMoreTokens | public boolean hasMoreTokens()(Code) | | Returns true if there are more tokens.
|
isMetaChar | protected boolean isMetaChar(char c)(Code) | | |
nextToken | public int nextToken()(Code) | | Returns the next token type and initializes any state variables
accordingly.
|
|
|
|