Uses of Class
org.sonarsource.analyzer.commons.regex.ast.RegexTree
-
Packages that use RegexTree Package Description org.sonarsource.analyzer.commons.regex org.sonarsource.analyzer.commons.regex.ast org.sonarsource.analyzer.commons.regex.helpers -
-
Uses of RegexTree in org.sonarsource.analyzer.commons.regex
Methods in org.sonarsource.analyzer.commons.regex that return RegexTree Modifier and Type Method Description RegexTreeRegexParseResult. getResult()protected RegexTreeRegexParser. parseBoundary(SourceCharacter backslash)protected RegexTreeRegexParser. parseControlSequence(SourceCharacter backslash)protected RegexTreeRegexParser. parseDisjunction()protected RegexTreeRegexParser. parseEscapedCharacterClass(SourceCharacter backslash)protected RegexTreeRegexParser. parseEscapedProperty(SourceCharacter backslash)protected RegexTreeRegexParser. parseEscapedSequence(char opener, char closer, String expected, Function<RegexParser.EscapedSequenceDataHolder,RegexTree> builder)protected RegexTreeRegexParser. parseEscapeSequence()protected RegexTreeRegexParser. parseHexEscape(SourceCharacter backslash)protected RegexTreeRegexParser. parseNamedBackReference(SourceCharacter backslash)protected RegexTreeRegexParser. parseNamedBackReference(SourceCharacter backslash, char opener, char closer)protected RegexTreeRegexParser. parseNamedUnicodeCharacter(SourceCharacter backslash)protected RegexTreeRegexParser. parseNumericalBackReference(SourceCharacter backslash)Parses a numerical back reference greedily, taking as many numbers as it can.protected RegexTreeRegexParser. parseOctalEscape(SourceCharacter backslash)protected RegexTreeRegexParser. parsePrimaryExpression()protected RegexTreeRegexParser. parseRepetition()protected RegexTreeRegexParser. parseSequence()protected RegexTreeRegexParser. parseUnicodeEscape(SourceCharacter backslash)Methods in org.sonarsource.analyzer.commons.regex with parameters of type RegexTree Modifier and Type Method Description ReferenceConditionTreeRegexParser. conditionGroupReference(RegexSource source, IndexRange range, CharacterTree plus, RegexTree inner, FlagSet activeFlags)GroupTreeRegexParser.GroupConstructor. construct(IndexRange range, RegexTree element)Method parameters in org.sonarsource.analyzer.commons.regex with type arguments of type RegexTree Modifier and Type Method Description protected RegexTreeRegexParser. parseEscapedSequence(char opener, char closer, String expected, Function<RegexParser.EscapedSequenceDataHolder,RegexTree> builder)Constructors in org.sonarsource.analyzer.commons.regex with parameters of type RegexTree Constructor Description RegexParseResult(RegexTree result, StartState startState, FinalState finalState, List<SyntaxError> syntaxErrors, boolean containsComments) -
Uses of RegexTree in org.sonarsource.analyzer.commons.regex.ast
Subclasses of RegexTree in org.sonarsource.analyzer.commons.regex.ast Modifier and Type Class Description classAtomicGroupTreeclassBackReferenceTreeclassBoundaryTreeclassCapturingGroupTreeclassCharacterClassTreeclassCharacterTreeclassConditionalSubpatternTreeclassDisjunctionTreeclassDotTreeclassEscapedCharacterClassTreeclassGroupTreeclassLookAroundTreeclassMiscEscapeSequenceTreeThis class represents escape sequences inside regular expression that we don't particularly care about.classNonCapturingGroupTreeclassReferenceConditionTreeclassRepetitionTreeclassSequenceTreeFields in org.sonarsource.analyzer.commons.regex.ast declared as RegexTree Modifier and Type Field Description protected RegexTreeGroupTree. elementCan only be null for non-capturing groups (by design).Methods in org.sonarsource.analyzer.commons.regex.ast that return RegexTree Modifier and Type Method Description RegexTreeAtomicGroupTree. getElement()RegexTreeCapturingGroupTree. getElement()RegexTreeGroupTree. getElement()Can only be null for non-capturing groupsRegexTreeLookAroundTree. getElement()RegexTreeNonCapturingGroupTree. getElement()RegexTreeRepetitionTree. getElement()RegexTreeConditionalSubpatternTree. getNoPattern()RegexTreeConditionalSubpatternTree. getYesPattern()Methods in org.sonarsource.analyzer.commons.regex.ast that return types with arguments of type RegexTree Modifier and Type Method Description List<RegexTree>DisjunctionTree. getAlternatives()List<RegexTree>SequenceTree. getItems()default Optional<RegexTree>AutomatonState. toRegexTree()Optional<RegexTree>RegexTree. toRegexTree()Methods in org.sonarsource.analyzer.commons.regex.ast with parameters of type RegexTree Modifier and Type Method Description protected static StringRegexBaseVisitor. backslash(RegexTree tree)In some languages backslashes in strings must be escaped explicitly.static LookAroundTreeLookAroundTree. negativeLookAhead(RegexSource source, IndexRange range, RegexTree element, FlagSet activeFlags)static LookAroundTreeLookAroundTree. negativeLookBehind(RegexSource source, IndexRange range, RegexTree element, FlagSet activeFlags)static LookAroundTreeLookAroundTree. positiveLookAhead(RegexSource source, IndexRange range, RegexTree element, FlagSet activeFlags)static LookAroundTreeLookAroundTree. positiveLookBehind(RegexSource source, IndexRange range, RegexTree element, FlagSet activeFlags)protected voidConditionalSubpatternTree. setContinuation(AutomatonState continuation, RegexTree element)protected voidGroupTree. setContinuation(AutomatonState continuation, RegexTree element)protected static booleanRegexBaseVisitor. supportsAnyOfFeatures(RegexTree tree, RegexFeature... features)voidRegexBaseVisitor. visit(RegexTree tree)Constructor parameters in org.sonarsource.analyzer.commons.regex.ast with type arguments of type RegexTree Constructor Description DisjunctionTree(RegexSource source, IndexRange range, List<RegexTree> alternatives, List<SourceCharacter> orOperators, FlagSet activeFlags)SequenceTree(RegexSource source, IndexRange range, List<RegexTree> items, FlagSet activeFlags) -
Uses of RegexTree in org.sonarsource.analyzer.commons.regex.helpers
Methods in org.sonarsource.analyzer.commons.regex.helpers with parameters of type RegexTree Modifier and Type Method Description IndexRangeBranchTrackingVisitor. getPredecessorsRangeOf(RegexTree tree)Return the range containing all predecessors of the node.
-