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 TypeMethodDescriptionintDepth-first search by Tarjan's algorithmprivate CtClassprivate voidprivate voidprivate StringgetArrayType(int dim) getName()intgetTypeData(ConstPool cp) intbooleanIf the type is a basic type, this method normalizes the type and returns a BasicType object.booleanReturns false if getName() returns a valid type name.private static booleanisObjectArray(CtClass cc) booleanisUninit()voidvoid(package private) Stringprotected TypeData.TypeVartoTypeVar(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
eqMethods 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: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
-
isNullType
public boolean isNullType()Description copied from class:TypeDataReturns false if getName() returns a valid type name.- Overrides:
isNullTypein classTypeData
-
isUninit
public boolean isUninit() -
merge
- Specified by:
mergein classTypeData.AbsTypeVar
-
getTypeTag
public int getTypeTag()- Overrides:
getTypeTagin classTypeData.AbsTypeVar
-
getTypeData
- Overrides:
getTypeDatain classTypeData.AbsTypeVar
-
setType
- Specified by:
setTypein classTypeData- Throws:
BadBytecode
-
toTypeVar
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
- Specified by:
getArrayTypein classTypeData- Parameters:
dim- array dimension. It may be negative.- Throws:
NotFoundException
-
dfs
Description copied from class:TypeDataDepth-first search by Tarjan's algorithm- Overrides:
dfsin 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
-