Package com.vaadin.copilot.javarewriter
Record Class JavaRewriter.ComponentInfo
java.lang.Object
java.lang.Record
com.vaadin.copilot.javarewriter.JavaRewriter.ComponentInfo
- Enclosing class:
- JavaRewriter
public static record JavaRewriter.ComponentInfo(Class<? extends Component> type, com.github.javaparser.ast.expr.ObjectCreationExpr objectCreationExpr, com.github.javaparser.ast.stmt.BlockStmt componentCreateScope, com.github.javaparser.ast.expr.MethodCallExpr attachCall, com.github.javaparser.ast.stmt.BlockStmt componentAttachScope, com.github.javaparser.ast.body.VariableDeclarator localVariableDeclarator, com.github.javaparser.ast.expr.AssignExpr assignmentExpression, com.github.javaparser.ast.body.FieldDeclaration fieldDeclaration, com.github.javaparser.ast.body.FieldDeclaration fieldDeclarationAndAssignment, String localVariableName, String fieldName, com.github.javaparser.ast.body.ConstructorDeclaration routeConstructor, JavaRewriter rewriter)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionComponentInfo
(Class<? extends Component> type, com.github.javaparser.ast.expr.ObjectCreationExpr objectCreationExpr, com.github.javaparser.ast.stmt.BlockStmt componentCreateScope, com.github.javaparser.ast.expr.MethodCallExpr attachCall, com.github.javaparser.ast.stmt.BlockStmt componentAttachScope, com.github.javaparser.ast.body.VariableDeclarator localVariableDeclarator, com.github.javaparser.ast.expr.AssignExpr assignmentExpression, com.github.javaparser.ast.body.FieldDeclaration fieldDeclaration, com.github.javaparser.ast.body.FieldDeclaration fieldDeclarationAndAssignment, String localVariableName, String fieldName, com.github.javaparser.ast.body.ConstructorDeclaration routeConstructor, JavaRewriter rewriter) Creates an instance of aComponentInfo
record class. -
Method Summary
Modifier and TypeMethodDescriptioncom.github.javaparser.ast.expr.AssignExpr
Returns the value of theassignmentExpression
record component.com.github.javaparser.ast.expr.MethodCallExpr
Returns the value of theattachCall
record component.com.github.javaparser.ast.stmt.BlockStmt
Returns the value of thecomponentAttachScope
record component.com.github.javaparser.ast.stmt.BlockStmt
Returns the value of thecomponentCreateScope
record component.final boolean
Indicates whether some other object is "equal to" this one.com.github.javaparser.ast.body.FieldDeclaration
Returns the value of thefieldDeclaration
record component.com.github.javaparser.ast.body.FieldDeclaration
Returns the value of thefieldDeclarationAndAssignment
record component.Returns the value of thefieldName
record component.final int
hashCode()
Returns a hash code value for this object.com.github.javaparser.ast.body.VariableDeclarator
Returns the value of thelocalVariableDeclarator
record component.Returns the value of thelocalVariableName
record component.com.github.javaparser.ast.expr.ObjectCreationExpr
Returns the value of theobjectCreationExpr
record component.rewriter()
Returns the value of therewriter
record component.com.github.javaparser.ast.body.ConstructorDeclaration
Returns the value of therouteConstructor
record component.final String
toString()
Returns a string representation of this record class.type()
Returns the value of thetype
record component.
-
Constructor Details
-
ComponentInfo
public ComponentInfo(Class<? extends Component> type, com.github.javaparser.ast.expr.ObjectCreationExpr objectCreationExpr, com.github.javaparser.ast.stmt.BlockStmt componentCreateScope, com.github.javaparser.ast.expr.MethodCallExpr attachCall, com.github.javaparser.ast.stmt.BlockStmt componentAttachScope, com.github.javaparser.ast.body.VariableDeclarator localVariableDeclarator, com.github.javaparser.ast.expr.AssignExpr assignmentExpression, com.github.javaparser.ast.body.FieldDeclaration fieldDeclaration, com.github.javaparser.ast.body.FieldDeclaration fieldDeclarationAndAssignment, String localVariableName, String fieldName, com.github.javaparser.ast.body.ConstructorDeclaration routeConstructor, JavaRewriter rewriter) Creates an instance of aComponentInfo
record class.- Parameters:
type
- the value for thetype
record componentobjectCreationExpr
- the value for theobjectCreationExpr
record componentcomponentCreateScope
- the value for thecomponentCreateScope
record componentattachCall
- the value for theattachCall
record componentcomponentAttachScope
- the value for thecomponentAttachScope
record componentlocalVariableDeclarator
- the value for thelocalVariableDeclarator
record componentassignmentExpression
- the value for theassignmentExpression
record componentfieldDeclaration
- the value for thefieldDeclaration
record componentfieldDeclarationAndAssignment
- the value for thefieldDeclarationAndAssignment
record componentlocalVariableName
- the value for thelocalVariableName
record componentfieldName
- the value for thefieldName
record componentrouteConstructor
- the value for therouteConstructor
record componentrewriter
- the value for therewriter
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
type
Returns the value of thetype
record component.- Returns:
- the value of the
type
record component
-
objectCreationExpr
public com.github.javaparser.ast.expr.ObjectCreationExpr objectCreationExpr()Returns the value of theobjectCreationExpr
record component.- Returns:
- the value of the
objectCreationExpr
record component
-
componentCreateScope
public com.github.javaparser.ast.stmt.BlockStmt componentCreateScope()Returns the value of thecomponentCreateScope
record component.- Returns:
- the value of the
componentCreateScope
record component
-
attachCall
public com.github.javaparser.ast.expr.MethodCallExpr attachCall()Returns the value of theattachCall
record component.- Returns:
- the value of the
attachCall
record component
-
componentAttachScope
public com.github.javaparser.ast.stmt.BlockStmt componentAttachScope()Returns the value of thecomponentAttachScope
record component.- Returns:
- the value of the
componentAttachScope
record component
-
localVariableDeclarator
public com.github.javaparser.ast.body.VariableDeclarator localVariableDeclarator()Returns the value of thelocalVariableDeclarator
record component.- Returns:
- the value of the
localVariableDeclarator
record component
-
assignmentExpression
public com.github.javaparser.ast.expr.AssignExpr assignmentExpression()Returns the value of theassignmentExpression
record component.- Returns:
- the value of the
assignmentExpression
record component
-
fieldDeclaration
public com.github.javaparser.ast.body.FieldDeclaration fieldDeclaration()Returns the value of thefieldDeclaration
record component.- Returns:
- the value of the
fieldDeclaration
record component
-
fieldDeclarationAndAssignment
public com.github.javaparser.ast.body.FieldDeclaration fieldDeclarationAndAssignment()Returns the value of thefieldDeclarationAndAssignment
record component.- Returns:
- the value of the
fieldDeclarationAndAssignment
record component
-
localVariableName
Returns the value of thelocalVariableName
record component.- Returns:
- the value of the
localVariableName
record component
-
fieldName
Returns the value of thefieldName
record component.- Returns:
- the value of the
fieldName
record component
-
routeConstructor
public com.github.javaparser.ast.body.ConstructorDeclaration routeConstructor()Returns the value of therouteConstructor
record component.- Returns:
- the value of the
routeConstructor
record component
-
rewriter
Returns the value of therewriter
record component.- Returns:
- the value of the
rewriter
record component
-