Package org.sonar.java.regex.ast
Class NonCapturingGroupTree
- java.lang.Object
-
- org.sonar.java.regex.ast.AbstractRegexSyntaxElement
-
- org.sonar.java.regex.ast.RegexTree
-
- org.sonar.java.regex.ast.GroupTree
-
- org.sonar.java.regex.ast.NonCapturingGroupTree
-
- All Implemented Interfaces:
AutomatonState,RegexSyntaxElement
public class NonCapturingGroupTree extends GroupTree
-
-
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 NonCapturingGroupTree(RegexSource source, IndexRange range, FlagSet enabledFlags, FlagSet disabledFlags, RegexTree element, 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).FlagSetgetDisabledFlags()RegexTreegetElement()Can only be null for non-capturing groupsFlagSetgetEnabledFlags()-
Methods inherited from class org.sonar.java.regex.ast.GroupTree
getGroupHeader, incomingTransitionType, kind, setContinuation, setContinuation, successors
-
Methods inherited from class org.sonar.java.regex.ast.RegexTree
activeFlags, continuation, is
-
Methods inherited from class org.sonar.java.regex.ast.AbstractRegexSyntaxElement
getLocations, getRange, getSource, getText
-
-
-
-
Constructor Detail
-
NonCapturingGroupTree
public NonCapturingGroupTree(RegexSource source, IndexRange range, FlagSet enabledFlags, FlagSet disabledFlags, @Nullable RegexTree element, FlagSet activeFlags)
-
-
Method Detail
-
getElement
@CheckForNull public RegexTree getElement()
Description copied from class:GroupTreeCan only be null for non-capturing groups- Overrides:
getElementin classGroupTree
-
getEnabledFlags
public FlagSet getEnabledFlags()
-
getDisabledFlags
public FlagSet getDisabledFlags()
-
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.
-
-