That is, a visitor will have a .visit_FOO() and .depart_FOO() method for each type of node, rather than switching on type within large .startElement() and endElement() methods.
即,访问器会有针对每种类型节点的 .visit_FOO()和 .depart_FOO()方法,而不是在大型的.startElement() 和endElement() 方法中按类型进行切换。
That is, a visitor will have a .visit_FOO() and .depart_FOO() method for each type of node, rather than switching on type within large .startElement() and endElement() methods.
即,访问器会有针对每种类型节点的 .visit_FOO()和 .depart_FOO()方法,而不是在大型的.startElement() 和endElement() 方法中按类型进行切换。
应用推荐