Package org.sonar.java.regex.ast
Class GroupTree
- java.lang.Object
-
- org.sonar.java.regex.ast.RegexSyntaxElement
-
- org.sonar.java.regex.ast.RegexTree
-
- org.sonar.java.regex.ast.GroupTree
-
- 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
-
-
Constructor Summary
Constructors Constructor Description GroupTree(RegexSource source, RegexTree.Kind kind, RegexTree element, IndexRange range)
-
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 :.RegexTree.Kind
kind()
-
Methods inherited from class org.sonar.java.regex.ast.RegexSyntaxElement
getLocations, getRange, getSource, getText
-
-
-
-
Constructor Detail
-
GroupTree
public GroupTree(RegexSource source, RegexTree.Kind kind, @Nullable RegexTree element, IndexRange range)
-
-
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.
-
-