Class SymbolSet
java.lang.Object
com.github.curiousoddman.rgxgen.nodes.Node
com.github.curiousoddman.rgxgen.nodes.SymbolSet
Generate Any printable character.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSymbolSet(String pattern, RgxGenCharsDefinition positiveGenerationChars, RgxGenCharsDefinition negativeMatchExclusion, MatchType type, SymbolRange universeCharacters) Create SymbolSet from ranges and symbols according to typeSymbolSet(String pattern, List<SymbolRange> symbolRanges, CharList symbols, MatchType type, SymbolRange universeCharacters) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanisAscii()static SymbolSetofAscii(String pattern, RgxGenCharsDefinition positiveMatchDefinitions, RgxGenCharsDefinition negativeMatchDefinitions, MatchType matchType) static SymbolSetstatic SymbolSetofAsciiCharacters(String pattern, char[] symbols, MatchType type) static SymbolSetofAsciiRanges(String pattern, List<SymbolRange> symbolRanges, MatchType type) static SymbolSetofDotPattern(RgxGenProperties properties) static SymbolSetofUnicode(String pattern, RgxGenCharsDefinition positiveMatchDefinitions, RgxGenCharsDefinition negativeMatchDefinitions, MatchType matchType) static SymbolSetstatic SymbolSetofUnicodeCharacterClass(String pattern, UnicodeCategory unicodeCategory, MatchType type) toString()voidvisit(NodeVisitor visitor) Methods inherited from class com.github.curiousoddman.rgxgen.nodes.Node
getPattern
-
Field Details
-
universeCharacters
-
-
Constructor Details
-
SymbolSet
public SymbolSet(String pattern, List<SymbolRange> symbolRanges, CharList symbols, MatchType type, SymbolRange universeCharacters) -
SymbolSet
public SymbolSet(String pattern, RgxGenCharsDefinition positiveGenerationChars, RgxGenCharsDefinition negativeMatchExclusion, MatchType type, SymbolRange universeCharacters) Create SymbolSet from ranges and symbols according to type- Parameters:
pattern- original pattern for the referencepositiveGenerationChars- characters to generate whentypeis POSITIVEnegativeMatchExclusion- characters to exclude whentypeis NEGATIVE; null = use same aspositiveGenerationCharstype- POSITIVE - include, NEGATIVE - excludeuniverseCharacters- characters to exclude from whentypeis NEGATIVE
-
-
Method Details
-
ofDotPattern
-
ofAsciiCharacters
-
ofUnicodeCharacterClass
public static SymbolSet ofUnicodeCharacterClass(String pattern, UnicodeCategory unicodeCategory, MatchType type) -
ofUnicode
-
ofUnicode
public static SymbolSet ofUnicode(String pattern, RgxGenCharsDefinition positiveMatchDefinitions, RgxGenCharsDefinition negativeMatchDefinitions, MatchType matchType) -
ofAscii
-
ofAsciiRanges
public static SymbolSet ofAsciiRanges(String pattern, List<SymbolRange> symbolRanges, MatchType type) -
ofAscii
public static SymbolSet ofAscii(String pattern, RgxGenCharsDefinition positiveMatchDefinitions, RgxGenCharsDefinition negativeMatchDefinitions, MatchType matchType) -
getInvertedNode
-
visit
-
getSymbolSetIndexer
-
getCaseInsensitiveSymbolSetIndexer
-
isAscii
public boolean isAscii() -
getSymbolRanges
-
getSymbols
-
toString
-
hasModifiedExclusionChars
public boolean hasModifiedExclusionChars() -
getNegativeMatchExclusionChars
-