Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: bd138f11ad79b63c0e5fedc0181c6a21f3f8ace9 (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
32
33
34
35
36
37
38
39
/*******************************************************************************
 * 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.internal.dom;

import org.eclipse.vex.core.dom.INode;
import org.eclipse.vex.core.dom.INodeVisitor;
import org.eclipse.vex.core.dom.INodeVisitorWithResult;

/**
 * @author Florian Thienel
 */
public class BasicNodeTest extends NodeTest {

	@Override
	protected Node createNode() {
		return new Node() {
			public void accept(final INodeVisitor visitor) {
				throw new UnsupportedOperationException();
			}

			public <T> T accept(final INodeVisitorWithResult<T> visitor) {
				throw new UnsupportedOperationException();
			}

			public boolean isKindOf(final INode node) {
				return false;
			}
		};
	}

}

Back to the top