public class Feature extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ALWAYS |
static String |
GATED |
| Constructor and Description |
|---|
Feature(String name)
Construct a feature that is not gated nor always loaded
|
Feature(String name,
boolean isGated,
boolean isAlways)
Construct a feature
|
Feature(String name,
Feature feature)
Construct a feature and inherit another feature's attributes

Used when the other feature requires this feature
|
| Modifier and Type | Method and Description |
|---|---|
void |
copyFlags(Feature feature) |
void |
copyRequiredBys(Feature feature) |
String |
getName() |
Polyfill |
getPolyfill() |
List<String> |
getRequiredBys() |
boolean |
isAlways() |
boolean |
isGated() |
void |
setAlways(boolean isAlways) |
void |
setGated(boolean isGated) |
void |
setPolyfill(Polyfill polyfill) |
public static final String ALWAYS
public static final String GATED
public Feature(String name)
name - name of the featurepublic Feature(String name, boolean isGated, boolean isAlways)
name - name of the featureisGated - whether getSource() should wrap source code with detection codeisAlways - whether to tell service to always load this featurepublic String getName()
public boolean isAlways()
public void setAlways(boolean isAlways)
public boolean isGated()
public void setGated(boolean isGated)
public void copyRequiredBys(Feature feature)
public void setPolyfill(Polyfill polyfill)
public Polyfill getPolyfill()
public void copyFlags(Feature feature)
Copyright © 2017. All rights reserved.