Package org.fulib.scenarios.visitor
Enum TypeConversion
- java.lang.Object
-
- java.lang.Enum<TypeConversion>
-
- org.fulib.scenarios.visitor.TypeConversion
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<TypeConversion>,AttributeAccess.Visitor<Type,Expr>,ExampleAccess.Visitor<Type,Expr>,CallExpr.Visitor<Type,Expr>,CreationExpr.Visitor<Type,Expr>,CollectionExpr.Visitor<Type,Expr>,FilterExpr.Visitor<Type,Expr>,ListExpr.Visitor<Type,Expr>,MapAccessExpr.Visitor<Type,Expr>,RangeExpr.Visitor<Type,Expr>,AttributeCheckExpr.Visitor<Type,Expr>,ConditionalExpr.Visitor<Type,Expr>,ConditionalOperatorExpr.Visitor<Type,Expr>,PredicateOperatorExpr.Visitor<Type,Expr>,ErrorExpr.Visitor<Type,Expr>,Expr.Visitor<Type,Expr>,BinaryExpr.Visitor<Type,Expr>,AnswerLiteral.Visitor<Type,Expr>,DoubleLiteral.Visitor<Type,Expr>,IntLiteral.Visitor<Type,Expr>,NameAccess.Visitor<Type,Expr>,PrimaryExpr.Visitor<Type,Expr>,StringLiteral.Visitor<Type,Expr>
public enum TypeConversion extends java.lang.Enum<TypeConversion> implements Expr.Visitor<Type,Expr>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Exprconvert(Expr expr, Type to)static Exprconvert(Expr expr, Type to, Scope scope, java.lang.String code)static booleanisConvertible(Type from, Type to)static TypeConversionvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static TypeConversion[]values()Returns an array containing the constants of this enum type, in the order they are declared.Exprvisit(ExampleAccess exampleAccess, Type par)Exprvisit(ListExpr listExpr, Type par)Exprvisit(RangeExpr rangeExpr, Type par)Exprvisit(ErrorExpr errorExpr, Type par)Exprvisit(Expr expr, Type to)Exprvisit(DoubleLiteral doubleLiteral, Type par)Exprvisit(IntLiteral intLiteral, Type par)Exprvisit(StringLiteral stringLiteral, Type par)-
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Methods inherited from interface org.fulib.scenarios.ast.expr.collection.CollectionExpr.Visitor
visit, visit
-
Methods inherited from interface org.fulib.scenarios.ast.expr.conditional.ConditionalExpr.Visitor
visit, visit, visit
-
Methods inherited from interface org.fulib.scenarios.ast.expr.Expr.Visitor
visit, visit, visit, visit, visit, visit, visit
-
Methods inherited from interface org.fulib.scenarios.ast.expr.primary.PrimaryExpr.Visitor
visit, visit
-
-
-
-
Enum Constant Detail
-
INSTANCE
public static final TypeConversion INSTANCE
-
-
Method Detail
-
values
public static TypeConversion[] 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 (TypeConversion c : TypeConversion.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TypeConversion valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
visit
public Expr visit(Expr expr, Type to)
- Specified by:
visitin interfaceExpr.Visitor<Type,Expr>
-
visit
public Expr visit(ErrorExpr errorExpr, Type par)
- Specified by:
visitin interfaceErrorExpr.Visitor<Type,Expr>- Specified by:
visitin interfaceExpr.Visitor<Type,Expr>
-
visit
public Expr visit(IntLiteral intLiteral, Type par)
- Specified by:
visitin interfaceIntLiteral.Visitor<Type,Expr>- Specified by:
visitin interfacePrimaryExpr.Visitor<Type,Expr>
-
visit
public Expr visit(DoubleLiteral doubleLiteral, Type par)
- Specified by:
visitin interfaceDoubleLiteral.Visitor<Type,Expr>- Specified by:
visitin interfacePrimaryExpr.Visitor<Type,Expr>
-
visit
public Expr visit(StringLiteral stringLiteral, Type par)
- Specified by:
visitin interfacePrimaryExpr.Visitor<Type,Expr>- Specified by:
visitin interfaceStringLiteral.Visitor<Type,Expr>
-
visit
public Expr visit(ExampleAccess exampleAccess, Type par)
- Specified by:
visitin interfaceExampleAccess.Visitor<Type,Expr>- Specified by:
visitin interfaceExpr.Visitor<Type,Expr>
-
visit
public Expr visit(ListExpr listExpr, Type par)
- Specified by:
visitin interfaceCollectionExpr.Visitor<Type,Expr>- Specified by:
visitin interfaceListExpr.Visitor<Type,Expr>
-
-