Constructor and Description |
---|
CompoundToken(Token first,
Token second)
Constructs a new
CompoundToken for doing OR character comparisons. |
Modifier and Type | Method and Description |
---|---|
String |
description()
Gets a description of the token.
|
boolean |
matches(char c)
Whether the given character matchers this
Token . |
Token |
or(Token other)
A Utility to create a new
CompoundToken , combining this Token with another one. |
String |
toString() |
public CompoundToken(Token first, Token second)
CompoundToken
for doing OR character comparisons. The descriptions of each will be combined.public String description()
Token
description
in interface Token
public boolean matches(char c)
Token
Token
.public Token or(Token other)
Token
CompoundToken
, combining this Token
with another one. This is useful for OR
character comparisons.or
in interface Token
other
- The other Token
.CompoundToken
instance.Copyright (c) 2019, Salesforce.com, Inc. All rights reserved. Licensed under the BSD 3-Clause license. For full license text, see the LICENSE file in the repository.