Uses of Class
com.go.tea.compiler.Type

Packages that use Type
com.go.tea.compiler   
com.go.tea.parsetree   
 

Uses of Type in com.go.tea.compiler
 

Fields in com.go.tea.compiler declared as Type
static Type Type.NULL_TYPE
          Type that is compatble with all other types
static Type Type.VOID_TYPE
          Type that represents void, provided as a convenience
static Type Type.OBJECT_TYPE
          Type that represents all objects, 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.BOOLEAN_TYPE
          Type for representing booleans, provided as a convenience
static Type Type.STRING_TYPE
          Type for representing Strings, provided as a convenience
static Type Type.NON_NULL_STRING_TYPE
          Type for representing non-null Strings, provided as a convenience
 

Methods in com.go.tea.compiler that return Type
 Type Type.toPrimitive()
          Returns a new type from this one that represents a primitive type.
 Type Type.toNonPrimitive()
          Returns a new type from this one that represents a non-primitive type.
 Type Type.toNonNull()
          Returns this type converted such that it cannot reference null.
 Type Type.toNullable()
          Returns this type converted such that it can reference null.
 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.
 Type Type.getIterationElementType()
          If this type supports iteration, then the element type is returned.
 Type Type.getCompatibleType(Type other)
          Returns a type that is compatible with this type, and the one passed in.
 

Methods in com.go.tea.compiler with parameters of type Type
 Type Type.getCompatibleType(Type other)
          Returns a type that is compatible with this type, and the one passed in.
 int Type.convertableFrom(Type other)
          Returns the conversion cost of assigning the given type to this type.
static int MethodMatcher.match(java.lang.reflect.Method[] methods, java.lang.String name, Type[] params)
          The best result candidates are stored in the Method array passed in.
 

Uses of Type in com.go.tea.parsetree
 

Methods in com.go.tea.parsetree that return Type
 Type Expression.getType()
          The type of an expression is not necessarily set by a parser.
 Type Expression.getInitialType()
          Returns the type of this expression before any conversions were applied, or null if the type isn't set.
 Type ParenExpression.getType()
           
 Type ParenExpression.getInitialType()
           
 Type Expression.Conversion.getFromType()
          Is null if this is the first conversion in the chain.
 Type Expression.Conversion.getToType()
           
 Type TypeName.getType()
           
 Type Template.getReturnType()
          The return type is set by a type checker.
 Type Variable.getType()
          Returns null if type is unknown.
 

Methods in com.go.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 Expression.convertTo(Type toType, boolean preferCast)
          Applies a type conversion to this expression which is chained to all previous conversions.
 void Expression.setType(Type type)
          Sets the type of this expression, clearing the conversion chain.
 void Expression.setInitialType(Type type)
          Sets the intial type in the conversion chain, but does not clear the conversions.
 void ParenExpression.convertTo(Type toType, boolean preferCast)
           
 void ParenExpression.setType(Type type)
           
 void ParenExpression.setInitialType(Type type)
           
 void NewArrayExpression.convertTo(Type toType, boolean preferCast)
           
 void NewArrayExpression.setType(Type type)
           
 void BinaryExpression.setType(Type type)
           
 void StringLiteral.setType(Type type)
           
 void BinaryLogicalExpression.convertTo(Type type, boolean preferCast)
           
 void TypeName.setType(Type type)
           
 void Template.setReturnType(Type type)
           
 void NegateExpression.setType(Type type)
           
 void NotExpression.convertTo(Type type, boolean preferCast)
           
 void NotExpression.setType(Type type)
           
 void Variable.setType(Type type)
           
 void NumberLiteral.convertTo(Type type, boolean preferCast)
           
 void NumberLiteral.setType(Type type)
           
 void BooleanLiteral.convertTo(Type type, boolean preferCast)
           
 void BooleanLiteral.setType(Type type)
           
 

Constructors in com.go.tea.parsetree with parameters of type Type
TypeName(SourceInfo info, Type type)
           
Variable(SourceInfo info, java.lang.String name, Type type)
          Used when creating variables whose type has already been checked.