Uses of Class
jparse.Type

Packages that use Type
jparse Provides the main classes that parse and evaluate Java programs. 
jparse.expr Provides classes that represent Java expressions. 
jparse.stmt Provides classes that represent Java statements. 
 

Uses of Type in jparse
 

Subclasses of Type in jparse
 class CompiledType
          Information on a Java type defined in a Java class file.
 class SourceType
          Information on a Java type defined in a Java source file.
 

Fields in jparse declared as Type
private  Type SourceType.parent
          The parent type
private  Type[] SourceType.interfaces
          The interfaces this class implements, or this interface extends
private  Type[] SourceType.inner
          The inner classes and interfaces of this type
private  Type MethAST.returnType
          The return type for this method
private  Type[] MethAST.paramTypes
          The parameter types for this method
private  Type[] MethAST.exceptions
          The checked exceptions this method might throw
protected static Type[] JavaAST.noTypes
          An empty array of types, for use in parameter and exception lists when there are none; avoids creating new arrays when it is unnecessary without resorting to lots of null checks
private  Type[] ConstrAST.paramTypes
          The parameter types for this constructor
private  Type[] ConstrAST.exceptions
          The checked exceptions this constructor might throw
private  Type[] CompiledType.inner
          The inner classes and interfaces of this class, in no particular order
 

Methods in jparse that return Type
 Type TypeAST.retrieveType()
          Retrieve the type represented by this AST node
static Type Type.forName(String className)
          Find a type based on its name.
static Type Type.forClass(Class theClass)
          Find a type based on a class.
static Type Type.varType(String className, String varName)
          Determine the type of a variable in some class
static Type Type.arithType(Type t1, Type t2)
          Determine the type of the result of arithmetic on two types, using the rules for Java type promotion
static Type[] Type.mergeTypeLists(Type[] list1, Type[] list2)
          Merge two lists of types, removing duplicates and subclasses
abstract  Type Type.getSuperclass()
          Get the supertype of this Type object
abstract  Type[] Type.getInterfaces()
          Get the interfaces implemented by this type (if it is a class) or extended by this type (if it is an interface)
abstract  Type Type.getComponentType()
          Get the component type of an array, or return null if this type does not represent an array
abstract  Type Type.getDeclaringClass()
          If this is an inner class, return the outer class.
abstract  Type[] Type.getClasses()
          Returns an array containing Type objects representing all the classes and interfaces that are members of this type.
abstract  Type Type.getInner(String name)
          Get an inner class with a specified name.
abstract  Type Type.getArrayType()
          Get the type that corresponds to an array of this type
abstract  Type Type.varType(String varName)
          Determine the type of a (static or instance) variable
 Type SourceType.getSuperclass()
           
 Type[] SourceType.getInterfaces()
           
 Type SourceType.getComponentType()
           
 Type SourceType.getDeclaringClass()
           
 Type[] SourceType.getClasses()
           
 Type SourceType.getInner(String name)
           
 Type SourceType.getArrayType()
           
 Type SourceType.varType(String varName)
           
 Type Method.getDeclaringClass()
          Returns the Type object representing the class or interface that declares the method represented by this object.
 Type Method.getReturnType()
          Returns a Type object that represents the formal return type of this method.
 Type[] Method.getParameterTypes()
          Returns an array of Type objects that represent the formal parameter types, in declaration order, of this method.
 Type[] Method.getExceptionTypes()
          Returns an array of Type objects that represent the types of the exceptions declared to be thrown by this method.
 Type MethAST.getDeclaringClass()
          Returns the Type object representing the class or interface that declares the method represented by this object.
 Type MethAST.getReturnType()
          Returns a Type object that represents the formal return type of this method.
 Type[] MethAST.getParameterTypes()
          Returns an array of Type objects that represent the formal parameter types, in declaration order, of this method.
 Type[] MethAST.getExceptionTypes()
           
protected  Type[] MethAST.computeExceptions()
          Returns an array of Type objects that represent the types of the exceptions declared to be thrown by this method.
 Type[] HasExceptions.getExceptionTypes()
          Returns an array of Type objects that represent the types of the checked exceptions that might be thrown by this Java entity.
 Type FileAST.getType(String name)
          Find a type with the given name, using the import list for this file
 Type Constructor.getDeclaringClass()
          Returns the Type object representing the class or interface that declares the constructor represented by this object.
 Type[] Constructor.getParameterTypes()
          Returns an array of Type objects that represent the formal parameter types, in declaration order, of this constructor.
 Type ConstrAST.getDeclaringClass()
          Returns the Type object representing the class or interface that declares the constructor represented by this object.
 Type[] ConstrAST.getParameterTypes()
          Returns an array of Type objects that represent the formal parameter types, in declaration order, of this constructor.
 Type[] ConstrAST.getExceptionTypes()
          Get the checked exception types that might be thrown by this constructor
