Package com.vaadin.copilot.javarewriter
Class AbstractComponentLocationInfo
java.lang.Object
com.vaadin.copilot.javarewriter.AbstractComponentLocationInfo
- Direct Known Subclasses:
ComponentAttachInfo,ComponentCreateInfo
An abstract base class that holds common information about a component
extracted from Java source code during code analysis.
This class provides basic metadata for components, such as their local
variable names, field declarations, and associated source information. It is
intended to be extended by more specialized component information classes
e.g. ComponentCreateInfo and ComponentAttachInfo
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractComponentLocationInfo(JavaSource javaSource) Creates a newComponentBaseInfowith the specified Java source and file reference. -
Method Summary
Modifier and TypeMethodDescriptioncom.github.javaparser.ast.body.FieldDeclarationcom.github.javaparser.ast.body.FieldDeclarationcom.github.javaparser.ast.body.VariableDeclaratorvoidsetFieldDeclaration(com.github.javaparser.ast.body.FieldDeclaration fieldDeclaration) voidsetFieldDeclarationAndAssignment(com.github.javaparser.ast.body.FieldDeclaration fieldDeclarationAndAssignment) voidsetFieldName(String fieldName) voidsetLocalVariableDeclarator(com.github.javaparser.ast.body.VariableDeclarator localVariableDeclarator) voidsetLocalVariableName(String localVariableName)
-
Field Details
-
localVariableName
-
localVariableDeclarator
protected com.github.javaparser.ast.body.VariableDeclarator localVariableDeclarator -
fieldName
-
fieldDeclaration
protected com.github.javaparser.ast.body.FieldDeclaration fieldDeclaration -
fieldDeclarationAndAssignment
protected com.github.javaparser.ast.body.FieldDeclaration fieldDeclarationAndAssignment
-
-
Constructor Details
-
AbstractComponentLocationInfo
Creates a newComponentBaseInfowith the specified Java source and file reference.- Parameters:
javaSource- theJavaSourcerepresenting the parsed source code where the component is defined; must not benull.
-
-
Method Details
-
getJavaSource
-
getLocalVariableDeclarator
public com.github.javaparser.ast.body.VariableDeclarator getLocalVariableDeclarator() -
setLocalVariableDeclarator
public void setLocalVariableDeclarator(com.github.javaparser.ast.body.VariableDeclarator localVariableDeclarator) -
getFieldDeclaration
public com.github.javaparser.ast.body.FieldDeclaration getFieldDeclaration() -
setFieldDeclaration
public void setFieldDeclaration(com.github.javaparser.ast.body.FieldDeclaration fieldDeclaration) -
getLocalVariableName
-
setLocalVariableName
-
getFieldName
-
setFieldName
-
getFieldDeclarationAndAssignment
public com.github.javaparser.ast.body.FieldDeclaration getFieldDeclarationAndAssignment() -
setFieldDeclarationAndAssignment
public void setFieldDeclarationAndAssignment(com.github.javaparser.ast.body.FieldDeclaration fieldDeclarationAndAssignment)
-