Class TemplatesAnalysisBuildItem.TemplateAnalysis

java.lang.Object
io.quarkus.qute.deployment.TemplatesAnalysisBuildItem.TemplateAnalysis
Enclosing class:
TemplatesAnalysisBuildItem

public static final class TemplatesAnalysisBuildItem.TemplateAnalysis extends Object
Analysis of a particular template found in the given path.
  • Field Details

    • id

      public final String id
    • generatedId

      public final String generatedId
    • expressions

      public final List<io.quarkus.qute.Expression> expressions
    • parameterDeclarations

      public final List<io.quarkus.qute.ParameterDeclaration> parameterDeclarations
    • path

      public final String path
    • fragmentIds

      public final Set<String> fragmentIds
  • Constructor Details

    • TemplateAnalysis

      TemplateAnalysis(String id, io.quarkus.qute.Template template, String path)
  • Method Details

    • getNodes

      public List<io.quarkus.qute.TemplateNode> getNodes()
      Returns:
      the child nodes of the root node
      See Also:
      • Template.getNodes()
    • findNodes

      public Collection<io.quarkus.qute.TemplateNode> findNodes(Predicate<io.quarkus.qute.TemplateNode> predicate)
      Returns:
      the collection of nodes that match the given predicate
      See Also:
      • Template.findNodes(Predicate)
    • getSortedParameterDeclarations

      public List<io.quarkus.qute.ParameterDeclaration> getSortedParameterDeclarations()
      Non-synthetic declarations go first, then sorted by the line.
      Returns:
      the sorted list of parameter declarations
    • getSortedParameterDeclarations

      public static List<io.quarkus.qute.ParameterDeclaration> getSortedParameterDeclarations(List<io.quarkus.qute.ParameterDeclaration> parameterDeclarations)
      Non-synthetic declarations go first, then sorted by the line.
      Returns:
      the sorted list of parameter declarations
    • findExpression

      io.quarkus.qute.Expression findExpression(int id)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object