Class ComponentAttachInfo

java.lang.Object
com.vaadin.copilot.javarewriter.AbstractComponentLocationInfo
com.vaadin.copilot.javarewriter.ComponentAttachInfo

public class ComponentAttachInfo extends AbstractComponentLocationInfo
Holds information about a component's attachment within the Java source code.

This class extends AbstractComponentLocationInfo and adds details specific to how and where a component is attached in the code, such as the block scope for the attachment, whether it occurs in the same file as its creation, and the attach call expression itself.

  • Constructor Details

    • ComponentAttachInfo

      public ComponentAttachInfo(JavaSource javaSource)
      Constructs a new ComponentAttachInfo with the given Java source and file reference.
      Parameters:
      javaSource - the JavaSource representing the parsed source code where the component is defined; must not be null.
  • Method Details

    • setComponentAttachScope

      public void setComponentAttachScope(com.github.javaparser.ast.stmt.BlockStmt componentAttachScope)
    • getComponentAttachScope

      public Optional<com.github.javaparser.ast.stmt.BlockStmt> getComponentAttachScope()
    • getAttachCall

      public AttachExpression getAttachCall()
    • setAttachCall

      public void setAttachCall(AttachExpression attachCall)