public class InstanceOfSnippets extends Object implements Snippets
Modifier and Type | Class and Description |
---|---|
(package private) static class |
InstanceOfSnippets.Options |
static class |
InstanceOfSnippets.Templates |
Constructor and Description |
---|
InstanceOfSnippets() |
Modifier and Type | Method and Description |
---|---|
static Object |
instanceofDynamic(Class<?> mirror,
Object object,
Object trueValue,
Object falseValue)
Type test used when the type being tested against is not known at compile time.
|
static Object |
instanceofExact(Object object,
KlassPointer exactHub,
Object trueValue,
Object falseValue)
A test against a final type.
|
static Object |
instanceofPrimary(KlassPointer hub,
Object object,
int superCheckOffset,
Object trueValue,
Object falseValue)
A test against a primary type.
|
static Object |
instanceofSecondary(KlassPointer hub,
Object object,
KlassPointer[] hints,
boolean[] hintIsPositive,
Object trueValue,
Object falseValue)
A test against a restricted secondary type type.
|
static Object |
instanceofWithProfile(Object object,
KlassPointer[] hints,
boolean[] hintIsPositive,
Object trueValue,
Object falseValue,
boolean nullSeen)
A test against a set of hints derived from a profile with 100% precise coverage of seen
types.
|
static Object |
isAssignableFrom(Class<?> thisClass,
Class<?> otherClass,
Object trueValue,
Object falseValue) |
public InstanceOfSnippets()
public static Object instanceofWithProfile(Object object, KlassPointer[] hints, boolean[] hintIsPositive, Object trueValue, Object falseValue, boolean nullSeen)
public static Object instanceofExact(Object object, KlassPointer exactHub, Object trueValue, Object falseValue)
public static Object instanceofPrimary(KlassPointer hub, Object object, int superCheckOffset, Object trueValue, Object falseValue)
public static Object instanceofSecondary(KlassPointer hub, Object object, KlassPointer[] hints, boolean[] hintIsPositive, Object trueValue, Object falseValue)
public static Object instanceofDynamic(Class<?> mirror, Object object, Object trueValue, Object falseValue)