| Package | Description |
|---|---|
| org.teavm.flavour.expr |
This package contains classes necessary to parse, compile and evaluate expressions written on
Flavour Expression Language (FEL).
|
| org.teavm.flavour.expr.ast | |
| org.teavm.flavour.expr.type | |
| org.teavm.flavour.expr.type.meta |
| Modifier and Type | Method and Description |
|---|---|
ValueType |
TypeEstimator.estimate(Expr expr,
ValueType expectedType) |
ValueType |
TypeEstimator.estimateLambda(LambdaExpr expr,
GenericMethod method) |
ValueType |
MethodLookup.getReturnType() |
ValueType |
TypedPlan.getType() |
ValueType |
Scope.variableType(String variableName) |
| Modifier and Type | Method and Description |
|---|---|
TypedPlan |
Compiler.compile(Expr expr,
ValueType type)
Compiles AST of expression to execution plan.
|
ValueType |
TypeEstimator.estimate(Expr expr,
ValueType expectedType) |
static boolean |
CompilerCommons.isErasedSuperType(ValueType supertype,
ValueType subtype,
GenericTypeNavigator navigator) |
static boolean |
CompilerCommons.isLooselyCompatibleType(ValueType targetType,
ValueType sourceType,
GenericTypeNavigator navigator) |
static boolean |
CompilerCommons.isSuperType(ValueType supertype,
ValueType subtype,
GenericTypeNavigator navigator) |
static String |
CompilerCommons.typeToString(ValueType type) |
static void |
CompilerCommons.typeToString(ValueType type,
StringBuilder sb) |
| Constructor and Description |
|---|
TypedPlan(Plan plan,
ValueType type) |
| Modifier and Type | Method and Description |
|---|---|
ValueType |
CastExpr.getTargetType() |
ValueType |
BoundVariable.getType() |
| Modifier and Type | Method and Description |
|---|---|
void |
CastExpr.setTargetType(ValueType targetType) |
| Constructor and Description |
|---|
BoundVariable(String name,
ValueType type) |
CastExpr(Expr value,
ValueType targetType) |
| Modifier and Type | Class and Description |
|---|---|
class |
GenericArray |
class |
GenericClass |
class |
GenericReference |
class |
GenericType |
class |
IntersectionType |
class |
NullType |
class |
Primitive |
class |
PrimitiveArray |
| Modifier and Type | Method and Description |
|---|---|
ValueType[] |
GenericMethod.getActualParameterTypes() |
ValueType |
GenericMethod.getActualReturnType() |
ValueType |
GenericField.getActualType() |
static ValueType |
TypeUtils.tryBox(ValueType type) |
static ValueType |
TypeUtils.tryUnbox(GenericType type) |
| Modifier and Type | Method and Description |
|---|---|
static GenericClass |
TypeUtils.box(ValueType type) |
boolean |
TypeInference.equalConstraint(ValueType a,
ValueType b) |
String |
ValueTypeFormatter.format(ValueType type) |
void |
ValueTypeFormatter.format(ValueType type,
StringBuilder sb) |
boolean |
TypeInference.subtypeConstraint(ValueType subtype,
ValueType supertype) |
static ValueType |
TypeUtils.tryBox(ValueType type) |
| Constructor and Description |
|---|
GenericField(FieldDescriber describer,
ValueType actualType) |
GenericMethod(MethodDescriber describer,
GenericClass actualOwner,
ValueType[] actualParameterTypes,
ValueType actualReturnType) |
GenericMethod(MethodDescriber describer,
GenericClass actualOwner,
ValueType[] actualParameterTypes,
ValueType actualReturnType) |
| Modifier and Type | Method and Description |
|---|---|
ValueType |
ClassPathClassDescriberRepository.convertGenericType(Type javaType) |
ValueType[] |
MethodDescriber.getParameterTypes() |
ValueType[] |
MethodDescriber.getRawParameterTypes() |
ValueType |
MethodDescriber.getRawReturnType() |
ValueType |
FieldDescriber.getRawType() |
ValueType |
MethodDescriber.getReturnType() |
ValueType |
FieldDescriber.getType() |
| Modifier and Type | Method and Description |
|---|---|
MethodDescriber |
ClassDescriber.getMethod(String name,
ValueType... parameterTypes) |
Copyright © 2019. All rights reserved.