Main Page   Packages   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

ClassTokenArray Class Reference

Inheritance diagram for ClassTokenArray:
[legend]
Collaboration diagram for ClassTokenArray:
[legend]
List of all members.

Public Methods

ArrayType getArrayType ()

Static Public Methods

Type arrayTypeToComponentType (ArrayType arrayType)
ArrayType componentToArrayType (Type componentType)
ClassTokenArray select (ArrayType arrayType)

Private Methods

 ClassTokenArray (ArrayType arrayType)

Static Private Methods

ArrayType getCanonicalArrayTypeInstance (ArrayType arrayType)

Private Attributes

ArrayType arrayType

Static Private Attributes

Map allocatedTokens = new HashMap()

Detailed Description

This class represents the class token for array types in the analysis. In java array types are represented as classes.

Author:
John Hatcliff , Venkatesh Prasad Ranganath
Version:
Name:
(
Revision:
1.1.1.1
)

Definition at line 54 of file ClassTokenArray.java.


Constructor & Destructor Documentation

ClassTokenArray::ClassTokenArray ArrayType   arrayType [inline, private]
 

Creates a new object.

Parameters:
arrayType   the array type associated with this class token.

Definition at line 73 of file ClassTokenArray.java.


Member Function Documentation

Type ClassTokenArray::arrayTypeToComponentType ArrayType   arrayType [inline, static]
 

Extracts the component type of the given array type.

Parameters:
arrayType   the array type whose component type is requested.
Returns:
the component type of the given array type.

Definition at line 83 of file ClassTokenArray.java.

ArrayType ClassTokenArray::componentToArrayType Type   componentType [inline, static]
 

Constructs a new array type in which the component type is of the given type.

Parameters:
componentType   the component type of the requested array type.
Returns:
the new array type with the given component type.

Definition at line 99 of file ClassTokenArray.java.

ArrayType ClassTokenArray::getArrayType   [inline]
 

Returns the ArrayType associated with this class token.

Returns:
a soot object representing the array type associated with this class token.

Definition at line 117 of file ClassTokenArray.java.

ArrayType ClassTokenArray::getCanonicalArrayTypeInstance ArrayType   arrayType [inline, static, private]
 

Provides the class token associated with the given array type.

In this method, array types are tested for logical equality rather than object equality. It is the case that there may be more than one SootClass object pertaining to equivalent array types. Hence, the name getCanonicalArrayTypeInstance.

Parameters:
arrayType   the array type which needs to be checked if registered
Returns:
the class token associated with the array type, if any, else null.

Definition at line 132 of file ClassTokenArray.java.

ClassTokenArray ClassTokenArray::select ArrayType   arrayType [inline, static]
 

Provides the class token associated with the given array type.

Parameters:
arrayType   the array type for which the class token is requested.
Returns:
the class token associated with the array type.

Definition at line 156 of file ClassTokenArray.java.


Member Data Documentation

Map ClassTokenArray::allocatedTokens = new HashMap() [static, private]
 

Maps an array type to a class token,ClassToken.

An integer array of 3 dimension is an array type.

Definition at line 61 of file ClassTokenArray.java.

ArrayType ClassTokenArray::arrayType [private]
 

The ArrayType object associated with this class token object.

Definition at line 66 of file ClassTokenArray.java.


The documentation for this class was generated from the following file:
Generated at Thu Feb 7 07:06:34 2002 for Bandera by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001