Package com.orbit.prog
Record Class RepeatReturn
java.lang.Object
java.lang.Record
com.orbit.prog.RepeatReturn
- All Implemented Interfaces:
Instr
Body-terminator for a
RepeatMin mandatory-repetition loop.
Marks the end of a repeat body. When BoundedBacktrackEngine calls rec()
for one iteration of the body, hitting this instruction causes rec() to return the
current input position, returning control to the RepeatMin loop.
This instruction is always immediately followed in the program by the first instruction
of the continuation (i.e., the instruction at RepeatMin.bodyEnd()).
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
RepeatReturn
public RepeatReturn()Creates an instance of aRepeatReturnrecord class.
-
-
Method Details
-
next
public int next() -
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.
-