protected  Type[] ConstrAST.computeExceptions()
          Returns an array of Type objects that represent the types of the exceptions declared to be thrown by this constructor.
 Type CompiledType.getSuperclass()
           
 Type[] CompiledType.getInterfaces()
           
 Type CompiledType.getComponentType()
           
 Type CompiledType.getDeclaringClass()
           
 Type[] CompiledType.getClasses()
           
 Type CompiledType.getInner(String name)
           
 Type CompiledType.getArrayType()
           
 Type CompiledType.varType(String varName)
           
 Type CompiledMethod.getDeclaringClass()
          Returns the Type object representing the class or interface that declares the method represented by this object.
 Type CompiledMethod.getReturnType()
          Returns a Type object that represents the formal return type of this method.
 Type[] CompiledMethod.getParameterTypes()
          Returns an array of Type objects that represent the formal parameter types, in declaration order, of this method.
 Type[] CompiledMethod.getExceptionTypes()
           
 Type CompiledConstructor.getDeclaringClass()
          Returns the Type object representing the class or interface that declares the constructor represented by this object.
 Type[] CompiledConstructor.getParameterTypes()
          Returns an array of Type objects that represent the formal parameter types, in declaration order, of this constructor.
 Type[] CompiledConstructor.getExceptionTypes()
          Returns an array of Type objects that represent the types of the exceptions declared to be thrown by this constructor.
 

Methods in jparse with parameters of type Type
static Type Type.arithType(Type t1, Type t2)
          Determine the type of the result of arithmetic on two types, using the rules for Java type promotion
static Type[] Type.mergeTypeLists(Type[] list1, Type[] list2)
          Merge two lists of types, removing duplicates and subclasses
abstract  boolean Type.isAssignableFrom(Type type)
          Determine whether this type, as a formal parameter, can have a value of type type assigned to it as an actual parameter.
abstract  Method Type.getMethod(String methName, Type[] paramTypes, Type caller)
          Get an object representing a method in this class with the specified parameter types
abstract  Constructor Type.getConstructor(Type[] params, Type caller)
          Get an object representing the constructor for this class with the specified parameter types
abstract  Method[] Type.getMeths(String name, Type[] params, Type caller)
          Retrieve matching methods
 boolean Type.superClassOf(Type type)
          Determine whether this type is a superclass of another type
 boolean Type.superInterfaceOf(Type type)
          Determine whether this type is a superinterface of another type
 boolean Type.implementsInterface(Type type)
          Determine whether this type implements an interface
 Method SymbolTable.getMeth(String name, Type[] params, Type caller)
          Find a method symbol in the symbol table
 Method[] SymbolTable.getMeths(String name, Type[] params, Type caller)
          Retrieve all matching methods
 boolean SourceType.isAssignableFrom(Type type)
           
 Method SourceType.getMethod(String methName, Type[] paramTypes, Type caller)
           
 Constructor SourceType.getConstructor(Type[] params, Type caller)
           
 Method[] SourceType.getMeths(String name, Type[] params, Type caller)
           
 boolean Method.isAccessible(Type caller)
          Determines whether the method is accessible to a given caller
 boolean Method.match(String name, Type[] params, Type caller)
          Determines whether this method matches the parameters given by a caller
 boolean Method.match(Type[] params, Type caller)
          Determines whether this method matches the parameters given by a caller
 boolean MethAST.isAccessible(Type caller)
           
 boolean MethAST.match(String methName, Type[] params, Type caller)
          Determines whether this method matches the parameters given by a caller
 boolean MethAST.match(Type[] params, Type caller)
          Determines whether this method matches the parameters given by a caller
 boolean Constructor.match(Type[] params, Type caller)
          Determines whether this constructor matches the parameters given by a caller
 boolean ConstrAST.match(Type[] params, Type caller)
          Determines whether this constructor matches the parameters given by a caller
 boolean CompiledType.isAssignableFrom(Type type)
           
 Method CompiledType.getMethod(String methName, Type[] paramTypes, Type caller)
           
 Constructor CompiledType.getConstructor(Type[] params, Type caller)
           
 Method[] CompiledType.getMeths(String name, Type[] params, Type caller)
           
 boolean CompiledMethod.isAccessible(Type caller)
           
 boolean CompiledMethod.match(String name, Type[] params, Type caller)
          Determines whether this method matches the parameters given by a caller
 boolean CompiledMethod.match(Type[] params, Type caller)
          Determines whether this method matches the parameters given by a caller
 boolean CompiledConstructor.match(Type[] params, Type caller)
          Determines whether this constructor matches the parameters given by a caller
 

Uses of Type in jparse.expr
 

Fields in jparse.expr declared as Type
private  Type[] ListAST.types
          The types of the expressions in this expression list
protected  Type ExpressionAST.type
          The type of this expression
protected  Type[] ExpressionAST.exceptions
          The checked exceptions this expression might throw
 

Methods in jparse.expr that return Type
protected  Type VarAST.computeType()
           
protected  Type[] VarAST.computeExceptions()
           
protected  Type UnaryArithAST.computeType()
           
protected  Type[] UnaryArithAST.computeExceptions()
           
