Package javassist.bytecode.stackmap
Class TypeData.ArrayElement
- java.lang.Object
-
- javassist.bytecode.stackmap.TypeData
-
- javassist.bytecode.stackmap.TypeData.AbsTypeVar
-
- javassist.bytecode.stackmap.TypeData.ArrayElement
-
- Enclosing class:
- TypeData
public static class TypeData.ArrayElement extends TypeData.AbsTypeVar
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class javassist.bytecode.stackmap.TypeData
TypeData.AbsTypeVar, TypeData.ArrayElement, TypeData.ArrayType, TypeData.BasicType, TypeData.ClassName, TypeData.NullType, TypeData.TypeVar, TypeData.UninitData, TypeData.UninitThis, TypeData.UninitTypeVar
-
-
Field Summary
Fields Modifier and Type Field Description private TypeData.AbsTypeVararray
-
Constructor Summary
Constructors Modifier Constructor Description privateArrayElement(TypeData.AbsTypeVar a)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TypeData.AbsTypeVararrayType()intdfs(java.util.ArrayList order, int index, ClassPool cp)Depth-first search by Tarjan's algorithmTypeDatagetArrayType(int dim)java.lang.StringgetName()booleanis2WordType()TypeData.BasicTypeisBasicType()If the type is a basic type, this method normalizes the type and returns a BasicType object.static TypeDatamake(TypeData array)voidmerge(TypeData t)voidsetType(java.lang.String s, ClassPool cp)(package private) java.lang.StringtoString2(java.util.HashSet set)protected TypeData.TypeVartoTypeVar(int dim)Returns this if it is a TypeVar or a TypeVar that this type depends on.private static java.lang.StringtypeName(java.lang.String arrayType)-
Methods inherited from class javassist.bytecode.stackmap.TypeData.AbsTypeVar
eq, getTypeData, getTypeTag
-
Methods inherited from class javassist.bytecode.stackmap.TypeData
aastore, commonSuperClass, commonSuperClassEx, constructorCalled, eq, isNullType, isUninit, join, make, toString
-
-
-
-
Field Detail
-
array
private TypeData.AbsTypeVar array
-
-
Constructor Detail
-
ArrayElement
private ArrayElement(TypeData.AbsTypeVar a)
-
-
Method Detail
-
make
public static TypeData make(TypeData array) throws BadBytecode
- Throws:
BadBytecode
-
merge
public void merge(TypeData t)
- Specified by:
mergein classTypeData.AbsTypeVar
-
arrayType
public TypeData.AbsTypeVar arrayType()
-
isBasicType
public TypeData.BasicType isBasicType()
Description copied from class:TypeDataIf the type is a basic type, this method normalizes the type and returns a BasicType object. Otherwise, it returns null.- Specified by:
isBasicTypein classTypeData
-
is2WordType
public boolean is2WordType()
- Specified by:
is2WordTypein classTypeData
-
typeName
private static java.lang.String typeName(java.lang.String arrayType)
-
setType
public void setType(java.lang.String s, ClassPool cp) throws BadBytecode- Specified by:
setTypein classTypeData- Throws:
BadBytecode
-
toTypeVar
protected TypeData.TypeVar toTypeVar(int dim)
Description copied from class:TypeDataReturns this if it is a TypeVar or a TypeVar that this type depends on. Otherwise, this method returns null. It is used by dfs().
-
getArrayType
public TypeData getArrayType(int dim) throws NotFoundException
- Specified by:
getArrayTypein classTypeData- Parameters:
dim- array dimension. It may be negative.- Throws:
NotFoundException
-
dfs
public int dfs(java.util.ArrayList order, int index, ClassPool cp) throws NotFoundExceptionDescription copied from class:TypeDataDepth-first search by Tarjan's algorithm- Overrides:
dfsin classTypeData- Parameters:
order- a node stack in the order in which nodes are visited.index- the index used by the algorithm.- Throws:
NotFoundException
-
-