Class TypeData.ArrayType
- java.lang.Object
-
- org.hotswap.agent.javassist.bytecode.stackmap.TypeData
-
- org.hotswap.agent.javassist.bytecode.stackmap.TypeData.AbsTypeVar
-
- org.hotswap.agent.javassist.bytecode.stackmap.TypeData.ArrayType
-
- Enclosing class:
- TypeData
public static class TypeData.ArrayType extends TypeData.AbsTypeVar
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.hotswap.agent.javassist.bytecode.stackmap.TypeData
TypeData.AbsTypeVar, TypeData.ArrayElement, TypeData.ArrayType, TypeData.BasicType, TypeData.ClassName, TypeData.NullType, TypeData.TypeVar, TypeData.UninitData, TypeData.UninitThis, TypeData.UninitTypeVar
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intdfs(List<TypeData> order, int index, ClassPool cp)Depth-first search by Tarjan's algorithmTypeData.AbsTypeVarelementType()TypeDatagetArrayType(int dim)StringgetName()booleanis2WordType()TypeData.BasicTypeisBasicType()If the type is a basic type, this method normalizes the type and returns a BasicType object.voidmerge(TypeData t)voidsetType(String s, ClassPool cp)protected TypeData.TypeVartoTypeVar(int dim)Returns this if it is a TypeVar or a TypeVar that this type depends on.static StringtypeName(String elementType)-
Methods inherited from class org.hotswap.agent.javassist.bytecode.stackmap.TypeData.AbsTypeVar
eq, getTypeData, getTypeTag
-
Methods inherited from class org.hotswap.agent.javassist.bytecode.stackmap.TypeData
aastore, commonSuperClass, commonSuperClassEx, constructorCalled, isNullType, isUninit, join, make, toString
-
-
-
-
Method Detail
-
merge
public void merge(TypeData t)
- Specified by:
mergein classTypeData.AbsTypeVar
-
elementType
public TypeData.AbsTypeVar elementType()
-
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
-
setType
public void setType(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(List<TypeData> order, int index, ClassPool cp) throws NotFoundException
Description 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
-
-