public class RefType extends RefLikeType implements java.lang.Comparable
| Constructor and Description |
|---|
RefType(Singletons.Global g) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(Switch sw)
Method required for use of Switchable.
|
int |
compareTo(java.lang.Object o) |
boolean |
equals(java.lang.Object t)
2 RefTypes are considered equal if they are parametrized by the same class name String.
|
AnySubType |
getAnySubType() |
Type |
getArrayElementType()
If I have a variable x of declared type t, what is a good
declared type for the expression ((Object[]) x)[i]? The
getArrayElementType() method in RefLikeType was introduced even
later to answer this question for all classes implementing
RefLikeType.
|
java.lang.String |
getClassName() |
SootClass |
getSootClass()
Get the SootClass object corresponding to this RefType.
|
int |
hashCode() |
boolean |
hasSootClass() |
Type |
merge(Type other,
Scene cm)
Returns the least common superclass of this type and other.
|
void |
setAnySubType(AnySubType anySubType) |
void |
setClassName(java.lang.String className) |
void |
setSootClass(SootClass sootClass)
Set the SootClass object corresponding to this RefType.
|
java.lang.String |
toString()
Returns a textual representation of this type.
|
static RefType |
v() |
static RefType |
v(SootClass c)
Create a RefType for a class.
|
static RefType |
v(java.lang.String className)
Create a RefType for a class.
|
getArrayType, getNumber, makeArrayType, setArrayType, setNumber, toMachineTypepublic RefType(Singletons.Global g)
public static RefType v()
public java.lang.String getClassName()
public static RefType v(java.lang.String className)
className - The name of the class used to parametrize the created RefType.public int compareTo(java.lang.Object o)
throws java.lang.ClassCastException
compareTo in interface java.lang.Comparablejava.lang.ClassCastExceptionpublic static RefType v(SootClass c)
c - A SootClass for which to create a RefType.public SootClass getSootClass()
public boolean hasSootClass()
public void setClassName(java.lang.String className)
public void setSootClass(SootClass sootClass)
sootClass - The SootClass corresponding to this RefType.public boolean equals(java.lang.Object t)
equals in class java.lang.Objectt - an object to test for equality.public java.lang.String toString()
Typepublic int hashCode()
hashCode in class java.lang.Objectpublic void apply(Switch sw)
Typeapply in interface Switchableapply in class Typepublic Type merge(Type other, Scene cm)
public Type getArrayElementType()
RefLikeTypegetArrayElementType in class RefLikeTypepublic AnySubType getAnySubType()
public void setAnySubType(AnySubType anySubType)
Copyright © 2012-2019 RoboVM AB. All Rights Reserved.