Added function to get bases from the current base forward in the window in ReferenceContext
This commit is contained in:
parent
d1f2fe956f
commit
08fab49d30
|
|
@ -955,8 +955,8 @@
|
||||||
<jvmarg value="-Dpipeline.run=${pipeline.run}" />
|
<jvmarg value="-Dpipeline.run=${pipeline.run}" />
|
||||||
<jvmarg value="-Djava.io.tmpdir=${java.io.tmpdir}" />
|
<jvmarg value="-Djava.io.tmpdir=${java.io.tmpdir}" />
|
||||||
<jvmarg line="${cofoja.jvm.args}"/>
|
<jvmarg line="${cofoja.jvm.args}"/>
|
||||||
<!-- <jvmarg value="-Xdebug"/> -->
|
<!-- <jvmarg value="-Xdebug"/> -->
|
||||||
<!-- <jvmarg value="-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5678"/> -->
|
<!-- <jvmarg value="-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005"/> -->
|
||||||
|
|
||||||
<classfileset dir="${java.public.test.classes}" includes="**/@{testtype}.class"/>
|
<classfileset dir="${java.public.test.classes}" includes="**/@{testtype}.class"/>
|
||||||
<classfileset dir="${java.private.test.classes}" erroronmissingdir="false">
|
<classfileset dir="${java.private.test.classes}" erroronmissingdir="false">
|
||||||
|
|
|
||||||
|
|
@ -191,6 +191,16 @@ public class ReferenceContext {
|
||||||
return basesCache;
|
return basesCache;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* All the bases in the window from the current base forward to the end of the window.
|
||||||
|
*/
|
||||||
|
public byte[] getForwardBases() {
|
||||||
|
final byte[] bases = getBases();
|
||||||
|
final int mid = locus.getStart() - window.getStart();
|
||||||
|
// todo -- warning of performance problem, especially if this is called over and over
|
||||||
|
return new String(bases).substring(mid).getBytes();
|
||||||
|
}
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated
|
||||||
public char getBaseAsChar() {
|
public char getBaseAsChar() {
|
||||||
return (char)getBase();
|
return (char)getBase();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue