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.MultiBuildItem
Makes it possible to intentionally ignore some parts of an expression when performing type-safe validation.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresents a type check of a part of an expression. -
Constructor Summary
ConstructorsConstructorDescriptionTypeCheckExcludeBuildItem(Predicate<TypeCheckExcludeBuildItem.TypeCheck> predicate, boolean extensionMethodPredicate) -
Method Summary
Modifier and TypeMethodDescriptionbooleanIt might come handy to excludeTemplateExtensionmethod from validation based on resolved returnTypeof the method.
-
Constructor Details
-
TypeCheckExcludeBuildItem
-
TypeCheckExcludeBuildItem
public TypeCheckExcludeBuildItem(Predicate<TypeCheckExcludeBuildItem.TypeCheck> predicate, boolean extensionMethodPredicate)
-
-
Method Details
-
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.
-