Package org.sonar.java.regex.ast
Class CharacterClassTree
- java.lang.Object
-
- org.sonar.java.regex.ast.AbstractRegexSyntaxElement
-
- org.sonar.java.regex.ast.RegexTree
-
- org.sonar.java.regex.ast.CharacterClassTree
-
- All Implemented Interfaces:
AutomatonState
,CharacterClassElementTree
,RegexSyntaxElement
public class CharacterClassTree extends RegexTree implements CharacterClassElementTree
-
-
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
-
Nested classes/interfaces inherited from interface org.sonar.java.regex.ast.CharacterClassElementTree
CharacterClassElementTree.Kind
-
-
Constructor Summary
Constructors Constructor Description CharacterClassTree(RegexSource source, IndexRange range, SourceCharacter openingBracket, boolean negated, CharacterClassElementTree contents, 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).CharacterClassElementTree.Kind
characterClassElementKind()
CharacterClassElementTree
getContents()
SourceCharacter
getOpeningBracket()
AutomatonState.TransitionType
incomingTransitionType()
boolean
isNegated()
RegexTree.Kind
kind()
-
Methods inherited from class org.sonar.java.regex.ast.RegexTree
activeFlags, continuation, is, setContinuation
-
Methods inherited from class org.sonar.java.regex.ast.AbstractRegexSyntaxElement
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
successors
-
Methods inherited from interface org.sonar.java.regex.ast.CharacterClassElementTree
activeFlags, is
-
Methods inherited from interface org.sonar.java.regex.ast.RegexSyntaxElement
getRange, getSource, getText
-
-
-
-
Constructor Detail
-
CharacterClassTree
public CharacterClassTree(RegexSource source, IndexRange range, SourceCharacter openingBracket, boolean negated, CharacterClassElementTree contents, FlagSet activeFlags)
-
-
Method Detail
-
getContents
public CharacterClassElementTree getContents()
-
isNegated
public boolean isNegated()
-
getOpeningBracket
public SourceCharacter getOpeningBracket()
-
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.- Specified by:
accept
in interfaceCharacterClassElementTree
- Specified by:
accept
in classRegexTree
-
kind
public RegexTree.Kind kind()
-
characterClassElementKind
@Nonnull public CharacterClassElementTree.Kind characterClassElementKind()
- Specified by:
characterClassElementKind
in interfaceCharacterClassElementTree
-
incomingTransitionType
@Nonnull public AutomatonState.TransitionType incomingTransitionType()
- Specified by:
incomingTransitionType
in interfaceAutomatonState
-
-