Binding.java
3.86 KB
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
package dagger.internal;
import dagger.MembersInjector;
import java.util.Set;
import javax.inject.Provider;
public abstract class Binding<T>
implements MembersInjector<T>, Provider<T>
{
private static final int CYCLE_FREE = 8;
private static final int DEPENDED_ON = 16;
protected static final boolean IS_SINGLETON = true;
private static final int LIBRARY = 32;
private static final int LINKED = 2;
protected static final boolean NOT_SINGLETON = false;
private static final int SINGLETON = 1;
public static final Binding<Object> UNRESOLVED = new Binding(null, null, false, null)
{
public final Object get()
{
throw new AssertionError("Unresolved binding should never be called to inject.");
}
public final void injectMembers(Object paramAnonymousObject)
{
throw new AssertionError("Unresolved binding should never be called to inject.");
}
};
private static final int VISITING = 4;
private int bits;
public final String membersKey;
public final String provideKey;
public final Object requiredBy;
protected Binding(String paramString1, String paramString2, boolean paramBoolean, Object paramObject)
{
if ((paramBoolean) && (paramString1 == null)) {
throw new InvalidBindingException(Keys.getClassName(paramString2), "is exclusively members injected and therefore cannot be scoped");
}
this.provideKey = paramString1;
this.membersKey = paramString2;
this.requiredBy = paramObject;
if (paramBoolean) {}
for (int i = 1;; i = 0)
{
this.bits = i;
return;
}
}
public void attach(Linker paramLinker) {}
public boolean dependedOn()
{
return (this.bits & 0x10) != 0;
}
public T get()
{
throw new UnsupportedOperationException("No injectable constructor on " + getClass().getName());
}
public void getDependencies(Set<Binding<?>> paramSet1, Set<Binding<?>> paramSet2) {}
public void injectMembers(T paramT) {}
public boolean isCycleFree()
{
return (this.bits & 0x8) != 0;
}
public boolean isLinked()
{
return (this.bits & 0x2) != 0;
}
boolean isSingleton()
{
return (this.bits & 0x1) != 0;
}
public boolean isVisiting()
{
return (this.bits & 0x4) != 0;
}
public boolean library()
{
return (this.bits & 0x20) != 0;
}
public void setCycleFree(boolean paramBoolean)
{
if (paramBoolean) {}
for (int i = this.bits | 0x8;; i = this.bits & 0xFFFFFFF7)
{
this.bits = i;
return;
}
}
public void setDependedOn(boolean paramBoolean)
{
if (paramBoolean) {}
for (int i = this.bits | 0x10;; i = this.bits & 0xFFFFFFEF)
{
this.bits = i;
return;
}
}
public void setLibrary(boolean paramBoolean)
{
if (paramBoolean) {}
for (int i = this.bits | 0x20;; i = this.bits & 0xFFFFFFDF)
{
this.bits = i;
return;
}
}
void setLinked()
{
this.bits |= 0x2;
}
public void setVisiting(boolean paramBoolean)
{
if (paramBoolean) {}
for (int i = this.bits | 0x4;; i = this.bits & 0xFFFFFFFB)
{
this.bits = i;
return;
}
}
public String toString()
{
return getClass().getSimpleName() + "[provideKey=\"" + this.provideKey + "\", memberskey=\"" + this.membersKey + "\"]";
}
public static class InvalidBindingException
extends RuntimeException
{
public final String type;
public InvalidBindingException(String paramString1, String paramString2)
{
super();
this.type = paramString1;
}
public InvalidBindingException(String paramString1, String paramString2, Throwable paramThrowable)
{
super(paramThrowable);
this.type = paramString1;
}
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/dagger/internal/Binding.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/