first commit
This commit is contained in:
28
hrmsEjb/jxl/biff/formula/RangeSeparator.java
Normal file
28
hrmsEjb/jxl/biff/formula/RangeSeparator.java
Normal file
@@ -0,0 +1,28 @@
|
||||
package jxl.biff.formula;
|
||||
|
||||
import jxl.biff.IntegerHelper;
|
||||
|
||||
class RangeSeparator extends BinaryOperator implements ParsedThing {
|
||||
public String getSymbol() {
|
||||
return ":";
|
||||
}
|
||||
|
||||
Token getToken() {
|
||||
return Token.RANGE;
|
||||
}
|
||||
|
||||
int getPrecedence() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
byte[] getBytes() {
|
||||
setVolatile();
|
||||
setOperandAlternateCode();
|
||||
byte[] funcBytes = super.getBytes();
|
||||
byte[] bytes = new byte[funcBytes.length + 3];
|
||||
System.arraycopy(funcBytes, 0, bytes, 3, funcBytes.length);
|
||||
bytes[0] = Token.MEM_FUNC.getCode();
|
||||
IntegerHelper.getTwoBytes(funcBytes.length, bytes, 1);
|
||||
return bytes;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user