public enum TypeConversion extends java.lang.Enum<TypeConversion> implements Expr.Visitor<Type,Expr>
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
static Expr |
convert(Expr expr,
Type to) |
static Expr |
convert(Expr expr,
Type to,
Scope scope,
java.lang.String code) |
static boolean |
isConvertible(Type from,
Type to) |
static TypeConversion |
valueOf(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.
|
Expr |
visit(DoubleLiteral doubleLiteral,
Type par) |
Expr |
visit(ErrorExpr errorExpr,
Type par) |
Expr |
visit(ExampleAccess exampleAccess,
Type par) |
Expr |
visit(Expr expr,
Type to) |
Expr |
visit(IntLiteral intLiteral,
Type par) |
Expr |
visit(ListExpr listExpr,
Type par) |
Expr |
visit(PlaceholderExpr placeholderExpr,
Type par) |
Expr |
visit(RangeExpr rangeExpr,
Type par) |
Expr |
visit(StringLiteral stringLiteral,
Type par) |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfvisit, visit, visit, visit, visit, visit, visitvisit, visit, visitvisit, visit, visitvisit, visitpublic static final TypeConversion INSTANCE
public static TypeConversion[] values()
for (TypeConversion c : TypeConversion.values()) System.out.println(c);
public static TypeConversion valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic Expr visit(Expr expr, Type to)
visit in interface Expr.Visitor<Type,Expr>public Expr visit(ErrorExpr errorExpr, Type par)
visit in interface ErrorExpr.Visitor<Type,Expr>visit in interface Expr.Visitor<Type,Expr>public Expr visit(PlaceholderExpr placeholderExpr, Type par)
visit in interface Expr.Visitor<Type,Expr>visit in interface PlaceholderExpr.Visitor<Type,Expr>public Expr visit(IntLiteral intLiteral, Type par)
visit in interface IntLiteral.Visitor<Type,Expr>visit in interface PrimaryExpr.Visitor<Type,Expr>public Expr visit(DoubleLiteral doubleLiteral, Type par)
visit in interface DoubleLiteral.Visitor<Type,Expr>visit in interface PrimaryExpr.Visitor<Type,Expr>public Expr visit(StringLiteral stringLiteral, Type par)
visit in interface PrimaryExpr.Visitor<Type,Expr>visit in interface StringLiteral.Visitor<Type,Expr>public Expr visit(ExampleAccess exampleAccess, Type par)
visit in interface ExampleAccess.Visitor<Type,Expr>visit in interface Expr.Visitor<Type,Expr>public Expr visit(ListExpr listExpr, Type par)
visit in interface CollectionExpr.Visitor<Type,Expr>visit in interface ListExpr.Visitor<Type,Expr>