Package javassist.bytecode.stackmap
Class TypeData.ArrayType
- java.lang.Object
-
- javassist.bytecode.stackmap.TypeData
-
- javassist.bytecode.stackmap.TypeData.AbsTypeVar
-
- 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 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.AbsTypeVarelement
-
Constructor Summary
Constructors Modifier Constructor Description privateArrayType(TypeData.AbsTypeVar elementType)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intdfs(java.util.ArrayList order, int index, ClassPool cp)Depth-first search by Tarjan's algorithmTypeData.AbsTypeVarelementType()TypeDatagetArrayType(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.(package private) static TypeDatamake(TypeData element)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.static java.lang.StringtypeName(java.lang.String elementType)-
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
-
element
private TypeData.AbsTypeVar element
-
-
Constructor Detail
-
ArrayType
private ArrayType(TypeData.AbsTypeVar elementType)
-
-
Method Detail
-
make
static TypeData make(TypeData element) throws BadBytecode
- Throws:
BadBytecode
-
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
-
typeName
public static java.lang.String typeName(java.lang.String elementType)
-
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
-
-