Package javassist.bytecode.stackmap
Class TypeData
java.lang.Object
javassist.bytecode.stackmap.TypeData
- Direct Known Subclasses:
TypeData.AbsTypeVar
,TypeData.BasicType
,TypeData.ClassName
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
static class
protected static class
Primitive types.static class
Type data for OBJECT.static class
Type data for NULL or OBJECT.static class
static class
Type data for UNINIT.static class
static class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
static CtClass
commonSuperClass
(CtClass one, CtClass two) Finds the most specific common super class of the given classes.static CtClass
commonSuperClassEx
(CtClass one, CtClass two) Finds the most specific common super class of the given classes by considering array types.void
constructorCalled
(int offset) int
Depth-first search by Tarjan's algorithmabstract boolean
(package private) static boolean
abstract TypeData
getArrayType
(int dim) abstract String
getName()
abstract int
getTypeData
(ConstPool cp) abstract int
abstract boolean
abstract TypeData.BasicType
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.boolean
isUninit()
join()
static TypeData[]
make
(int size) abstract void
private static void
Sets the type name of this object type.toString()
(package private) abstract String
protected TypeData.TypeVar
toTypeVar
(int dim) Returns this if it is a TypeVar or a TypeVar that this type depends on.
-
Constructor Details
-
TypeData
protected TypeData()
-
-
Method Details
-
make
-
setType
Sets the type name of this object type. If the given type name is a subclass of the current type name, then the given name becomes the name of this object type.- Parameters:
className
- dot-separated name unless the type is an array type.- Throws:
BadBytecode
-
getTypeTag
public abstract int getTypeTag() -
getTypeData
-
join
-
isBasicType
If the type is a basic type, this method normalizes the type and returns a BasicType object. Otherwise, it returns null. -
is2WordType
public abstract boolean is2WordType() -
isNullType
public boolean isNullType()Returns false if getName() returns a valid type name. -
isUninit
public boolean isUninit() -
eq
-
getName
-
setType
- Throws:
BadBytecode
-
getArrayType
- Parameters:
dim
- array dimension. It may be negative.- Throws:
NotFoundException
-
dfs
Depth-first search by Tarjan's algorithm- Parameters:
order
- a node stack in the order in which nodes are visited.index
- the index used by the algorithm.- Throws:
NotFoundException
-
toTypeVar
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().- Parameters:
dim
- dimension
-
constructorCalled
public void constructorCalled(int offset) -
toString
-
toString2
-
commonSuperClassEx
Finds the most specific common super class of the given classes by considering array types.- Throws:
NotFoundException
-
commonSuperClass
Finds the most specific common super class of the given classes. This method is a copy from javassist.bytecode.analysis.Type.- Throws:
NotFoundException
-
eq
-
aastore
- Throws:
BadBytecode
-