Class ElementTypeManager

java.lang.Object
xal.smf.impl.qualify.ElementTypeManager

public class ElementTypeManager extends Object
ElementTypeManager keeps track of which types are associated with which subclass of AcceleratorNode. It is used for filtering nodes by type.
Author:
tap
  • Constructor Details

    • ElementTypeManager

      public ElementTypeManager()
      Creates new ElementTypeManager
  • Method Details

    • defaultManager

      public static ElementTypeManager defaultManager()
      get the default element type manager instance
    • registerTypes

      public void registerTypes(Class<? extends AcceleratorNode> theClass, String... types)
      Register the specified types to the specified class
    • registerType

      public void registerType(Class<? extends AcceleratorNode> theClass, String type)
      Register the type to specified class to be of the specified type
    • match

      public boolean match(AcceleratorNode node, String type)
      Check if the node is of the specified type. A node may belong to more than one type due to inheritance.
    • match

      public <T> boolean match(Class<T> theClass, String type)
      Check if the class or one of its superclasses is associated with the type.
    • getTypes

      public Collection<String> getTypes()
      get the set of all types