|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use Type | |
|---|---|
| org.teatrove.tea.compiler | |
| org.teatrove.tea.parsetree | |
| Uses of Type in org.teatrove.tea.compiler |
|---|
| Fields in org.teatrove.tea.compiler declared as Type | |
|---|---|
static Type |
Type.BOOLEAN_TYPE
Type for representing booleans, provided as a convenience |
static Type |
Type.INT_TYPE
Type for representing ints, provided as a convenience |
static Type |
Type.LONG_TYPE
Type for representing longs, provided as a convenience |
static Type |
Type.NON_NULL_STRING_TYPE
Type for representing non-null Strings, provided as a convenience |
static Type |
Type.NULL_TYPE
Type that is compatble with all other types |
static Type |
Type.OBJECT_TYPE
Type that represents all objects, provided as a convenience |
static Type |
Type.STRING_TYPE
Type for representing Strings, provided as a convenience |
static Type |
Type.VOID_TYPE
Type that represents void, provided as a convenience |
| Methods in org.teatrove.tea.compiler that return Type | |
|---|---|
static Type |
Generics.findType(Type type,
Type... parents)
|
Type |
Type.getArrayElementType()
If this Type supports array lookup, then return the element type. |
Type[] |
Type.getArrayIndexTypes()
If this Type supports array lookup, then return the index type. |
static Type |
Generics.getBoundedType(TypeVariable<?> type)
|
static Type |
Generics.getBoundedType(WildcardType type)
|
Type |
Type.getCompatibleType(Type other)
Returns a type that is compatible with this type, and the one passed in. |
Type |
Type.getIterationElementType()
If this type supports iteration, then the element type is returned. |
static Type |
Type.getIterationType(GenericType type)
Get the iteration type of the generic type based on the generic type parameters. |
static Type |
Generics.getIterationType(Type type)
|
static Type |
Generics.getIterationType(Type generic)
|
Type |
Type.getKeyElementType()
|
static Type |
Type.getKeyType(GenericType type)
Get the key type of the generic type based on the generic type parameters. |
static Type |
Generics.getKeyType(Type type)
|
static Type |
Generics.getKeyType(Type generic)
|
static Type |
MethodMatcher.getMethodParam(Method method,
int index,
Type type)
|
protected static Type |
Type.getTypeArgument(GenericType type,
int index)
Get the associated type of the generic type based on the generic type parameters. |
static Type |
Generics.getUnderlyingType(Type ttype)
|
Type |
Type.getValueElementType()
|
static Type |
Type.getValueType(GenericType type)
Get the value type of the generic type based on the generic type parameters. |
static Type |
Generics.getValueType(Type type)
|
static Type |
Generics.getValueType(Type generic)
|
static Type |
Type.preserveType(Type currentType,
Type newType)
Preserve the current type's generic information with the specified new type if they have the same class. |
Type |
Type.setArrayElementType(Type elementType)
Accessed by the TypeChecker, to override the default. |
Type |
Type.toNonNull()
Returns this type converted such that it cannot reference null. |
Type |
Type.toNonPrimitive()
Returns a new type from this one that represents a non-primitive type. |
Type |
Type.toNullable()
Returns this type converted such that it can reference null. |
Type |
Type.toPrimitive()
Returns a new type from this one that represents a primitive type. |
| Methods in org.teatrove.tea.compiler with parameters of type Type | |
|---|---|
int |
Type.convertableFrom(Type other)
Returns the conversion cost of assigning the given type to this type. |
static Type |
Generics.findType(Type type,
Type... parents)
|
static Type |
Generics.findType(Type type,
Type... parents)
|
Type |
Type.getCompatibleType(Type other)
Returns a type that is compatible with this type, and the one passed in. |
static Type |
Generics.getIterationType(Type type)
|
static Type |
Generics.getKeyType(Type type)
|
static Type |
MethodMatcher.getMethodParam(Method method,
int index,
Type type)
|
static Type |
Generics.getValueType(Type type)
|
static int |
MethodMatcher.match(Method[] methods,
String name,
Type... params)
The best result candidates are stored in the Method array passed in. |
static Type |
Type.preserveType(Type currentType,
Type newType)
Preserve the current type's generic information with the specified new type if they have the same class. |
Type |
Type.setArrayElementType(Type elementType)
Accessed by the TypeChecker, to override the default. |
| Uses of Type in org.teatrove.tea.parsetree |
|---|
| Methods in org.teatrove.tea.parsetree that return Type | |
|---|---|
Type |
Expression.Conversion.getFromType()
Is null if this is the first conversion in the chain. |
Type |
Expression.getInitialType()
Returns the type of this expression before any conversions were applied, or null if the type isn't set. |
Type |
ParenExpression.getInitialType()
|
Type |
Returnable.getReturnType()
|
Type |
Template.getReturnType()
The return type is set by a type checker. |
Type |
Expression.Conversion.getToType()
|
Type |
Expression.getType()
The type of an expression is not necessarily set by a parser. |
Type |
ParenExpression.getType()
|
Type |
TypeName.getType()
|
Type |
Variable.getType()
Returns null if type is unknown. |
| Methods in org.teatrove.tea.parsetree with parameters of type Type | |
|---|---|
void |
Expression.convertTo(Type toType)
Applies a type conversion to this expression which is chained to all previous conversions. |
void |
BinaryLogicalExpression.convertTo(Type type,
boolean preferCast)
|
void |
BooleanLiteral.convertTo(Type type,
boolean preferCast)
|
void |
Expression.convertTo(Type toType,
boolean preferCast)
Applies a type conversion to this expression which is chained to all previous conversions. |
void |
NewArrayExpression.convertTo(Type toType,
boolean preferCast)
|
void |
NotExpression.convertTo(Type type,
boolean preferCast)
|
void |
NumberLiteral.convertTo(Type type,
boolean preferCast)
|
void |
ParenExpression.convertTo(Type toType,
boolean preferCast)
|
void |
Expression.forceConversion(Type toType,
boolean preferCast)
|
void |
Expression.setInitialType(Type type)
Sets the intial type in the conversion chain, but does not clear the conversions. |
void |
ParenExpression.setInitialType(Type type)
|
void |
Returnable.setReturnType(Type type)
|
void |
Template.setReturnType(Type type)
|
void |
BinaryExpression.setType(Type type)
|
void |
BooleanLiteral.setType(Type type)
|
void |
Expression.setType(Type type)
Sets the type of this expression, clearing the conversion chain. |
void |
NegateExpression.setType(Type type)
|
void |
NewArrayExpression.setType(Type type)
|
void |
NotExpression.setType(Type type)
|
void |
NumberLiteral.setType(Type type)
|
void |
ParenExpression.setType(Type type)
|
void |
StringLiteral.setType(Type type)
|
void |
TypeName.setType(Type type)
|
void |
Variable.setType(Type type)
|
| Constructors in org.teatrove.tea.parsetree with parameters of type Type | |
|---|---|
TypeName(SourceInfo info,
Type type)
|
|
TypeName(SourceInfo info,
TypeName[] genericTypes,
Type type)
|
|
Variable(SourceInfo info,
String name,
Type type)
Used when creating variables whose type has already been checked. |
|
Variable(SourceInfo info,
String name,
Type type,
boolean staticallyTyped)
|
|
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||