类的使用
org.antlr.misc.Interval
-
使用Interval的程序包 程序包 说明 org.antlr.misc -
-
org.antlr.misc中Interval的使用
类型参数类型为Interval的org.antlr.misc中的字段 修饰符和类型 字段 说明 protected java.util.List<Interval>
IntervalSet. intervals
The list of sorted, disjoint intervals.返回Interval的org.antlr.misc中的方法 修饰符和类型 方法 说明 static Interval
Interval. create(int a, int b)
Interval objects are used readonly so share all with the same single value a==b up to some max size.Interval
Interval. differenceNotProperlyContained(Interval other)
Return the interval with elements from this not in other; other must not be totally enclosed (properly contained) within this, which would result in two disjoint intervals instead of the single one returned by this method.Interval
Interval. intersection(Interval other)
Return the interval in common between this and oInterval
Interval. union(Interval other)
Return the interval computed from combining this and other返回变量类型为Interval的类型的org.antlr.misc中的方法 修饰符和类型 方法 说明 java.util.List<Interval>
IntervalSet. getIntervals()
Return a list of Interval objects.参数类型为Interval的org.antlr.misc中的方法 修饰符和类型 方法 说明 protected void
IntervalSet. add(Interval addition)
boolean
Interval. adjacent(Interval other)
Are two intervals adjacent such as 0..41 and 42..42?Interval
Interval. differenceNotProperlyContained(Interval other)
Return the interval with elements from this not in other; other must not be totally enclosed (properly contained) within this, which would result in two disjoint intervals instead of the single one returned by this method.boolean
Interval. disjoint(Interval other)
Are both ranges disjoint? I.e., no overlap?Interval
Interval. intersection(Interval other)
Return the interval in common between this and oboolean
Interval. properlyContains(Interval other)
boolean
Interval. startsAfter(Interval other)
Does this.a start after other.b? May or may not be disjointboolean
Interval. startsAfterDisjoint(Interval other)
Does this start completely after other? Disjointboolean
Interval. startsAfterNonDisjoint(Interval other)
Does this start after other? NonDisjointboolean
Interval. startsBeforeDisjoint(Interval other)
Does this start completely before other? Disjointboolean
Interval. startsBeforeNonDisjoint(Interval other)
Does this start at or before other? NondisjointInterval
Interval. union(Interval other)
Return the interval computed from combining this and other类型变量类型为Interval的org.antlr.misc中的构造器参数 构造器 说明 IntervalSet(java.util.List<Interval> intervals)
-