Class JavaSourceLocationArguments

java.lang.Object
io.quarkus.qute.debug.client.JavaSourceLocationArguments

public class JavaSourceLocationArguments extends Object
Arguments describing a Java element referenced from a Qute template.

Sent by the Debug Adapter via JavaSourceResolver.resolveJavaSource(io.quarkus.qute.debug.client.JavaSourceLocationArguments) to the client in order to locate the corresponding Java source file and position.

Example of a qute-java URI

 qute-java://com.acme.Bean#process@io.quarkus.qute.TemplateContents
 

Interpretation:

  • javaElementUri = "qute-java://com.acme.Bean#process@io.quarkus.qute.TemplateContents"
  • typeName = "com.acme.Bean"
  • method = "process" (optional; if null, the annotation is applied on the class)
  • annotation = "io.quarkus.qute.TemplateContents"
  • Constructor Details

    • JavaSourceLocationArguments

      public JavaSourceLocationArguments()
  • Method Details

    • getJavaElementUri

      public String getJavaElementUri()
      Returns the qute-java URI used to locate the Java element.
      Returns:
      the URI string
    • setJavaElementUri

      public void setJavaElementUri(String javaElementUri)
      Sets the qute-java URI used to locate the Java element.
      Parameters:
      javaElementUri - the URI string to set
    • getTypeName

      public String getTypeName()
      Returns the fully qualified Java class, interface name.
      Returns:
      the class name
    • setTypeName

      public void setTypeName(String typeName)
      Sets the fully qualified Java class, interface name.
      Parameters:
      typeName - the class, interface name to set
    • getMethod

      public String getMethod()
      Returns the Java method name.
      Returns:
      the method name, or null if the annotation applies to the class
    • setMethod

      public void setMethod(String method)
      Sets the Java method name.
      Parameters:
      method - the method name to set, or null if the annotation applies to the class
    • getAnnotation

      public String getAnnotation()
      Returns the fully qualified Java annotation name.
      Returns:
      the annotation name (e.g., "io.quarkus.qute.TemplateContents")
    • setAnnotation

      public void setAnnotation(String annotation)
      Sets the fully qualified Java annotation name.
      Parameters:
      annotation - the annotation name to set