Class Introspection.SpecializationInfo

java.lang.Object
com.oracle.truffle.api.dsl.Introspection.SpecializationInfo
Enclosing class:
Introspection

public static final class Introspection.SpecializationInfo extends Object
Represents dynamic introspection information of a specialization of a DSL operation.
Since:
0.22
  • Method Summary

    Modifier and Type
    Method
    Description
    getCachedData(int instanceIndex)
    Returns the cached state for a given specialization instance.
    int
    Returns the number of dynamic specialization instances that are active for this specialization.
    Returns the method name of the introspected specialization.
    boolean
    Returns true if the specialization was active at the time when the introspection was performed.
    boolean
    Returns true if the specialization was excluded at the time when the introspection was performed.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Method Details

    • getMethodName

      public String 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()
      Returns true if the specialization was active at the time when the introspection was performed.
      Since:
      0.22
    • isExcluded

      public boolean isExcluded()
      Returns true if 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

      public List<Object> getCachedData(int instanceIndex)
      Returns the cached state for a given specialization instance. The provided instance index must be greater or equal 0 and smaller getInstances(). The returned list is unmodifiable and never null.
      Since:
      0.22
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Since:
      21.1