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
-
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Depth-first search by Tarjan's algorithmprivate CtClass
private void
private void
private String
getArrayType
(int dim) getName()
int
getTypeData
(ConstPool cp) int
boolean
If the type is a basic type, this method normalizes the type and returns a BasicType object.boolean
Returns false if getName() returns a valid type name.private static boolean
isObjectArray
(CtClass cc) boolean
isUninit()
void
void
(package private) String
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, eq, join, make, toString
-
Field Details
-
lowers
-
usedBy
-
uppers
-
fixedType
-
is2WordType
private boolean is2WordType -
visited
private int visited -
smallest
private int smallest -
inList
private boolean inList -
dimension
private int dimension
-
-
Constructor Details
-
TypeVar
-
-
Method Details
-
getName
-
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
-
isUninit
public boolean isUninit() -
merge
- Specified by:
merge
in classTypeData.AbsTypeVar
-
getTypeTag
public int getTypeTag()- Overrides:
getTypeTag
in classTypeData.AbsTypeVar
-
getTypeData
- Overrides:
getTypeData
in classTypeData.AbsTypeVar
-
setType
- Specified by:
setType
in classTypeData
- Throws:
BadBytecode
-
toTypeVar
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
- Specified by:
getArrayType
in classTypeData
- Parameters:
dim
- array dimension. It may be negative.- Throws:
NotFoundException
-
dfs
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
-
fixTypes
- Throws:
NotFoundException
-
fixTypes1
- Throws:
NotFoundException
-
fixTypes2
private String fixTypes2(List<TypeData> scc, Set<String> lowersSet, ClassPool cp) throws NotFoundException - Throws:
NotFoundException
-
isObjectArray
- Throws:
NotFoundException
-
fixByUppers
private CtClass fixByUppers(List<TypeData> users, ClassPool cp, Set<TypeData> visited, CtClass type) throws NotFoundException - Throws:
NotFoundException
-
toString2
-