1 | package com.hammurapi.eventbus.tests.familyties.rules; |
2 | |
3 | import java.io.ObjectInputStream; |
4 | import java.util.List; |
5 | import java.util.Map; |
6 | |
7 | import com.hammurapi.extract.CompiledExtractorBase; |
8 | import com.hammurapi.extract.Extractor; |
9 | import com.hammurapi.extract.Predicate; |
10 | |
11 | @SuppressWarnings("unchecked") |
12 | class Extractor65 extends CompiledExtractorBase<java.lang.Object, java.lang.Object, com.hammurapi.eventbus.tests.familyties.rules.FamilyTiesRules> { |
13 | |
14 | /** |
15 | * Class identity for comparison with other classes. |
16 | */ |
17 | private static final List<Object> IDENTITY; |
18 | |
19 | static { |
20 | try { |
21 | ObjectInputStream ois = new ObjectInputStream(Extractor65.class.getResourceAsStream("Extractor65.identity")); |
22 | try { |
23 | IDENTITY = (List<Object>) ois.readObject(); |
24 | } finally { |
25 | ois.close(); |
26 | } |
27 | } catch (Exception e) { |
28 | throw new ExceptionInInitializerError(e); |
29 | } |
30 | } |
31 | |
32 | Extractor65(int[] map) { |
33 | super(map, false, 1); |
34 | } |
35 | |
36 | @Override |
37 | protected java.lang.Object extractInternal(com.hammurapi.eventbus.tests.familyties.rules.FamilyTiesRules eCtx, Map<com.hammurapi.eventbus.tests.familyties.rules.FamilyTiesRules, Map<Extractor<java.lang.Object, ? super java.lang.Object, com.hammurapi.eventbus.tests.familyties.rules.FamilyTiesRules>, ? super java.lang.Object>> cache, java.lang.Object... obj) { |
38 | |
39 | com.hammurapi.eventbus.tests.familyties.model.Parent parent = (com.hammurapi.eventbus.tests.familyties.model.Parent) obj[mapArg(1)]; |
40 | |
41 | return parent.getSubject(); |
42 | } |
43 | |
44 | @Override |
45 | protected List<Object> getIdentity() { |
46 | return IDENTITY; |
47 | } |
48 | |
49 | @Override |
50 | protected CompiledExtractorBase<java.lang.Object, java.lang.Object, com.hammurapi.eventbus.tests.familyties.rules.FamilyTiesRules> newInstance(int[] map) { |
51 | return new Extractor65(map); |
52 | } |
53 | |
54 | public String toString() { |
55 | return getClass().getName()+" [Expression = parent.getSubject(), Parameters = [Parameter[idx=0, type=class com.hammurapi.eventbus.tests.familyties.model.Parent, name=parent]], Parameter indices = "+parameterIndices()+"]"; |
56 | } |
57 | |
58 | } |