Package ch.usi.si.seart.treesitter
Class Pattern
- java.lang.Object
-
- ch.usi.si.seart.treesitter.Pattern
-
public class Pattern extends Object
Represents a single symbolic expression (s-expression) pattern of aQuery. Said pattern is a structured representation of a syntax tree fragment, which can be used to query subtrees. Each instance can be uniquely identified by the query it belongs to, along with its ordinal position within the same query.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddisable()Disable this pattern, preventing it from further matching.booleanequals(Object o)intgetEndOffset()inthashCode()StringtoString()
-
-
-
Method Detail
-
disable
public void disable()
Disable this pattern, preventing it from further matching. This will eliminate any resource usage from theQueryassociated with the pattern.This can not be undone.
-
getEndOffset
public int getEndOffset()
-
-