RawCounter.java
729 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
* Decompiled with CFR 0_118.
*/
package com.adobe.xfa.text;
import com.adobe.xfa.text.DispRaw;
import com.adobe.xfa.text.FormatInfo;
import com.adobe.xfa.text.PosnStack;
class RawCounter
extends DispRaw {
private int mnCount = 0;
RawCounter(FormatInfo oFormatInfo, PosnStack oPosnStack) {
super(oFormatInfo, oPosnStack);
}
int getCount() {
return this.mnCount;
}
@Override
protected boolean onChar(int c, int eData) {
++this.mnCount;
return false;
}
@Override
protected boolean onObject() {
++this.mnCount;
return false;
}
@Override
protected boolean onPara() {
++this.mnCount;
return false;
}
}