blob: bb1d6726f97ef6dbcf383f60088523b95e1c1a4a [file] [log] [blame]
/*=============================================================================#
# Copyright (c) 2009, 2018 Stephan Wahlbrink and others.
#
# This program and the accompanying materials are made available under the
# terms of the Eclipse Public License 2.0 which is available at
# https://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0
# which is available at https://www.apache.org/licenses/LICENSE-2.0.
#
# SPDX-License-Identifier: EPL-2.0 OR Apache-2.0
#
# Contributors:
# Stephan Wahlbrink <sw@wahlbrink.eu> - initial API and implementation
#=============================================================================*/
package org.eclipse.statet.docmlet.tex.core.ast;
import java.lang.reflect.InvocationTargetException;
import org.eclipse.statet.docmlet.tex.core.ast.TexAst.NodeType;
import org.eclipse.statet.ltk.ast.core.AstNode;
import org.eclipse.statet.ltk.ast.core.AstVisitor;
public final class Dummy extends TexAstNode {
Dummy() {
}
@Override
public NodeType getNodeType() {
return NodeType.ERROR;
}
@Override
public boolean hasChildren() {
return false;
}
@Override
public int getChildCount() {
return 0;
}
@Override
public TexAstNode getChild(final int index) {
throw new IndexOutOfBoundsException();
}
@Override
public int getChildIndex(final AstNode element) {
return -1;
}
@Override
public void acceptInChildren(final AstVisitor visitor) throws InvocationTargetException {
}
@Override
public void acceptInTex(final TexAstVisitor visitor) throws InvocationTargetException {
visitor.visit(this);
}
@Override
public void acceptInTexChildren(final TexAstVisitor visitor) throws InvocationTargetException {
}
}