Class FeatureType<F extends Feature<F>>
java.lang.Object
org.inferred.freebuilder.processor.source.feature.FeatureType<F>
Algorithm to select the correct instance of a given feature type for a processing environment,
and the default to use in tests when an explicit value has not been registered for that feature.
Each feature class should expose a single FeatureType constant for the user to pass
to SourceBuilder.feature(FeatureType), e.g. SourceLevel.SOURCE_LEVEL.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract FforEnvironment(ProcessingEnvironment env, FeatureSet features) Returns the instance ofFto use inenv.protected abstract FtestDefault(FeatureSet features) Returns the instance ofFto use by default in tests.type()
-
Constructor Details
-
FeatureType
public FeatureType()
-
-
Method Details
-
testDefault
Returns the instance ofFto use by default in tests. -
forEnvironment
Returns the instance ofFto use inenv. -
type
-