Package org.sonar.java.regex.ast
Class BackReferenceTree
- java.lang.Object
-
- org.sonar.java.regex.ast.AbstractRegexSyntaxElement
-
- org.sonar.java.regex.ast.RegexTree
-
- org.sonar.java.regex.ast.BackReferenceTree
-
- All Implemented Interfaces:
AutomatonState,RegexSyntaxElement
public class BackReferenceTree extends RegexTree
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.sonar.java.regex.ast.RegexTree
RegexTree.Kind
-
Nested classes/interfaces inherited from interface org.sonar.java.regex.ast.AutomatonState
AutomatonState.TransitionType
-
-
Constructor Summary
Constructors Constructor Description BackReferenceTree(RegexSource source, JavaCharacter backslash, JavaCharacter key, JavaCharacter start, JavaCharacter 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).StringgroupName()intgroupNumber()AutomatonState.TransitionTypeincomingTransitionType()booleanisNamedGroup()booleanisNumerical()RegexTree.Kindkind()-
Methods inherited from class org.sonar.java.regex.ast.RegexTree
activeFlags, continuation, is, setContinuation
-
Methods inherited from class org.sonar.java.regex.ast.AbstractRegexSyntaxElement
getLocations, 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.sonar.java.regex.ast.AutomatonState
successors
-
-
-
-
Constructor Detail
-
BackReferenceTree
public BackReferenceTree(RegexSource source, JavaCharacter backslash, @Nullable JavaCharacter key, JavaCharacter start, JavaCharacter end, FlagSet activeFlags)
-
-
Method Detail
-
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()
-
-