public static class TypeData.ArrayElement extends TypeData.AbsTypeVar
TypeData.AbsTypeVar, TypeData.ArrayElement, TypeData.ArrayType, TypeData.BasicType, TypeData.ClassName, TypeData.NullType, TypeData.TypeVar, TypeData.UninitData, TypeData.UninitThis, TypeData.UninitTypeVar| Modifier and Type | Method and Description |
|---|---|
TypeData.AbsTypeVar |
arrayType() |
int |
dfs(ArrayList order,
int index,
ClassPool cp)
Depth-first search by Tarjan's algorithm
|
TypeData |
getArrayType(int dim) |
String |
getName() |
boolean |
is2WordType() |
TypeData.BasicType |
isBasicType()
If the type is a basic type, this method normalizes the type
and returns a BasicType object.
|
static TypeData |
make(TypeData array) |
void |
merge(TypeData t) |
void |
setType(String s,
ClassPool cp) |
protected TypeData.TypeVar |
toTypeVar(int dim)
Returns this if it is a TypeVar or a TypeVar that this
type depends on.
|
eq, getTypeData, getTypeTagaastore, commonSuperClass, commonSuperClassEx, constructorCalled, isNullType, isUninit, join, make, toStringpublic static TypeData make(TypeData array) throws BadBytecode
BadBytecodepublic void merge(TypeData t)
merge in class TypeData.AbsTypeVarpublic TypeData.AbsTypeVar arrayType()
public TypeData.BasicType isBasicType()
TypeDataisBasicType in class TypeDatapublic boolean is2WordType()
is2WordType in class TypeDatapublic void setType(String s, ClassPool cp) throws BadBytecode
setType in class TypeDataBadBytecodeprotected TypeData.TypeVar toTypeVar(int dim)
TypeDatapublic TypeData getArrayType(int dim) throws NotFoundException
getArrayType in class TypeDatadim - array dimension. It may be negative.NotFoundExceptionpublic int dfs(ArrayList order, int index, ClassPool cp) throws NotFoundException
TypeDatadfs in class TypeDataorder - a node stack in the order in which nodes are visited.index - the index used by the algorithm.NotFoundExceptionCopyright © 2016 Shigeru Chiba, www.javassist.org. All Rights Reserved.