Class HandlerFactory


  • public class HandlerFactory
    extends java.lang.Object
    Factory for handlers. Looks up constructor via reflection.
    • Constructor Detail

      • HandlerFactory

        public HandlerFactory()
        Creates a HandlerFactory.
    • Method Detail

      • isHandledType

        public boolean isHandledType​(int type)
        Returns true if this type (form TokenTypes) is handled.
        Parameters:
        type - type from TokenTypes
        Returns:
        true if handler is registered, false otherwise
      • getHandledTypes

        public int[] getHandledTypes()
        Gets list of registered handler types.
        Returns:
        int[] of TokenType types
      • clearCreatedHandlers

        public void clearCreatedHandlers()
        Clears cache of created handlers.