1 19 20 package jxl.biff.formula; 21 22 import java.util.Stack ; 23 24 import jxl.biff.IntegerHelper; 25 26 31 class RangeSeparator extends BinaryOperator implements ParsedThing 32 { 33 36 public RangeSeparator() 37 { 38 } 39 40 public String getSymbol() 41 { 42 return ":"; 43 } 44 45 50 Token getToken() 51 { 52 return Token.RANGE; 53 } 54 55 61 int getPrecedence() 62 { 63 return 1; 64 } 65 66 72 byte[] getBytes() 73 { 74 setVolatile(); 75 setOperandAlternateCode(); 76 77 byte[] funcBytes = super.getBytes(); 78 79 byte[] bytes = new byte[funcBytes.length+3]; 80 System.arraycopy(funcBytes, 0, bytes, 3, funcBytes.length); 81 82 bytes[0] = Token.MEM_FUNC.getCode(); 84 IntegerHelper.getTwoBytes(funcBytes.length, bytes, 1); 85 86 return bytes; 87 } 88 89 } 90 | Popular Tags |