Class Type<T extends Type<T>>
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.Type<T>
- Type Parameters:
T- the type that adding a dimension or an option gives
- Direct Known Subclasses:
FloatType, IntType, NumType, StringType
public abstract sealed class Type<T extends Type<T>>
extends Object
permits IntType, FloatType, NumType, StringType
A reading type, such as
int, 0..<n or word. dim(Expr) adds a
dimension, and layout(Expr) and offset(Expr) add the options of a declaration.-
Method Summary
Modifier and TypeMethodDescriptionfinal Tdim(long size) Returns this type with another dimension:x[size]: type.final TReturns this type with another dimension:x[size]: type.final Tdims(long... sizes) Returns this type with several more dimensions, as many as known only at run time.final TReturns this type with several more dimensions, as many as known only at run time.final Tlayout(long layout) Returns this type withlayout expression.final TReturns this type withlayout expression.final Toffset(long offset) Returns this type withoffset expression.final TReturns this type withoffset expression.final ListReadinguntil(long end) Returns a list of this type that ends at the sentinelend.final ListReadingReturns a list of this type that ends at the sentinelend.final ListReadingReturns a list of this type that ends at the sentinelend.final ListReadinguntilEol()Returns a list of this type that ends at the end of the line:until eol.
-
Method Details
-
dim
-
dim
Returns this type with another dimension:x[size]: type.- Parameters:
size- the number of elements- Returns:
- this type with another dimension:
x[size]: type
-
dims
Returns this type with several more dimensions, as many as known only at run time.- Parameters:
sizes- the numbers of elements, outermost first- Returns:
- this type with several more dimensions, as many as known only at run time
-
dims
-
layout
-
layout
Returns this type withlayout expression.- Parameters:
layout- the layout- Returns:
- this type with
layout expression
-
offset
-
offset
Returns this type withoffset expression.- Parameters:
offset- the offset- Returns:
- this type with
offset expression
-
until
Returns a list of this type that ends at the sentinelend.- Parameters:
end- the sentinel- Returns:
- a list of this type that ends at the sentinel
end - Throws:
IllegalArgumentException- if this type has dimensions
-
until
Returns a list of this type that ends at the sentinelend.- Parameters:
end- the sentinel- Returns:
- a list of this type that ends at the sentinel
end - Throws:
IllegalArgumentException- if this type has dimensions
-
until
Returns a list of this type that ends at the sentinelend.- Parameters:
end- the sentinel- Returns:
- a list of this type that ends at the sentinel
end - Throws:
IllegalArgumentException- if this type has dimensions
-
untilEol
Returns a list of this type that ends at the end of the line:until eol.- Returns:
- a list of this type that ends at the end of the line:
until eol - Throws:
IllegalArgumentException- if this type has dimensions
-