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 Details

    • MessageBundleMethodBuildItem

      MessageBundleMethodBuildItem(String bundleName, String key, String templateId, org.jboss.jandex.MethodInfo method, String template, boolean isDefaultBundle, boolean hasGeneratedTemplate)
  • Method Details

    • getBundleName

      public String getBundleName()
    • getKey

      public String getKey()
    • getTemplateId

      public String getTemplateId()
      Returns:
      the template id or null if 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 null if there is no corresponding method declared on the message bundle interface
    • hasMethod

      public boolean hasMethod()
      Returns:
      true if there is a corresponding method declared on the message bundle interface
      See Also:
    • getTemplate

      public String getTemplate()
    • getMessageInfo

      public io.quarkus.qute.runtime.MessageBundleRecorder.MessageInfo getMessageInfo()
    • isValidatable

      public boolean isValidatable()
      A bundle method that does not need to be validated has null template id.
      Returns:
      true if the template needs to be validated
    • isDefaultBundle

      public boolean isDefaultBundle()
      Returns:
      true if the message comes from the default bundle
    • hasGeneratedTemplate

      public boolean hasGeneratedTemplate()
      Returns:
      true if the template was generated, e.g. a message bundle method for an enum
    • getPathForAnalysis

      public String getPathForAnalysis()
      Returns:
      the path
      See Also: