Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 7b7b4b110d7be08905bcc7ded048b41b59e1efeb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*******************************************************************************
 * Copyright (c) 2012 Florian Thienel and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 * 
 * Contributors:
 * 		Florian Thienel - initial API and implementation
 *******************************************************************************/
package org.eclipse.vex.core.dom;

/**
 * An incarantion of the <a href="http://en.wikipedia.org/wiki/Visitor_pattern">Visitor pattern</a> which handles the
 * nodes of the structural part of the DOM and is able to return a value of a certain type.
 * 
 * @author Florian Thienel
 */
public interface INodeVisitorWithResult<T> {

	T visit(IDocument document);

	T visit(IDocumentFragment fragment);

	T visit(IElement element);

	T visit(IText text);

	T visit(IComment comment);

}

Back to the top