Package com.oracle.truffle.api.utilities
Class ExactClassValueProfile
- java.lang.Object
-
- com.oracle.truffle.api.utilities.ValueProfile
-
- com.oracle.truffle.api.utilities.ExactClassValueProfile
-
public final class ExactClassValueProfile extends ValueProfile
Represents aValueProfile
that speculates on the exact class of a value.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Class<?>
cachedClass
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<?>
getCachedClass()
boolean
isGeneric()
boolean
isUninitialized()
<T> T
profile(T value)
java.lang.String
toString()
-
Methods inherited from class com.oracle.truffle.api.utilities.ValueProfile
createClassProfile, createIdentityProfile, createPrimitiveProfile
-
-
-
-
Method Detail
-
profile
public <T> T profile(T value)
- Specified by:
profile
in classValueProfile
-
isGeneric
public boolean isGeneric()
-
isUninitialized
public boolean isUninitialized()
-
getCachedClass
public java.lang.Class<?> getCachedClass()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-