Package net.hydromatic.morel.type
Class RecordType
- java.lang.Object
-
- net.hydromatic.morel.type.BaseType
-
- net.hydromatic.morel.type.RecordType
-
-
Field Summary
Fields Modifier and Type Field Description java.util.SortedMap<java.lang.String,Type>argNameTypesstatic com.google.common.collect.Ordering<java.lang.String>ORDERINGOrdering that compares integer values numerically, string values lexicographically, and integer values before string values.-
Fields inherited from class net.hydromatic.morel.type.BaseType
description, op
-
-
Constructor Summary
Constructors Constructor Description RecordType(java.lang.String description, com.google.common.collect.ImmutableSortedMap<java.lang.String,Type> argNameTypes)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <R> Raccept(TypeVisitor<R> typeVisitor)Typecopy(TypeSystem typeSystem, java.util.function.Function<Type,Type> transform)Copies this type, applying a given transform to component types, and returning the original type if the component types are unchanged.private static java.lang.IntegerparseInt(java.lang.String s)Parses a string that contains an integer value, or returns null if the string does not contain an integer.-
Methods inherited from class net.hydromatic.morel.type.BaseType
description, op
-
-
-
-
Field Detail
-
argNameTypes
public final java.util.SortedMap<java.lang.String,Type> argNameTypes
-
ORDERING
public static final com.google.common.collect.Ordering<java.lang.String> ORDERING
Ordering that compares integer values numerically, string values lexicographically, and integer values before string values.Thus: 2, 22, 202, a, a2, a202, a22.
-
-
Constructor Detail
-
RecordType
RecordType(java.lang.String description, com.google.common.collect.ImmutableSortedMap<java.lang.String,Type> argNameTypes)
-
-
Method Detail
-
accept
public <R> R accept(TypeVisitor<R> typeVisitor)
-
copy
public Type copy(TypeSystem typeSystem, java.util.function.Function<Type,Type> transform)
Description copied from interface:TypeCopies this type, applying a given transform to component types, and returning the original type if the component types are unchanged.
-
parseInt
private static java.lang.Integer parseInt(java.lang.String s)
Parses a string that contains an integer value, or returns null if the string does not contain an integer.
-
-