public static class TypeData.TypeVar 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 | Field | Description |
---|---|---|
protected java.lang.String |
fixedType |
|
protected java.util.ArrayList |
lowers |
|
protected java.util.ArrayList |
uppers |
|
protected java.util.ArrayList |
usedBy |
Modifier and Type | Method | Description |
---|---|---|
int |
dfs(java.util.ArrayList preOrder,
int index,
ClassPool cp) |
Depth-first search by Tarjan's algorithm
|
TypeData |
getArrayType(int dim) |
|
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.
|
boolean |
isNullType() |
Returns false if getName() returns a valid type name.
|
boolean |
isUninit() |
|
void |
merge(TypeData t) |
|
void |
setType(java.lang.String typeName,
ClassPool cp) |
|
protected TypeData.TypeVar |
toTypeVar(int dim) |
Returns this if it is a TypeVar or a TypeVar that this
type depends on.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
aastore, commonSuperClass, commonSuperClassEx, constructorCalled, join, make, toString
eq
protected java.util.ArrayList lowers
protected java.util.ArrayList usedBy
protected java.util.ArrayList uppers
protected java.lang.String fixedType
public TypeVar(TypeData t)
public TypeData.BasicType isBasicType()
TypeData
isBasicType
in class TypeData
public boolean is2WordType()
is2WordType
in class TypeData
public boolean isNullType()
TypeData
isNullType
in class TypeData
public void merge(TypeData t)
merge
in class TypeData.AbsTypeVar
public int getTypeTag()
getTypeTag
in class TypeData.AbsTypeVar
public int getTypeData(ConstPool cp)
getTypeData
in class TypeData.AbsTypeVar
public void setType(java.lang.String typeName, 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(java.util.ArrayList preOrder, int index, ClassPool cp) throws NotFoundException
TypeData
dfs
in class TypeData
preOrder
- 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.