Class SymbolSet
- java.lang.Object
-
- com.github.curiousoddman.rgxgen.nodes.Node
-
- com.github.curiousoddman.rgxgen.nodes.SymbolSet
-
public class SymbolSet extends Node
Generate Any printable character.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSymbolSet.SymbolRangeRange of symbolsstatic classSymbolSet.TYPEPOSITIVE - add characters and ranges NEGATIVE - all but characters and ranges
-
Constructor Summary
Constructors Constructor Description SymbolSet()Symbol set containing all symbolsSymbolSet(String pattern, Character[] symbols, SymbolSet.TYPE type)SymbolSet(String pattern, Collection<SymbolSet.SymbolRange> symbolRanges, SymbolSet.TYPE type)SymbolSet(String pattern, Collection<SymbolSet.SymbolRange> symbolRanges, Character[] symbols, SymbolSet.TYPE type)Create SymbolSet from ranges and symbols according to type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Character[]getAllSymbols()Character[]getSymbols()Character[]getSymbolsCaseInsensitive()booleanisEmpty()StringtoString()voidvisit(NodeVisitor visitor)-
Methods inherited from class com.github.curiousoddman.rgxgen.nodes.Node
getPattern
-
-
-
-
Constructor Detail
-
SymbolSet
public SymbolSet()
Symbol set containing all symbols
-
SymbolSet
public SymbolSet(String pattern, Character[] symbols, SymbolSet.TYPE type)
-
SymbolSet
public SymbolSet(String pattern, Collection<SymbolSet.SymbolRange> symbolRanges, SymbolSet.TYPE type)
-
SymbolSet
public SymbolSet(String pattern, Collection<SymbolSet.SymbolRange> symbolRanges, Character[] symbols, SymbolSet.TYPE type)
Create SymbolSet from ranges and symbols according to type- Parameters:
pattern- original pattern for the referencesymbolRanges- ranges of symbols to include/excludesymbols- symbols to include/excludetype- POSITIVE - include, NEGATIVE - exclude
-
-
Method Detail
-
getAllSymbols
public static Character[] getAllSymbols()
-
visit
public void visit(NodeVisitor visitor)
-
getSymbols
public Character[] getSymbols()
-
getSymbolsCaseInsensitive
public Character[] getSymbolsCaseInsensitive()
-
isEmpty
public boolean isEmpty()
-
-