public abstract class FeatureType<F extends Feature<F>> extends Object
Each feature class should expose a single FeatureType constant for the user to pass
to SourceBuilder.feature(FeatureType), e.g. SourceLevel.SOURCE_LEVEL.
| Constructor and Description |
|---|
FeatureType() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract F |
forEnvironment(ProcessingEnvironment env)
Returns the instance of
F to use in env. |
protected abstract F |
testDefault()
Returns the instance of
F to use by default in tests. |
protected Class<F> |
type() |
protected abstract F testDefault()
F to use by default in tests.protected abstract F forEnvironment(ProcessingEnvironment env)
F to use in env.Copyright © 2016 Google, Inc.. All rights reserved.