Package io.quarkus.qute
Class ValueResolverBuilder
java.lang.Object
io.quarkus.qute.ValueResolverBuilder
Builder for
ValueResolver.-
Method Summary
Modifier and TypeMethodDescriptionappliesTo(Predicate<EvalContext> predicate) TheValueResolver.appliesTo(EvalContext)logic defined earlier is replaced with the specified predicate.applyToBaseClass(Class<?> baseClass) And applies to a part of an expression where the base class is assignable to the specified class.applyToName(String name) And applies to a part of an expression where the name is equal to the specified value.And applies to a part of an expression where the number of parameters is equal to zero.applyToParameters(int size) And applies to a part of an expression where the number of parameters is equal to the specified size.build()priority(int value) resolveSync(Function<EvalContext, Object> fun) resolveWith(Object value)
-
Method Details
-
priority
-
applyToBaseClass
And applies to a part of an expression where the base class is assignable to the specified class.The
ValueResolver.appliesTo(EvalContext)logic defined earlier is replaced with a composite predicate.- Parameters:
name-- Returns:
- self
-
applyToName
And applies to a part of an expression where the name is equal to the specified value.The
ValueResolver.appliesTo(EvalContext)logic defined earlier is replaced with a composite predicate.- Parameters:
name-- Returns:
- self
-
applyToNoParameters
And applies to a part of an expression where the number of parameters is equal to zero.The
ValueResolver.appliesTo(EvalContext)logic defined earlier is replaced with a composite predicate.- Returns:
- self
-
applyToParameters
And applies to a part of an expression where the number of parameters is equal to the specified size.The
ValueResolver.appliesTo(EvalContext)logic defined earlier is replaced with a composite predicate.- Parameters:
size-- Returns:
- self
-
appliesTo
TheValueResolver.appliesTo(EvalContext)logic defined earlier is replaced with the specified predicate.- Parameters:
predicate-- Returns:
- self
-
resolveSync
-
resolveAsync
-
resolveWith
-
build
-