Class Introspection.SpecializationInfo
java.lang.Object
com.oracle.truffle.api.dsl.Introspection.SpecializationInfo
- Enclosing class:
Introspection
Represents dynamic introspection information of a specialization of a DSL operation.
- Since:
- 0.22
-
Method Summary
Modifier and TypeMethodDescriptiongetCachedData(int instanceIndex) Returns the cached state for a given specialization instance.intReturns the number of dynamic specialization instances that are active for this specialization.Returns the method name of the introspected specialization.booleanisActive()Returnstrueif the specialization was active at the time when the introspection was performed.booleanReturnstrueif the specialization was excluded at the time when the introspection was performed.toString()
-
Method Details
-
getMethodName
Returns the method name of the introspected specialization. Please note that the returned method name might not be unique for a given node.- Since:
- 0.22
-
isActive
public boolean isActive()Returnstrueif the specialization was active at the time when the introspection was performed.- Since:
- 0.22
-
isExcluded
public boolean isExcluded()Returnstrueif the specialization was excluded at the time when the introspection was performed.- Since:
- 0.22
-
getInstances
public int getInstances()Returns the number of dynamic specialization instances that are active for this specialization.- Since:
- 0.22
-
getCachedData
Returns the cached state for a given specialization instance. The provided instance index must be greater or equal0and smallergetInstances(). The returned list is unmodifiable and nevernull.- Since:
- 0.22
-
toString
-