public class TokenFactory extends Object
Tokens can be instantiated from an expression which is specific to each token.
TokenLiteral,
TokenVariable,
TokenOperatorPS| Modifier and Type | Class and Description |
|---|---|
static class |
TokenFactory.Syntax
A syntax to use for creating tokens.
|
| Modifier and Type | Method and Description |
|---|---|
static TokenFactory |
getInstance()
Returns a token factory instance using the default syntax (DRAFTX).
|
Token |
newToken(String exp)
Generates the token corresponding to the specified expression.
|
public Token newToken(String exp)
exp - The expression.URITemplateSyntaxException - If the expression could not be parsed as a valid token.public static TokenFactory getInstance()
Copyright © 2025. All rights reserved.