protected  Type TypecastAST.computeType()
           
protected  Type[] TypecastAST.computeExceptions()
           
protected  Type TypeAST.computeType()
           
protected  Type[] TypeAST.computeExceptions()
           
protected  Type ThisLiteralAST.computeType()
           
protected  Type[] ThisLiteralAST.computeExceptions()
           
protected  Type StringLiteralAST.computeType()
           
protected  Type[] StringLiteralAST.computeExceptions()
           
protected  Type ShiftAST.computeType()
           
protected  Type[] ShiftAST.computeExceptions()
           
protected  Type ParenthesizedAST.computeType()
           
protected  Type[] ParenthesizedAST.computeExceptions()
           
protected  Type NumLiteralAST.computeType()
           
protected  Type[] NumLiteralAST.computeExceptions()
           
protected  Type NullLiteralAST.computeType()
           
protected  Type[] NullLiteralAST.computeExceptions()
           
protected  Type NewAST.computeType()
           
protected  Type[] NewAST.computeExceptions()
           
protected  Type MethodCallAST.computeType()
           
protected  Type[] MethodCallAST.computeExceptions()
           
protected  Type ListAST.computeType()
           
protected  Type[] ListAST.computeExceptions()
           
 Type[] ListAST.getTypes()
          Get a list of all the types in this expression list (used for parameter lists)
protected  Type InitializerAST.computeType()
           
protected  Type[] InitializerAST.computeExceptions()
           
protected  Type IndexAST.computeType()
           
protected  Type[] IndexAST.computeExceptions()
           
protected  Type IdentifierAST.computeType()
           
protected  Type[] IdentifierAST.computeExceptions()
           
protected  Type FloatLiteralAST.computeType()
           
protected  Type[] FloatLiteralAST.computeExceptions()
           
 Type ExpressionAST.retrieveType()
          Retrieve the type of this expression
protected abstract  Type ExpressionAST.computeType()
          Compute the type of this expression
 Type[] ExpressionAST.getExceptionTypes()
          Get the checked exception types that might be thrown by this expression
protected abstract  Type[] ExpressionAST.computeExceptions()
          Compute the checked exception types that might be thrown by this expression
protected  Type ConditionalAST.computeType()
           
protected  Type[] ConditionalAST.computeExceptions()
           
protected  Type CharLiteralAST.computeType()
           
protected  Type[] CharLiteralAST.computeExceptions()
           
protected  Type BooleanLiteralAST.computeType()
           
protected  Type[] BooleanLiteralAST.computeExceptions()
           
protected  Type BooleanAST.computeType()
           
protected  Type[] BooleanAST.computeExceptions()
           
protected  Type BitwiseAST.computeType()
           
protected  Type[] BitwiseAST.computeExceptions()
           
protected  Type AssignAST.computeType()
           
protected  Type[] AssignAST.computeExceptions()
           
protected  Type ArrayInitAST.computeType()
           
protected  Type[] ArrayInitAST.computeExceptions()
           
protected  Type ArithmeticAST.computeType()
           
protected  Type[] ArithmeticAST.computeExceptions()
           
 

Uses of Type in jparse.stmt
 

Fields in jparse.stmt declared as Type
protected  Type[] StatementAST.exceptions
          The checked exceptions this statement might throw
 

Methods in jparse.stmt that return Type
protected  Type[] WhileAST.computeExceptions()
           
protected  Type[] TryAST.computeExceptions()
           
protected  Type[] ThrowAST.computeExceptions()
           
protected  Type[] SynchronizedAST.computeExceptions()
           
protected  Type[] SwitchAST.computeExceptions()
           
 Type[] StatementAST.getExceptionTypes()
          Get the checked exception types that might be thrown by this statement
protected abstract  Type[] StatementAST.computeExceptions()
          Compute the checked exception types that might be thrown by this statement
protected  Type[] ReturnAST.computeExceptions()
           
protected  Type[] LabelAST.computeExceptions()
           
protected  Type[] IfElseAST.computeExceptions()
           
protected  Type[] ForAST.computeExceptions()
           
protected  Type[] ExpressionAST.computeExceptions()
           
protected  Type[] EmptyAST.computeExceptions()
           
protected  Type[] DoWhileAST.computeExceptions()
           
protected  Type[] DeclarationAST.computeExceptions()
           
protected  Type[] ContinueAST.computeExceptions()
           
protected  Type[] CompoundAST.computeExceptions()
           
protected  Type[] ClassAST.computeExceptions()
           
protected  Type[] CatchAST.computeExceptions()
           
(package private)  Type[] CatchAST.removeCaughtException(Type[] list)
          Remove the exception caught by this catch clause from a list of exceptions.
protected  Type[] CaseGroupAST.computeExceptions()
           
protected  Type[] BreakAST.computeExceptions()
           
 

Methods in jparse.stmt with parameters of type Type
(package private)  Type[] CatchAST.removeCaughtException(Type[] list)
          Remove the exception caught by this catch clause from a list of exceptions.