Class Features
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<String>
,Collection<String>
,List<String>
,RandomAccess
Features container.
- See Also:
-
Field Summary
Fields inherited from class java.util.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) boolean
hasFeature
(Class<?> clazz) boolean
boolean
isFeaturePresent
(Class<? extends Feature> feature) language()
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
Methods inherited from class java.util.AbstractCollection
containsAll, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
Methods inherited from interface java.util.List
containsAll
-
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
- Returns:
- The BuildTool
-
application
- Returns:
- The Application Feature
-
language
- Returns:
- The Language
-
testFramework
- Returns:
- The Test Feature
-
getFeatures
- Returns:
- The Features
-
javaVersion
- Returns:
- The Java version
-
mainClass
- Returns:
- The main class
-
isFeaturePresent
- Parameters:
feature
- Feature- Returns:
- Whether the feature is present
-
getFeature
- Type Parameters:
T
- feature Type- Parameters:
feature
- Feature- Returns:
- The feature if present
-
getRequiredFeature
- Type Parameters:
T
- feature Type- Parameters:
feature
- The feature class- Returns:
- The feature if present
- Throws:
IllegalStateException
- if the feature is not present
-