Package org.sonar.java.regex.ast
Class GroupTree
- java.lang.Object
-
- org.sonar.java.regex.ast.AbstractRegexSyntaxElement
-
- org.sonar.java.regex.ast.RegexTree
-
- org.sonar.java.regex.ast.GroupTree
-
- All Implemented Interfaces:
AutomatonState
,RegexSyntaxElement
- Direct Known Subclasses:
AtomicGroupTree
,CapturingGroupTree
,LookAroundTree
,NonCapturingGroupTree
public abstract class GroupTree 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 Modifier Constructor Description protected
GroupTree(RegexSource source, RegexTree.Kind kind, RegexTree element, IndexRange range, FlagSet activeFlags)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RegexTree
getElement()
Can only be null for non-capturing groupsRegexToken
getGroupHeader()
The opening sequence of the group from the ( to the :.AutomatonState.TransitionType
incomingTransitionType()
RegexTree.Kind
kind()
void
setContinuation(AutomatonState continuation)
protected void
setContinuation(AutomatonState continuation, RegexTree element)
List<AutomatonState>
successors()
-
Methods inherited from class org.sonar.java.regex.ast.RegexTree
accept, activeFlags, continuation, is
-
Methods inherited from class org.sonar.java.regex.ast.AbstractRegexSyntaxElement
getRange, getSource, getText
-
-
-
-
Constructor Detail
-
GroupTree
protected GroupTree(RegexSource source, RegexTree.Kind kind, @Nullable RegexTree element, IndexRange range, FlagSet activeFlags)
-
-
Method Detail
-
kind
public final RegexTree.Kind kind()
-
getGroupHeader
@Nullable public RegexToken getGroupHeader()
The opening sequence of the group from the ( to the :. Returns null for non-capturing groups without a colon/body.
-
successors
@Nonnull public List<AutomatonState> successors()
-
incomingTransitionType
@Nonnull public AutomatonState.TransitionType incomingTransitionType()
-
setContinuation
public void setContinuation(AutomatonState continuation)
- Overrides:
setContinuation
in classRegexTree
-
setContinuation
protected void setContinuation(AutomatonState continuation, @Nullable RegexTree element)
-
-