Class RecordName
Javadoc 27 generates this reference during each site build from the exported packages and the annotation processor. The Java guide shows the API in use.
java.lang.Object
dev.gecode.iris.build.RecordName
- All Implemented Interfaces:
Domain<RecordExpr>
The records of a repeat.
repeat(count, record, body) binds it to the repeat; statements
before and after it may use it.
record.get(field) is the field of the current record, list all the records,
and a comprehension over a record gives its body one record at a time. Like a declared handle, a
record name belongs to no builder: each builder that uses it binds it to one of its repeats.
-
Method Summary
Modifier and TypeMethodDescriptionat(long index) Returns one of the records,records[index].at(IntegralExpr index) Returns one of the records,records[index].Returnsrecord.name, the field of the current record.get(FloatField<?> field) Returnsrecord.name, the field of the current record.Returnsrecord.name, the field of the current record.Returnsrecord.name, the field of the current record.get(StringField<?> field) Returnsrecord.name, the field of the current record.list()Returns all the records of this repeat, printed as itsasname.records(RecordName inner) Returns the records of the nested repeatinnerin the current record.
-
Method Details
-
get
-
get
Returnsrecord.name, the field of the current record.- Parameters:
field- the handle of the field- Returns:
record.name, the field of the current record
-
get
-
get
Returnsrecord.name, the field of the current record.- Parameters:
field- the handle of the field- Returns:
record.name, the field of the current record
-
get
-
list
Returns all the records of this repeat, printed as itsasname.- Returns:
- all the records of this repeat, printed as its
asname
-
records
Returns the records of the nested repeatinnerin the current record.- Parameters:
inner- the record name of a repeat inside this one- Returns:
- the records of the nested repeat
innerin the current record
-
at
Returns one of the records,records[index].- Parameters:
index- the index, counted from 0- Returns:
- one of the records,
records[index]
-
at
Returns one of the records,records[index].- Parameters:
index- the index, counted from 0- Returns:
- one of the records,
records[index]
-