private static class RewritePolyfills.Polyfill
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) java.lang.String |
installer
Optional "installer" to insert (once) at the top of a source file.
|
(package private) FeatureSet |
nativeVersion
The language version at (or above) which the native symbol is
available and sufficient.
|
(package private) FeatureSet |
polyfillVersion
The required language version for the polyfill to work.
|
(package private) java.lang.String |
rewrite
Optional qualified name to drop-in replace for the native symbol.
|
Constructor and Description |
---|
Polyfill(FeatureSet nativeVersion,
FeatureSet polyfillVersion,
java.lang.String rewrite,
java.lang.String installer) |
final FeatureSet nativeVersion
nativeVersion
then no rewriting will happen.final FeatureSet polyfillVersion
nativeVersion
, but may be the same
in cases where there is no polyfill provided. This is used to
emit a warning if the language out flag is too low.final java.lang.String rewrite
final java.lang.String installer
Polyfill(FeatureSet nativeVersion, FeatureSet polyfillVersion, java.lang.String rewrite, java.lang.String installer)