Package org.sonar.java.regex.ast
Class RegexTree
- java.lang.Object
-
- org.sonar.java.regex.ast.RegexSyntaxElement
-
- org.sonar.java.regex.ast.RegexTree
-
- Direct Known Subclasses:
BackReferenceTree
,BoundaryTree
,CharacterClassIntersectionTree
,CharacterClassTree
,CharacterClassUnionTree
,CharacterRangeTree
,CharacterTree
,DisjunctionTree
,DotTree
,EscapedCharacterClassTree
,GroupTree
,RepetitionTree
,SequenceTree
public abstract class RegexTree extends RegexSyntaxElement
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RegexTree.Kind
-
Constructor Summary
Constructors Constructor Description RegexTree(RegexSource source, IndexRange range)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
accept(RegexVisitor visitor)
This method should only be called by RegexBaseVisitor (or other implementations of the RegexVisitor interface).boolean
is(RegexTree.Kind... kinds)
abstract RegexTree.Kind
kind()
-
Methods inherited from class org.sonar.java.regex.ast.RegexSyntaxElement
getLocations, getRange, getSource, getText
-
-
-
-
Constructor Detail
-
RegexTree
public RegexTree(RegexSource source, IndexRange range)
-
-
Method Detail
-
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)
-
-