Package io.quarkus.qute.deployment
Class TypeCheckExcludeBuildItem
- java.lang.Object
-
- io.quarkus.builder.item.BuildItem
-
- io.quarkus.builder.item.MultiBuildItem
-
- io.quarkus.qute.deployment.TypeCheckExcludeBuildItem
-
public final class TypeCheckExcludeBuildItem extends io.quarkus.builder.item.MultiBuildItemMakes it possible to intentionally ignore some parts of an expression when performing type-safe validation.- See Also:
TypeCheckExcludeBuildItem.TypeCheck
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTypeCheckExcludeBuildItem.TypeCheckRepresents a type check of a part of an expression.
-
Constructor Summary
Constructors Constructor Description TypeCheckExcludeBuildItem(Predicate<TypeCheckExcludeBuildItem.TypeCheck> predicate)TypeCheckExcludeBuildItem(Predicate<TypeCheckExcludeBuildItem.TypeCheck> predicate, boolean extensionMethodPredicate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Predicate<TypeCheckExcludeBuildItem.TypeCheck>getPredicate()booleanisExtensionMethodPredicate()It might come handy to excludeTemplateExtensionmethod from validation based on resolved returnTypeof the method.
-
-
-
Constructor Detail
-
TypeCheckExcludeBuildItem
public TypeCheckExcludeBuildItem(Predicate<TypeCheckExcludeBuildItem.TypeCheck> predicate)
-
TypeCheckExcludeBuildItem
public TypeCheckExcludeBuildItem(Predicate<TypeCheckExcludeBuildItem.TypeCheck> predicate, boolean extensionMethodPredicate)
-
-
Method Detail
-
getPredicate
public Predicate<TypeCheckExcludeBuildItem.TypeCheck> getPredicate()
-
isExtensionMethodPredicate
public boolean isExtensionMethodPredicate()
It might come handy to excludeTemplateExtensionmethod from validation based on resolved returnTypeof the method. For example, type variables are hard to resolve in all situations andextensionMethodPredicateallows you to skip validation on your conditions, as we do forOrOperatorTemplateExtensions.- Returns:
- true if the predicate is used to exclude
TemplateExtensionmethod.
-
-