Package org.sonar.java.regex.ast
Class RepetitionTree
- java.lang.Object
-
- org.sonar.java.regex.ast.AbstractRegexSyntaxElement
-
- org.sonar.java.regex.ast.RegexTree
-
- org.sonar.java.regex.ast.RepetitionTree
-
- All Implemented Interfaces:
AutomatonState
,RegexSyntaxElement
public class RepetitionTree 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 RepetitionTree(RegexSource source, IndexRange range, RegexTree element, Quantifier quantifier, FlagSet activeFlags)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(RegexVisitor visitor)
This method should only be called by RegexBaseVisitor (or other implementations of the RegexVisitor interface).RegexTree
getElement()
Quantifier
getQuantifier()
AutomatonState.TransitionType
incomingTransitionType()
boolean
isPossessive()
boolean
isReluctant()
RegexTree.Kind
kind()
void
setContinuation(AutomatonState continuation)
List<AutomatonState>
successors()
-
Methods inherited from class org.sonar.java.regex.ast.RegexTree
activeFlags, continuation, is
-
Methods inherited from class org.sonar.java.regex.ast.AbstractRegexSyntaxElement
getRange, getSource, getText
-
-
-
-
Constructor Detail
-
RepetitionTree
public RepetitionTree(RegexSource source, IndexRange range, RegexTree element, Quantifier quantifier, FlagSet activeFlags)
-
-
Method Detail
-
getElement
public RegexTree getElement()
-
getQuantifier
public Quantifier getQuantifier()
-
isPossessive
public boolean isPossessive()
-
isReluctant
public boolean isReluctant()
-
accept
public void accept(RegexVisitor visitor)
Description copied from class:RegexTree
This 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()
-
incomingTransitionType
@Nonnull public AutomatonState.TransitionType incomingTransitionType()
-
successors
@Nonnull public List<AutomatonState> successors()
-
setContinuation
public void setContinuation(AutomatonState continuation)
- Overrides:
setContinuation
in classRegexTree
-
-