Package com.vaadin.copilot.javarewriter
Record Class JavaRewriter.ExtractInlineVariableResult
java.lang.Object
java.lang.Record
com.vaadin.copilot.javarewriter.JavaRewriter.ExtractInlineVariableResult
- Enclosing class:
- JavaRewriter
public static record JavaRewriter.ExtractInlineVariableResult(com.github.javaparser.ast.stmt.BlockStmt blockStmt, String newVariableName, int index)
extends Record
Information about extracting an inline variable to local variable
-
Constructor Summary
ConstructorsConstructorDescriptionExtractInlineVariableResult(com.github.javaparser.ast.stmt.BlockStmt blockStmt, String newVariableName, int index) Creates an instance of aExtractInlineVariableResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncom.github.javaparser.ast.stmt.BlockStmtReturns the value of theblockStmtrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intindex()Returns the value of theindexrecord component.Returns the value of thenewVariableNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ExtractInlineVariableResult
public ExtractInlineVariableResult(com.github.javaparser.ast.stmt.BlockStmt blockStmt, String newVariableName, int index) Creates an instance of aExtractInlineVariableResultrecord class.- Parameters:
blockStmt- the value for theblockStmtrecord componentnewVariableName- the value for thenewVariableNamerecord componentindex- the value for theindexrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
blockStmt
public com.github.javaparser.ast.stmt.BlockStmt blockStmt()Returns the value of theblockStmtrecord component.- Returns:
- the value of the
blockStmtrecord component
-
newVariableName
Returns the value of thenewVariableNamerecord component.- Returns:
- the value of the
newVariableNamerecord component
-
index
public int index()Returns the value of theindexrecord component.- Returns:
- the value of the
indexrecord component
-