Class SimpleArrayHandler

java.lang.Object
com.singularsys.extensions.mathml.parser.SimpleArrayHandler
All Implemented Interfaces:
TagHandler

public class SimpleArrayHandler extends Object implements TagHandler
Returns an array of non-null children, flattening nested arrays and Lists.
Author:
Richard Morris
  • Constructor Details

    • SimpleArrayHandler

      public SimpleArrayHandler()
  • Method Details

    • handle

      public Object handle(StackFrame frame, Locator loc)
      Description copied from interface: TagHandler
      Transform the element, called when a closing tag is encountered.
      Specified by:
      handle in interface TagHandler
      Parameters:
      frame - StackFrame representing the element
      loc - location in input
      Returns:
      typically a Node, other types of objects may also be returned when the tag has a special meaning for its parent node.
    • doChild

      protected void doChild(List<Object> list, Object child, int level)
    • getInstance

      public static SimpleArrayHandler getInstance()