junc.types
Class ArrayType
java.lang.Object
|
+--junc.types.JUnCBaseType
|
+--junc.types.ReferenceType
|
+--junc.types.ArrayType
- public class ArrayType
- extends ReferenceType
| Fields inherited from class junc.types.JUnCBaseType |
Boolean, BooleanRep, Byte, ByteRep, Char, CharRep, Double, DoubleRep, Error, Exception, Float, FloatRep, Int, IntRep, Long, LongRep, Null, NullRep, RuntimeException, Short, ShortRep, Throwable, Void, VoidRep |
|
Constructor Summary |
ArrayType(junc.types.JUnCBaseType baseType,
int dims)
|
|
Method Summary |
org.apache.bcel.generic.Instruction |
APPENDSTB(org.apache.bcel.generic.ConstantPoolGen cpg)
|
junc.types.JUnCBaseType |
baseType()
|
int |
dims()
|
int |
distanceTo(junc.types.JUnCBaseType other)
The distance between array types is defined to be that of the base
types if positive or zero and the dimensions identical. |
boolean |
identicalTo(junc.types.JUnCBaseType other)
|
boolean |
subTypeOf(junc.types.JUnCBaseType other)
|
boolean |
superTypeOf(junc.types.JUnCBaseType other)
|
org.apache.bcel.generic.Type |
toClassFileType()
Map an JUnC type to a ClassGen one. |
java.lang.String |
toString()
|
org.apache.bcel.generic.InstructionList |
VALUEOF(org.apache.bcel.generic.ConstantPoolGen cpg)
|
| Methods inherited from class junc.types.ReferenceType |
ALOAD, ASTORE, DUP, DUPX1, DUPX2, floatingPointType, integralType, LOAD, NEWARRAY, numericType, POP, primitiveType, referenceType, RETURN, STORE |
| Methods inherited from class junc.types.JUnCBaseType |
ADD, ADDSTRING, AND, CAST, CMP, createClassType, createClassType, createType, createType, DIV, IFEQ, IFGE, IFGT, IFLE, IFLT, IFNE, MUL, name, NEG, oneWord, OR, PUSH, relatedTo, REM, SHL, SHR, SUB, throwable, toInternalString, twoWords, USHR, XOR |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ArrayType
public ArrayType(junc.types.JUnCBaseType baseType,
int dims)
dims
public int dims()
baseType
public junc.types.JUnCBaseType baseType()
identicalTo
public boolean identicalTo(junc.types.JUnCBaseType other)
- Specified by:
identicalTo in class ReferenceType
subTypeOf
public boolean subTypeOf(junc.types.JUnCBaseType other)
- Specified by:
subTypeOf in class ReferenceType
superTypeOf
public boolean superTypeOf(junc.types.JUnCBaseType other)
- Specified by:
superTypeOf in class ReferenceType
distanceTo
public int distanceTo(junc.types.JUnCBaseType 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.
- Specified by:
distanceTo in class ReferenceType
toString
public java.lang.String toString()
- Specified by:
toString in class JUnCBaseType
toClassFileType
public org.apache.bcel.generic.Type toClassFileType()
- Map an JUnC type to a ClassGen one.
- Specified by:
toClassFileType in class JUnCBaseType
VALUEOF
public org.apache.bcel.generic.InstructionList VALUEOF(org.apache.bcel.generic.ConstantPoolGen cpg)
- Overrides:
VALUEOF in class JUnCBaseType
APPENDSTB
public org.apache.bcel.generic.Instruction APPENDSTB(org.apache.bcel.generic.ConstantPoolGen cpg)
- Overrides:
APPENDSTB in class JUnCBaseType