The visitor for computing complexities
The type-to-function mapping for semantic types
The complexity object containing this one
The cutt-off complexity values for when a structure of the given type should collapse
These are the characters to use for the various collapsed elements (if an object, then semantic-role is used to get the character from the object)
Static
NOCOLLAPSEA constant to use to indicate no collapsing
Protected
canCheck if a node should be collapsible and insert the maction node to handle that. Return the updated complexity.
The node to check
The current complexity of the node
The revised complexity
Protected
defaultCheck if the complexity exceeds the cutoff value for the type
The node to check
The current complexity of the node
The semantic type of the node
The revised complexity
Protected
findProtected
findThe node whose child text is needed
The (semantic) id of the child needed
The text of the specified child node
Protected
getThe node whose text content is needed
The text of the node (and its children), combined
The node to make collapsible by replacing with an maction
The list of nodes to replace by maction nodes
Add maction nodes to the nodes in the tree that can collapse
The root of the tree to check
The initial id to use
The initial id used
Protected
recordThe node to check
The current complexity of the node
The text to use for the collapsed node
The revised complexity for the collapsed node
Protected
splitThe node whose attribute is to be split
The name of the data-semantic attribute to split
Array of ids in the attribute split at commas
Protected
uncollapseThe current complexity
The node to check
The position of the child node to check
The number of children the node must have
The updated complexity
Protected
unrecordRemove collapse markers (to move them to a parent node)
The node to uncollapse
The class for determining of a subtree can be collapsed