Class StringField<V extends @Nullable Object>
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.Field<V>
dev.gecode.iris.build.StringField<V>
- Type Parameters:
V- the Java type of the entry's value
- All Implemented Interfaces:
Domain<StringExpr>, Expr, StringExpr, TextualExpr
A handle of a string entry. In a builder it is an expression; after reading,
data.get(handle) returns the entry as V.
The factories such as Iris.string0(String) make handles that any builder may use: the first
use in a builder declares the name with the handle's type, depth and presence, and Builder.build() checks every definition against them.
-
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Expr
dynamic, get, get, get, get, getModifier and TypeMethodDescriptiondefault DynExprdynamic()Returns this expression with no static type, which every method accepts.default DynExprReturnsthis.name, the field of the record this selects.default FloatExprget(FloatField<?> field) Returnsthis.name, the field of the record this selects.default IntExprReturnsthis.name, the field of the record this selects.default NumExprReturnsthis.name, the field of the record this selects.default StringExprget(StringField<?> field) Returnsthis.name, the field of the record this selects.Methods inherited from interface StringExpr
at, atModifier and TypeMethodDescriptiondefault StringExprat(long index) Returnsthis[index].default StringExprat(IntegralExpr index) Returnsthis[index].Methods inherited from interface TextualExpr
eq, eq, ne, ne
-
Method Details
-
optional
Returns this handle for an entry that may be absent, for whichgetreturns null.- Returns:
- this handle for an entry that may be absent, for which
getreturns null - Throws:
IllegalStateException- for a handle fromforwardor a definition, whose presence its builder fixed
-
readFrom
Description copied from class:FieldReads the entry of this handle fromdata. -
toString
-