Package xal.smf.impl.qualify
Class ElementTypeManager
java.lang.Object
xal.smf.impl.qualify.ElementTypeManager
ElementTypeManager keeps track of which types are associated with which
subclass of AcceleratorNode. It is used for filtering nodes by type.
- Author:
- tap
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ElementTypeManagerget the default element type manager instancegetTypes()get the set of all types<T> booleanCheck if the class or one of its superclasses is associated with the type.booleanmatch(AcceleratorNode node, String type) Check if the node is of the specified type.voidregisterType(Class<? extends AcceleratorNode> theClass, String type) Register the type to specified class to be of the specified typevoidregisterTypes(Class<? extends AcceleratorNode> theClass, String... types) Register the specified types to the specified class
-
Constructor Details
-
ElementTypeManager
public ElementTypeManager()Creates new ElementTypeManager
-
-
Method Details
-
defaultManager
get the default element type manager instance -
registerTypes
Register the specified types to the specified class -
registerType
Register the type to specified class to be of the specified type -
match
Check if the node is of the specified type. A node may belong to more than one type due to inheritance. -
match
Check if the class or one of its superclasses is associated with the type. -
getTypes
get the set of all types
-