Package org.sonar.java.regex.ast
Class RegexTree
- java.lang.Object
-
- org.sonar.java.regex.ast.AbstractRegexSyntaxElement
-
- org.sonar.java.regex.ast.RegexTree
-
- All Implemented Interfaces:
AutomatonState,RegexSyntaxElement
- Direct Known Subclasses:
BackReferenceTree,BoundaryTree,CharacterClassTree,CharacterTree,DisjunctionTree,DotTree,EscapedCharacterClassTree,GroupTree,MiscEscapeSequenceTree,RepetitionTree,SequenceTree
public abstract class RegexTree extends AbstractRegexSyntaxElement implements AutomatonState
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRegexTree.Kind-
Nested classes/interfaces inherited from interface org.sonar.java.regex.ast.AutomatonState
AutomatonState.TransitionType
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedRegexTree(RegexSource source, IndexRange range, FlagSet activeFlags)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidaccept(RegexVisitor visitor)This method should only be called by RegexBaseVisitor (or other implementations of the RegexVisitor interface).FlagSetactiveFlags()AutomatonStatecontinuation()This will only return null when called on the end-of-regex statebooleanis(RegexTree.Kind... kinds)abstract RegexTree.Kindkind()voidsetContinuation(AutomatonState continuation)-
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
incomingTransitionType, successors
-
-
-
-
Constructor Detail
-
RegexTree
protected RegexTree(RegexSource source, IndexRange range, FlagSet activeFlags)
-
-
Method Detail
-
activeFlags
@Nonnull public FlagSet activeFlags()
- Specified by:
activeFlagsin interfaceAutomatonState
-
accept
public abstract void accept(RegexVisitor visitor)
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 abstract RegexTree.Kind kind()
-
is
public boolean is(RegexTree.Kind... kinds)
-
continuation
@Nonnull public AutomatonState continuation()
Description copied from interface:AutomatonStateThis will only return null when called on the end-of-regex state- Specified by:
continuationin interfaceAutomatonState
-
setContinuation
public void setContinuation(AutomatonState continuation)
-
-