biojs-vis-pdbviewer
Version:
A BioJS 2.0 component to view protein structures
12 lines (11 loc) • 439 B
JavaScript
Clazz.declarePackage ("JU");
Clazz.load (["J.api.JmolPatternMatcher"], "JU.PatternMatcher", ["java.util.regex.Pattern"], function () {
c$ = Clazz.declareType (JU, "PatternMatcher", null, J.api.JmolPatternMatcher);
Clazz.makeConstructor (c$,
function () {
});
Clazz.overrideMethod (c$, "compile",
function (sFind, isCaseInsensitive) {
return java.util.regex.Pattern.compile (sFind, isCaseInsensitive ? 2 : 0);
}, "~S,~B");
});