KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > poi > hssf > record > formula > MissingArgPtg


1 /* ====================================================================
2    Copyright 2003-2004 Apache Software Foundation
3
4    Licensed under the Apache License, Version 2.0 (the "License");
5    you may not use this file except in compliance with the License.
6    You may obtain a copy of the License at
7
8        http://www.apache.org/licenses/LICENSE-2.0
9
10    Unless required by applicable law or agreed to in writing, software
11    distributed under the License is distributed on an "AS IS" BASIS,
12    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13    See the License for the specific language governing permissions and
14    limitations under the License.
15 ==================================================================== */

16
17 package org.apache.poi.hssf.record.formula;
18
19 import org.apache.poi.hssf.model.Workbook;
20
21 /**
22  * Missing Function Arguments
23  *
24  * Avik Sengupta <avik at apache.org>
25  * @author Jason Height (jheight at chariot dot net dot au)
26  */

27 public class MissingArgPtg
28     extends Ptg
29 {
30    
31     private final static int SIZE = 1;
32     public final static byte sid = 0x16;
33    
34     public MissingArgPtg()
35     {
36     }
37
38     public MissingArgPtg(byte [] data, int offset)
39     {
40        // doesn't need anything
41
}
42     
43   
44      
45     public void writeBytes(byte [] array, int offset)
46     {
47         array[ offset + 0 ] = sid;
48     }
49
50     public int getSize()
51     {
52         return SIZE;
53     }
54
55    
56     public String JavaDoc toFormulaString(Workbook book)
57     {
58         return " ";
59     }
60     
61     public byte getDefaultOperandClass() {return Ptg.CLASS_VALUE;}
62         
63     public Object JavaDoc clone() {
64       return new MissingArgPtg();
65     }
66
67 }
68
Popular Tags