Class Features
- All Implemented Interfaces:
Serializable, Cloneable, Iterable<String>, Collection<String>, List<String>, RandomAccess, SequencedCollection<String>
-
Field Summary
Fields inherited from class AbstractList
modCount -
Constructor Summary
ConstructorsConstructorDescriptionFeatures(GeneratorContext context, Set<Feature> featureList, Options options) -
Method Summary
Modifier and TypeMethodDescriptiongetFeature(Class<T> feature) <T extends Feature>
TgetRequiredFeature(Class<T> feature) booleanhasFeature(Class<?> clazz) booleanbooleanisFeaturePresent(Class<? extends Feature> feature) language()Methods inherited from class ArrayList
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, ensureCapacity, equals, forEach, get, getFirst, getLast, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeFirst, removeIf, removeLast, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeMethods inherited from class AbstractCollection
containsAll, toStringMethods inherited from interface Collection
parallelStream, stream, toArrayMethods inherited from interface List
containsAll, reversed
-
Constructor Details
-
Features
-
-
Method Details
-
hasFeature
- Parameters:
clazz- Feature Class- Returns:
- Whether the feature is present
-
hasMultiProjectFeature
public boolean hasMultiProjectFeature()- Returns:
- Whether the project has a multi-project feature
-
buildTools
-
application
- Returns:
- The Application Feature
-
language
- Returns:
- The Language
-
testFramework
- Returns:
- The Test Feature
-
getFeatures
-
javaVersion
- Returns:
- The Java version
-
mainClass
-
isFeaturePresent
-
getFeature
-
getRequiredFeature
- Type Parameters:
T- feature Type- Parameters:
feature- The feature class- Returns:
- The feature if present
- Throws:
IllegalStateException- if the feature is not present
-