Class BackReferenceTree
- java.lang.Object
-
- org.sonarsource.analyzer.commons.regex.ast.AbstractRegexSyntaxElement
-
- org.sonarsource.analyzer.commons.regex.ast.RegexTree
-
- org.sonarsource.analyzer.commons.regex.ast.BackReferenceTree
-
- All Implemented Interfaces:
AutomatonState,RegexSyntaxElement
public class BackReferenceTree extends RegexTree
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.sonarsource.analyzer.commons.regex.ast.RegexTree
RegexTree.Kind
-
Nested classes/interfaces inherited from interface org.sonarsource.analyzer.commons.regex.ast.AutomatonState
AutomatonState.TransitionType
-
-
Constructor Summary
Constructors Constructor Description BackReferenceTree(RegexSource source, SourceCharacter opener, SourceCharacter key, SourceCharacter start, SourceCharacter end, FlagSet activeFlags)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(RegexVisitor visitor)This method should only be called by RegexBaseVisitor (or other implementations of the RegexVisitor interface).CapturingGroupTreegroup()StringgroupName()intgroupNumber()AutomatonState.TransitionTypeincomingTransitionType()booleanisNamedGroup()booleanisNumerical()RegexTree.Kindkind()voidsetGroup(CapturingGroupTree group)-
Methods inherited from class org.sonarsource.analyzer.commons.regex.ast.RegexTree
activeFlags, continuation, is, setContinuation, toRegexTree
-
Methods inherited from class org.sonarsource.analyzer.commons.regex.ast.AbstractRegexSyntaxElement
getRange, getSource, getText
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.sonarsource.analyzer.commons.regex.ast.AutomatonState
successors
-
-
-
-
Constructor Detail
-
BackReferenceTree
public BackReferenceTree(RegexSource source, SourceCharacter opener, @Nullable SourceCharacter key, SourceCharacter start, SourceCharacter end, FlagSet activeFlags)
-
-
Method Detail
-
setGroup
public void setGroup(@Nullable CapturingGroupTree group)
-
group
@Nullable public CapturingGroupTree group()
-
accept
public void accept(RegexVisitor visitor)
Description copied from class:RegexTreeThis method should only be called by RegexBaseVisitor (or other implementations of the RegexVisitor interface). Do not call this method to invoke a visitor, use visitor.visit(tree) instead.
-
kind
public RegexTree.Kind kind()
-
isNamedGroup
public boolean isNamedGroup()
-
isNumerical
public boolean isNumerical()
-
groupName
public String groupName()
-
groupNumber
public int groupNumber()
-
incomingTransitionType
@Nonnull public AutomatonState.TransitionType incomingTransitionType()
-
-