Uses of Class
com.svincent.smalljava.SmallType

Packages that use SmallType
com.svincent.smalljava Provides an API for generating Java source code and JVM bytecodes. 
 

Uses of SmallType in com.svincent.smalljava
 

Subclasses of SmallType in com.svincent.smalljava
static class SmallType.ArrayType
          A type which represents an array type.
static class SmallType.MethodType
          Represents a type for a method.
static class SmallType.ObjectType
          An instance of a class.
protected static class SmallType.PrimitiveType
          Reprsents a primitive type, such as int or boolean.
 

Fields in com.svincent.smalljava declared as SmallType
static SmallType[] SmallType.EmptyArray
          A constant empty array of SmallTypes.
static SmallType SmallType.Void
          The Void type: only allowed as the return type of methods.
static SmallType SmallType.Boolean
          A boolean value: true or false.
static SmallType SmallType.Byte
          A signed byte value.
static SmallType SmallType.Char
          An unsigned Unicode character.
static SmallType SmallType.Short
          A signed short integer.
static SmallType SmallType.Int
          A signed integer
static SmallType SmallType.Long
          A signed long integer
static SmallType SmallType.Float
          A single-precision IEEE 754 float
static SmallType SmallType.Double
          A double-precision IEEE 754 float
 

Methods in com.svincent.smalljava that return SmallType
 SmallType SmallMethod.getArgType(int i)
          Get the type of argument 'i'.
 SmallType[] SmallMethod.getArgTypes()
          Get the types of all arguments.
 SmallType SmallMethod.getReturnType()
          Return the type of the return value of this method.
 SmallType SmallMethod.Local.getType()
          Returns the type of this local variable.
protected  SmallType Expr.evalType(SmallMethod m)
          Not to be called by users.
protected abstract  SmallType Expr.deriveType(SmallMethod m)
          Actually do the work.
 SmallType Expr.getResultType()
          Get the type of the result of this expression.
protected  SmallType Expr.New.deriveType(SmallMethod m)
           
protected  SmallType Expr.SuperConstructor.deriveType(SmallMethod m)
           
protected  SmallType Expr.NewArray.deriveType(SmallMethod m)
           
protected  SmallType Expr.Return.deriveType(SmallMethod m)
           
protected  SmallType Expr.Call.deriveType(SmallMethod m)
           
protected  SmallType Expr.SetField.deriveType(SmallMethod m)
           
protected  SmallType Expr.SetLocal.deriveType(SmallMethod m)
           
protected  SmallType Expr.SetArray.deriveType(SmallMethod m)
           
protected  SmallType Expr.GetField.deriveType(SmallMethod m)
           
protected  SmallType Expr.GetStatic.deriveType(SmallMethod m)
           
protected  SmallType Expr.GetLocal.deriveType(SmallMethod m)
           
protected  SmallType Expr.This.deriveType(SmallMethod m)
           
protected  SmallType Expr.IntConst.deriveType(SmallMethod m)
           
protected  SmallType Expr.DoubleConst.deriveType(SmallMethod m)
           
protected  SmallType Expr.NullConst.deriveType(SmallMethod m)
           
protected  SmallType Expr.BooleanConst.deriveType(SmallMethod m)
           
protected  SmallType Expr.StringConst.deriveType(SmallMethod m)
           
protected  SmallType Expr.Begin.deriveType(SmallMethod m)
           
protected  SmallType Expr.While.deriveType(SmallMethod m)
           
protected  SmallType Expr.If.deriveType(SmallMethod m)
           
protected  SmallType Expr.Comment.deriveType(SmallMethod m)
           
 SmallType SmallField.getType()
          Return the type of this field.
static SmallType SmallType.parseFieldDescriptor(java.lang.String desc)
          Parse the given field descriptor into a SmallType.
 SmallType SmallType.ArrayType.getElementType()
           
 SmallType SmallType.MethodType.getReturnType()
           
 SmallType[] SmallType.MethodType.getArgTypes()
           
 SmallType SmallType.MethodType.getArgType(int i)
           
 

Methods in com.svincent.smalljava with parameters of type SmallType
protected  void SmallMethod.addParameter(SmallType type, java.lang.String name)
          Add a new parameter to this method: called from the constructor.
 void SmallMethod.local(SmallType type, java.lang.String name, Expr initializer)
          Add a new local variable to this method, with the given type and initializer.
static SmallType.ArrayType SmallType.array(SmallType t)
          Make a new array of the given type.
 

Constructors in com.svincent.smalljava with parameters of type SmallType
SmallMethod.Local.SmallMethod.Local(SmallMethod _method, SmallType _type, java.lang.String _name)
           
Expr.NewArray.Expr.NewArray(SmallType _arrayType, Expr _size)
          Makes a new array like: new Type[size]
Expr.NewArray.Expr.NewArray(SmallType _arrayType, Expr[] _initializer)
          Makes a new array like: new Type[] {initializer}
SmallField.SmallField(SmallType _type, java.lang.String _name)
           
SmallField.SmallField(int _modifiers, SmallType _type, java.lang.String _name)
           
SmallField.SmallField(int _modifiers, java.lang.String _descriptor, SmallType _type, java.lang.String _name)
           
SmallType.ArrayType.SmallType.ArrayType(SmallType _subType)
          Make a new ArrayType.
SmallType.MethodType.SmallType.MethodType(SmallType _returnType, SmallType[] _argTypes)
           
 




This is documentation for Moksa Prolog, which can be found at http://www.svincent.com/moksa/

Copyright © 1999 Shawn P. Vincent.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.