Package net.hydromatic.morel.compile
Enum TypeResolver.EmptyTypeEnv
- java.lang.Object
-
- java.lang.Enum<TypeResolver.EmptyTypeEnv>
-
- net.hydromatic.morel.compile.TypeResolver.EmptyTypeEnv
-
- All Implemented Interfaces:
Serializable,Comparable<TypeResolver.EmptyTypeEnv>,TypeResolver.TypeEnv
- Enclosing class:
- TypeResolver
static enum TypeResolver.EmptyTypeEnv extends Enum<TypeResolver.EmptyTypeEnv> implements TypeResolver.TypeEnv
Empty type environment.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
-
Constructor Summary
Constructors Modifier Constructor Description privateEmptyTypeEnv()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TypeResolver.TypeEnvbind(String name, Function<TypeSystem,Unifier.Term> termFactory)Unifier.Termget(TypeSystem typeSystem, String name, Function<String,RuntimeException> exceptionFactory)booleanhas(String name)StringtoString()static TypeResolver.EmptyTypeEnvvalueOf(String name)Returns the enum constant of this type with the specified name.static TypeResolver.EmptyTypeEnv[]values()Returns an array containing the constants of this enum type, in the order they are declared.-
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
-
Methods inherited from interface net.hydromatic.morel.compile.TypeResolver.TypeEnv
bind
-
-
-
-
Enum Constant Detail
-
INSTANCE
public static final TypeResolver.EmptyTypeEnv INSTANCE
-
-
Method Detail
-
values
public static TypeResolver.EmptyTypeEnv[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TypeResolver.EmptyTypeEnv c : TypeResolver.EmptyTypeEnv.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TypeResolver.EmptyTypeEnv valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
get
public Unifier.Term get(TypeSystem typeSystem, String name, Function<String,RuntimeException> exceptionFactory)
- Specified by:
getin interfaceTypeResolver.TypeEnv
-
has
public boolean has(String name)
- Specified by:
hasin interfaceTypeResolver.TypeEnv
-
bind
public TypeResolver.TypeEnv bind(String name, Function<TypeSystem,Unifier.Term> termFactory)
- Specified by:
bindin interfaceTypeResolver.TypeEnv
-
toString
public String toString()
- Overrides:
toStringin classEnum<TypeResolver.EmptyTypeEnv>
-
-