Package eu.simuline.relana.expressions
Enum Operation.Functor
- java.lang.Object
-
- java.lang.Enum<Operation.Functor>
-
- eu.simuline.relana.expressions.Operation.Functor
-
- All Implemented Interfaces:
Serializable
,Comparable<Operation.Functor>
- Enclosing class:
- Operation
public static enum Operation.Functor extends Enum<Operation.Functor>
Enumerates the kinds of functors covariant and contravariant ones. ****
-
-
Enum Constant Summary
Enum Constants Enum Constant Description Contravariant
Covariant
-
Field Summary
Fields Modifier and Type Field Description private static Map<String,Operation.Functor>
ACC2FUNCT
-
Constructor Summary
Constructors Modifier Constructor Description private
Functor()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static Operation.Functor
covCont(String acc)
(package private) abstract Set<Deficiency>
eval(DeficiencyMap map, Set<Deficiency> defs)
(package private) Set<Deficiency>
eval(Set<Set<Deficiency>> param, DeficiencyMap map)
(package private) abstract String
getSymbol()
abstract boolean
isAllowed(DeficiencyMap map)
(package private) Type
retType(Set<FormulaDecl> args, Operation.Maps mapOper)
(package private) abstract Type
source(DeficiencyMap map)
(package private) abstract Type
target(DeficiencyMap map)
abstract String
twistIsotone()
static Operation.Functor
valueOf(String name)
Returns the enum constant of this type with the specified name.static Operation.Functor[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Covariant
public static final Operation.Functor Covariant
-
Contravariant
public static final Operation.Functor Contravariant
-
-
Field Detail
-
ACC2FUNCT
private static final Map<String,Operation.Functor> ACC2FUNCT
-
-
Method Detail
-
values
public static Operation.Functor[] 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 (Operation.Functor c : Operation.Functor.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Operation.Functor 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
-
isAllowed
public abstract boolean isAllowed(DeficiencyMap map)
-
twistIsotone
public abstract String twistIsotone()
-
source
abstract Type source(DeficiencyMap map)
-
target
abstract Type target(DeficiencyMap map)
-
eval
Set<Deficiency> eval(Set<Set<Deficiency>> param, DeficiencyMap map)
-
eval
abstract Set<Deficiency> eval(DeficiencyMap map, Set<Deficiency> defs)
-
retType
Type retType(Set<FormulaDecl> args, Operation.Maps mapOper)
-
getSymbol
abstract String getSymbol()
-
covCont
public static Operation.Functor covCont(String acc)
-
-