Record Class JavaCodeGenerator.ForLoopStart
java.lang.Object
java.lang.Record
gg.jte.compiler.java.JavaCodeGenerator.ForLoopStart
- Enclosing class:
JavaCodeGenerator
private static record JavaCodeGenerator.ForLoopStart(CodeBuilder.CodeMarker beforeLoop, CodeBuilder.CodeMarker inLoop, int indentation, int id)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CodeBuilder.CodeMarkerThe field for thebeforeLooprecord component.private final intThe field for theidrecord component.private final intThe field for theindentationrecord component.private final CodeBuilder.CodeMarkerThe field for theinLooprecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateForLoopStart(CodeBuilder.CodeMarker beforeLoop, CodeBuilder.CodeMarker inLoop, int indentation, int id) Creates an instance of aForLoopStartrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebeforeLooprecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intid()Returns the value of theidrecord component.intReturns the value of theindentationrecord component.inLoop()Returns the value of theinLooprecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
beforeLoop
The field for thebeforeLooprecord component. -
inLoop
The field for theinLooprecord component. -
indentation
private final int indentationThe field for theindentationrecord component. -
id
private final int idThe field for theidrecord component.
-
-
Constructor Details
-
ForLoopStart
private ForLoopStart(CodeBuilder.CodeMarker beforeLoop, CodeBuilder.CodeMarker inLoop, int indentation, int id) Creates an instance of aForLoopStartrecord class.- Parameters:
beforeLoop- the value for thebeforeLooprecord componentinLoop- the value for theinLooprecord componentindentation- the value for theindentationrecord componentid- the value for theidrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
beforeLoop
Returns the value of thebeforeLooprecord component.- Returns:
- the value of the
beforeLooprecord component
-
inLoop
Returns the value of theinLooprecord component.- Returns:
- the value of the
inLooprecord component
-
indentation
public int indentation()Returns the value of theindentationrecord component.- Returns:
- the value of the
indentationrecord component
-
id
public int id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-