jellyj.util
Class ArrayType

jellyj.util.Type
  |
  +--jellyj.util.ReferenceType
        |
        +--jellyj.util.ArrayType

public class ArrayType
extends ReferenceType


Field Summary
 (package private) TypebaseType_d
           
 (package private) static Typecloneable
           
 (package private) intdims_d
           
 (package private) static Typeobject
           

Fields inherited from class jellyj.util.Type
Boolean, Byte, cache_d, CACHE_SIZE, Char, Double, Error, Exception, Float, Int, Long, Null, RuntimeException, Short, Throwable, Void

Constructor Summary
ArrayType(Type baseType, int dims)
           

Method Summary
 InstructionAPPENDSTB(ConstantPoolGen cpg)
           
 TypebaseType()
           
 intdims()
           
 intdistanceTo(Type other)
          The distance between array types is defined to be that of the base types if positive or zero and the dimensions identical.
 booleanidenticalTo(Type other)
           
 booleansubTypeOf(Type other)
           
 booleansuperTypeOf(Type other)
           
 ClassGenTypetoClassFileType()
          Map an JellyJ type to a ClassGen one.
 StringtoString()
           
 InstructionListVALUEOF(ConstantPoolGen cpg)
           

Methods inherited from class jellyj.util.ReferenceType
ALOAD, ASTORE, DUP, DUPX1, DUPX2, floatingPointType, integralType, LOAD, NEWARRAY, numericType, POP, primitiveType, referenceType, RETURN, STORE

Methods inherited from class jellyj.util.Type
ADD, ADDSTRING, AND, CAST, CMP, createClassType, createClassType, createType, createType, DIV, IFEQ, IFGE, IFGT, IFLE, IFLT, IFNE, MUL, name, NEG, oneWord, OR, parseType, PUSH, relatedTo, REM, SHL, SHR, SUB, throwable, toInternalString, twoWords, USHR, XOR

Field Detail

baseType_d

Type baseType_d

cloneable

static Type cloneable

dims_d

int dims_d

object

static Type object
Constructor Detail

ArrayType

public ArrayType(Type baseType, int dims)
Method Detail

APPENDSTB

public Instruction APPENDSTB(ConstantPoolGen cpg)

baseType

public Type baseType()

dims

public int dims()

distanceTo

public int distanceTo(Type other)
The distance between array types is defined to be that of the base types if positive or zero and the dimensions identical. In addition, the distances to java.lang.Object and java.lang.Cloneable are big enough never to be preferred over another compatible array type. Also note that java.lang.Cloneable is preferred over java.lang .Object.

identicalTo

public boolean identicalTo(Type other)

subTypeOf

public boolean subTypeOf(Type other)

superTypeOf

public boolean superTypeOf(Type other)

toClassFileType

public ClassGenType toClassFileType()
Map an JellyJ type to a ClassGen one.

toString

public String toString()

VALUEOF

public InstructionList VALUEOF(ConstantPoolGen cpg)

Association Links

to Class jellyj.util.Type

to Class jellyj.util.Type

to Class jellyj.util.Type