Package com.vaadin.copilot.javarewriter
Class ComponentAttachInfo
java.lang.Object
com.vaadin.copilot.javarewriter.AbstractComponentLocationInfo
com.vaadin.copilot.javarewriter.ComponentAttachInfo
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.
-
Field Summary
Fields inherited from class com.vaadin.copilot.javarewriter.AbstractComponentLocationInfo
fieldDeclaration, fieldDeclarationAndAssignment, fieldName, localVariableDeclarator, localVariableName -
Constructor Summary
ConstructorsConstructorDescriptionComponentAttachInfo(JavaSource javaSource) Constructs a newComponentAttachInfowith the given Java source and file reference. -
Method Summary
Modifier and TypeMethodDescriptionOptional<com.github.javaparser.ast.stmt.BlockStmt> voidsetAttachCall(AttachExpression attachCall) voidsetComponentAttachScope(com.github.javaparser.ast.stmt.BlockStmt componentAttachScope) Methods inherited from class com.vaadin.copilot.javarewriter.AbstractComponentLocationInfo
getFieldDeclaration, getFieldDeclarationAndAssignment, getFieldName, getJavaSource, getLocalVariableDeclarator, getLocalVariableName, setFieldDeclaration, setFieldDeclarationAndAssignment, setFieldName, setLocalVariableDeclarator, setLocalVariableName
-
Constructor Details
-
ComponentAttachInfo
Constructs a newComponentAttachInfowith the given Java source and file reference.- Parameters:
javaSource- theJavaSourcerepresenting the parsed source code where the component is defined; must not benull.
-
-
Method Details
-
setComponentAttachScope
public void setComponentAttachScope(com.github.javaparser.ast.stmt.BlockStmt componentAttachScope) -
getComponentAttachScope
-
getAttachCall
-
setAttachCall
-