-
Notifications
You must be signed in to change notification settings - Fork 0
/
SoyProviderFacadeValue.java
86 lines (68 loc) · 2.05 KB
/
SoyProviderFacadeValue.java
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
package com.geniussportsmedia.spikes.soyasync;
import com.google.template.soy.data.LoggingAdvisingAppendable;
import com.google.template.soy.data.SoyValue;
import com.google.template.soy.data.SoyValueProvider;
import com.google.template.soy.jbcsrc.api.RenderResult;
import javax.annotation.Nonnull;
import java.io.IOException;
public class SoyProviderFacadeValue implements SoyValue {
private final SoyValueProvider soyValueProvider;
public SoyProviderFacadeValue(final SoyValueProvider soyValueProvider) {
this.soyValueProvider = soyValueProvider;
}
@Nonnull
@Override
public SoyValue resolve() {
return soyValueProvider.resolve();
}
@Nonnull
@Override
public RenderResult status() {
return soyValueProvider.status();
}
@Override
public RenderResult renderAndResolve(final LoggingAdvisingAppendable appendable,
final boolean b) throws IOException {
return soyValueProvider.renderAndResolve(appendable, b);
}
@Override
public boolean coerceToBoolean() {
return resolve().coerceToBoolean();
}
@Override
public String coerceToString() {
return resolve().coerceToString();
}
@Override
public void render(final LoggingAdvisingAppendable appendable) throws IOException {
resolve().render(appendable);
}
@Override
public void render(final Appendable appendable) throws IOException {
resolve().render(appendable);
}
@Override
public boolean booleanValue() {
return resolve().booleanValue();
}
@Override
public int integerValue() {
return resolve().integerValue();
}
@Override
public long longValue() {
return resolve().longValue();
}
@Override
public double floatValue() {
return resolve().floatValue();
}
@Override
public double numberValue() {
return resolve().numberValue();
}
@Override
public String stringValue() {
return resolve().stringValue();
}
}