Package io.quarkus.qute.deployment
Class MessageBundleMethodBuildItem
java.lang.Object
io.quarkus.builder.item.BuildItem
io.quarkus.builder.item.MultiBuildItem
io.quarkus.qute.deployment.MessageBundleMethodBuildItem
public final class MessageBundleMethodBuildItem
extends io.quarkus.builder.item.MultiBuildItem
Represents a message bundle method.
Note that templates that contain no expressions/sections don't need to be validated.
-
Constructor Summary
ConstructorsConstructorDescriptionMessageBundleMethodBuildItem(String bundleName, String key, String templateId, org.jboss.jandex.MethodInfo method, String template, boolean isDefaultBundle, boolean hasGeneratedTemplate) -
Method Summary
Modifier and TypeMethodDescriptiongetKey()io.quarkus.qute.runtime.MessageBundleRecorder.MessageInfoorg.jboss.jandex.MethodInfoFor example, there is no corresponding method for generated enum constant message keys.booleanbooleanbooleanbooleanA bundle method that does not need to be validated hasnulltemplate id.
-
Constructor Details
-
MessageBundleMethodBuildItem
-
-
Method Details
-
getBundleName
-
getKey
-
getTemplateId
- Returns:
- the template id or
nullif there is no need to use qute; i.e. no expression/section found
-
getMethod
public org.jboss.jandex.MethodInfo getMethod()For example, there is no corresponding method for generated enum constant message keys.- Returns:
- the method or
nullif there is no corresponding method declared on the message bundle interface
-
hasMethod
public boolean hasMethod()- Returns:
trueif there is a corresponding method declared on the message bundle interface- See Also:
-
getTemplate
-
getMessageInfo
public io.quarkus.qute.runtime.MessageBundleRecorder.MessageInfo getMessageInfo() -
isValidatable
public boolean isValidatable()A bundle method that does not need to be validated hasnulltemplate id.- Returns:
trueif the template needs to be validated
-
isDefaultBundle
public boolean isDefaultBundle()- Returns:
trueif the message comes from the default bundle
-
hasGeneratedTemplate
public boolean hasGeneratedTemplate()- Returns:
trueif the template was generated, e.g. a message bundle method for an enum
-
getPathForAnalysis
- Returns:
- the path
- See Also:
-