Package javassist.bytecode.stackmap
Class TypeData.TypeVar
- java.lang.Object
-
- javassist.bytecode.stackmap.TypeData
-
- javassist.bytecode.stackmap.TypeData.AbsTypeVar
-
- javassist.bytecode.stackmap.TypeData.TypeVar
-
- Enclosing class:
- TypeData
public static class TypeData.TypeVar 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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
dfs(List<TypeData> preOrder, int index, ClassPool cp)
Depth-first search by Tarjan's algorithmTypeData
getArrayType(int dim)
String
getName()
int
getTypeData(ConstPool cp)
int
getTypeTag()
boolean
is2WordType()
TypeData.BasicType
isBasicType()
If the type is a basic type, this method normalizes the type and returns a BasicType object.boolean
isNullType()
Returns false if getName() returns a valid type name.boolean
isUninit()
void
merge(TypeData t)
void
setType(String typeName, ClassPool cp)
protected TypeData.TypeVar
toTypeVar(int dim)
Returns this if it is a TypeVar or a TypeVar that this type depends on.-
Methods inherited from class javassist.bytecode.stackmap.TypeData.AbsTypeVar
eq
-
Methods inherited from class javassist.bytecode.stackmap.TypeData
aastore, commonSuperClass, commonSuperClassEx, constructorCalled, join, make, toString
-
-
-
-
Constructor Detail
-
TypeVar
public TypeVar(TypeData t)
-
-
Method Detail
-
isBasicType
public TypeData.BasicType isBasicType()
Description copied from class:TypeData
If the type is a basic type, this method normalizes the type and returns a BasicType object. Otherwise, it returns null.- Specified by:
isBasicType
in classTypeData
-
is2WordType
public boolean is2WordType()
- Specified by:
is2WordType
in classTypeData
-
isNullType
public boolean isNullType()
Description copied from class:TypeData
Returns false if getName() returns a valid type name.- Overrides:
isNullType
in classTypeData
-
merge
public void merge(TypeData t)
- Specified by:
merge
in classTypeData.AbsTypeVar
-
getTypeTag
public int getTypeTag()
- Overrides:
getTypeTag
in classTypeData.AbsTypeVar
-
getTypeData
public int getTypeData(ConstPool cp)
- Overrides:
getTypeData
in classTypeData.AbsTypeVar
-
setType
public void setType(String typeName, ClassPool cp) throws BadBytecode
- Specified by:
setType
in classTypeData
- Throws:
BadBytecode
-
toTypeVar
protected TypeData.TypeVar toTypeVar(int dim)
Description copied from class:TypeData
Returns 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:
getArrayType
in classTypeData
- Parameters:
dim
- array dimension. It may be negative.- Throws:
NotFoundException
-
dfs
public int dfs(List<TypeData> preOrder, int index, ClassPool cp) throws NotFoundException
Description copied from class:TypeData
Depth-first search by Tarjan's algorithm- Overrides:
dfs
in classTypeData
- Parameters:
preOrder
- a node stack in the order in which nodes are visited.index
- the index used by the algorithm.- Throws:
NotFoundException
-
-