Package org.sonar.java.regex.ast
Class LookAroundTree
- java.lang.Object
-
- org.sonar.java.regex.ast.RegexSyntaxElement
-
- org.sonar.java.regex.ast.RegexTree
-
- org.sonar.java.regex.ast.GroupTree
-
- org.sonar.java.regex.ast.LookAroundTree
-
public class LookAroundTree extends GroupTree
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLookAroundTree.Directionstatic classLookAroundTree.Polarity-
Nested classes/interfaces inherited from class org.sonar.java.regex.ast.RegexTree
RegexTree.Kind
-
-
Constructor Summary
Constructors Constructor Description LookAroundTree(RegexSource source, IndexRange range, LookAroundTree.Polarity polarity, LookAroundTree.Direction direction, RegexTree element)
-
Method Summary
All Methods Static 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).LookAroundTree.DirectiongetDirection()LookAroundTree.PolaritygetPolarity()static LookAroundTreenegativeLookAhead(RegexSource source, IndexRange range, RegexTree element)static LookAroundTreenegativeLookBehind(RegexSource source, IndexRange range, RegexTree element)static LookAroundTreepositiveLookAhead(RegexSource source, IndexRange range, RegexTree element)static LookAroundTreepositiveLookBehind(RegexSource source, IndexRange range, RegexTree element)-
Methods inherited from class org.sonar.java.regex.ast.GroupTree
getElement, getGroupHeader, kind
-
Methods inherited from class org.sonar.java.regex.ast.RegexSyntaxElement
getLocations, getRange, getSource, getText
-
-
-
-
Constructor Detail
-
LookAroundTree
public LookAroundTree(RegexSource source, IndexRange range, LookAroundTree.Polarity polarity, LookAroundTree.Direction direction, RegexTree element)
-
-
Method Detail
-
getPolarity
public LookAroundTree.Polarity getPolarity()
-
getDirection
public LookAroundTree.Direction getDirection()
-
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.
-
positiveLookAhead
public static LookAroundTree positiveLookAhead(RegexSource source, IndexRange range, RegexTree element)
-
negativeLookAhead
public static LookAroundTree negativeLookAhead(RegexSource source, IndexRange range, RegexTree element)
-
positiveLookBehind
public static LookAroundTree positiveLookBehind(RegexSource source, IndexRange range, RegexTree element)
-
negativeLookBehind
public static LookAroundTree negativeLookBehind(RegexSource source, IndexRange range, RegexTree element)
-
-