Package javassist.bytecode.stackmap
Class TypeData.BasicType
- java.lang.Object
-
- javassist.bytecode.stackmap.TypeData
-
- javassist.bytecode.stackmap.TypeData.BasicType
-
-
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 Modifier and Type Field Description private char
decodedName
private java.lang.String
name
private int
typeTag
-
Constructor Summary
Constructors Constructor Description BasicType(java.lang.String type, int tag, char decoded)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
eq(TypeData d)
TypeData
getArrayType(int dim)
char
getDecodedName()
java.lang.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.TypeData
join()
void
setType(java.lang.String s, ClassPool cp)
(package private) java.lang.String
toString2(java.util.Set<TypeData> set)
-
Methods inherited from class javassist.bytecode.stackmap.TypeData
aastore, commonSuperClass, commonSuperClassEx, constructorCalled, dfs, eq, isNullType, isUninit, make, toString, toTypeVar
-
-
-
-
Method Detail
-
getTypeTag
public int getTypeTag()
- Specified by:
getTypeTag
in classTypeData
-
getTypeData
public int getTypeData(ConstPool cp)
- Specified by:
getTypeData
in classTypeData
-
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
-
getDecodedName
public char getDecodedName()
-
setType
public void setType(java.lang.String s, ClassPool cp) throws BadBytecode
- Specified by:
setType
in classTypeData
- Throws:
BadBytecode
-
getArrayType
public TypeData getArrayType(int dim) throws NotFoundException
- Specified by:
getArrayType
in classTypeData
- Parameters:
dim
- array dimension. It may be negative.- Throws:
NotFoundException
-
-