public static class TypeData.ArrayType 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 | Description |
---|---|---|
int |
dfs(ArrayList order,
int index,
ClassPool cp) |
Depth-first search by Tarjan's algorithm
|
TypeData.AbsTypeVar |
elementType() |
|
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.
|
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.
|
static String |
typeName(String elementType) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
aastore, commonSuperClass, commonSuperClassEx, constructorCalled, isNullType, isUninit, join, make, toString
eq, getTypeData, getTypeTag
public void merge(TypeData t)
merge
in class TypeData.AbsTypeVar
public TypeData.AbsTypeVar elementType()
public TypeData.BasicType isBasicType()
TypeData
isBasicType
in class TypeData
public boolean is2WordType()
is2WordType
in class TypeData
public void setType(String s, ClassPool cp) throws BadBytecode
setType
in class TypeData
BadBytecode
protected TypeData.TypeVar toTypeVar(int dim)
TypeData
public TypeData getArrayType(int dim) throws NotFoundException
getArrayType
in class TypeData
dim
- array dimension. It may be negative.NotFoundException
public int dfs(ArrayList order, int index, ClassPool cp) throws NotFoundException
TypeData
dfs
in class TypeData
order
- a node stack in the order in which nodes are visited.index
- the index used by the algorithm.NotFoundException
Copyright © 2018 Shigeru Chiba, www.javassist.org. All rights reserved.