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 classstatic classstatic classprotected static classPrimitive types.static classType data for OBJECT.static classType data for NULL or OBJECT.static classstatic classType data for UNINIT.static classstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic CtClasscommonSuperClass(CtClass one, CtClass two) Finds the most specific common super class of the given classes.static CtClasscommonSuperClassEx(CtClass one, CtClass two) Finds the most specific common super class of the given classes by considering array types.voidconstructorCalled(int offset) intDepth-first search by Tarjan's algorithmabstract boolean(package private) static booleanabstract TypeDatagetArrayType(int dim) abstract StringgetName()abstract intgetTypeData(ConstPool cp) abstract intabstract booleanabstract TypeData.BasicTypeIf 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.booleanisUninit()join()static TypeData[]make(int size) abstract voidprivate static voidSets the type name of this object type.toString()(package private) abstract Stringprotected TypeData.TypeVartoTypeVar(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
-