com.oracle.truffle.regex.tregex.matchers.RangeTreeMatcherNodeGen Maven / Gradle / Ivy
// CheckStyle: start generated
package com.oracle.truffle.regex.tregex.matchers;
import com.oracle.truffle.api.dsl.GeneratedBy;
import com.oracle.truffle.api.nodes.NodeCost;
@GeneratedBy(RangeTreeMatcher.class)
public final class RangeTreeMatcherNodeGen extends RangeTreeMatcher {
private RangeTreeMatcherNodeGen(boolean invert, int[] sortedRanges) {
super(invert, sortedRanges);
}
@Override
public boolean execute(int arg0Value) {
return match(arg0Value);
}
@Override
public NodeCost getCost() {
return NodeCost.MONOMORPHIC;
}
public static RangeTreeMatcher create(boolean invert, int[] sortedRanges) {
return new RangeTreeMatcherNodeGen(invert, sortedRanges);
}
}