Package org.sonar.java.regex.ast
Class PlainCharacterTree
- java.lang.Object
-
- org.sonar.java.regex.ast.RegexSyntaxElement
-
- org.sonar.java.regex.ast.RegexTree
-
- org.sonar.java.regex.ast.CharacterTree
-
- org.sonar.java.regex.ast.PlainCharacterTree
-
public class PlainCharacterTree extends CharacterTree
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.sonar.java.regex.ast.RegexTree
RegexTree.Kind
-
-
Constructor Summary
Constructors Constructor Description PlainCharacterTree(RegexSource source, IndexRange range, JavaCharacter character)
-
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).StringcharacterAsString()intcodePointOrUnit()chargetCharacter()JavaCharactergetContents()booleanisEscapeSequence()RegexTree.Kindkind()-
Methods inherited from class org.sonar.java.regex.ast.RegexSyntaxElement
getLocations, getRange, getSource, getText
-
-
-
-
Constructor Detail
-
PlainCharacterTree
public PlainCharacterTree(RegexSource source, IndexRange range, JavaCharacter character)
-
-
Method Detail
-
getCharacter
public char getCharacter()
-
getContents
public JavaCharacter getContents()
-
characterAsString
public String characterAsString()
- Specified by:
characterAsStringin classCharacterTree
-
codePointOrUnit
public int codePointOrUnit()
- Specified by:
codePointOrUnitin classCharacterTree
-
isEscapeSequence
public boolean isEscapeSequence()
- Specified by:
isEscapeSequencein classCharacterTree
-
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.
-
kind
public RegexTree.Kind kind()
-
-