AFEVarAttrTest.java
1008 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
41
42
43
44
45
46
/*
* Decompiled with CFR 0_118.
*/
package com.adobe.xfa.text;
import com.adobe.xfa.text.AFEAttrMap;
import com.adobe.xfa.text.AFEVarAttr;
class AFEVarAttrTest
extends AFEVarAttr {
private AFEVarAttr mBase;
private int mIndex;
private Object mValue;
AFEVarAttrTest(AFEAttrMap afeAttrMap) {
super(afeAttrMap);
}
@Override
public boolean equals(Object object) {
return super.equals(object);
}
@Override
public int hashCode() {
return super.hashCode();
}
AFEVarAttr create() {
AFEVarAttr result = new AFEVarAttr(this.mBase);
result.setAttr(this.mIndex, this.mValue);
return result;
}
@Override
Object getAttr(int index) {
return index == this.mIndex ? this.mValue : this.mBase.getAttr(index);
}
void setup(AFEVarAttr base, Object key, Object value) {
this.mBase = base;
this.mIndex = this.getAFEAttrMap().mapAFEIndex(key);
this.mValue = value;
}
}