public class SymbolSet extends Node
| Modifier and Type | Class and Description |
|---|---|
static class |
SymbolSet.SymbolRange
Range of symbols
|
static class |
SymbolSet.TYPE
POSITIVE - add characters and ranges
NEGATIVE - all but characters and ranges
|
| Constructor and Description |
|---|
SymbolSet()
Symbol set containing all symbols
|
SymbolSet(String pattern,
Character[] symbols,
SymbolSet.TYPE type) |
SymbolSet(String pattern,
Collection<SymbolSet.SymbolRange> symbolRanges,
Character[] symbols,
SymbolSet.TYPE type)
Create SymbolSet from ranges and symbols according to type
|
SymbolSet(String pattern,
Collection<SymbolSet.SymbolRange> symbolRanges,
SymbolSet.TYPE type) |
| Modifier and Type | Method and Description |
|---|---|
static Character[] |
getAllSymbols() |
Character[] |
getSymbols() |
Character[] |
getSymbolsCaseInsensitive() |
boolean |
isEmpty() |
String |
toString() |
void |
visit(NodeVisitor visitor) |
getPatternpublic SymbolSet()
public SymbolSet(String pattern, Character[] symbols, SymbolSet.TYPE type)
public SymbolSet(String pattern, Collection<SymbolSet.SymbolRange> symbolRanges, SymbolSet.TYPE type)
public SymbolSet(String pattern, Collection<SymbolSet.SymbolRange> symbolRanges, Character[] symbols, SymbolSet.TYPE type)
pattern - original pattern for the referencesymbolRanges - ranges of symbols to include/excludesymbols - symbols to include/excludetype - POSITIVE - include, NEGATIVE - excludepublic static Character[] getAllSymbols()
public void visit(NodeVisitor visitor)
public Character[] getSymbols()
public Character[] getSymbolsCaseInsensitive()
public boolean isEmpty()
Copyright © 2022. All rights reserved.