blob: 78eb953384ea09b31d537d51f0a722a90e512ac7 [file] [log] [blame]
package org.eclipse.emf.emfatic.core.lang.gen.ast;
import org.eclipse.gymnast.runtime.core.ast.ASTNode;
import org.eclipse.gymnast.runtime.core.ast.TokenInfo;
/**
* Represents a token in the language grammar.
* Can be subclassed to represent specific token subgroups.
*
* @generated by Gymnast from Emfatic.ast on 06.02.2007 17:57:34
*/
public class EmfaticTokenNode extends EmfaticASTNode {
/**
* @return the number of children of this ASTNode
*/
public final int getChildCount() {
// token rules cannot have children!
return 0;
}
/**
* @param index the index of a child ASTNode to get
* @return the child ASTNode at the given index
* @throws IndexOutOfBoundsException when the index is out of bounds
*/
public final ASTNode getChild(int index) {
// token rules cannot have children!
throw new IndexOutOfBoundsException();
}
/**
* Construct a new EmfaticTokenNode
*/
public EmfaticTokenNode(TokenInfo tokenInfo) {
super(tokenInfo);
}
/**
* This method overrides the superclass <code>acceptImpl</code> providing
* the same implementation. Here <code>this</code> refers to this specific node
* class, so the <code>beginVisit</code> and <code>endVisit</code> methods
* specific to this type in the visitor will be invoked.
*/
public void acceptImpl(EmfaticASTNodeVisitor visitor) {
boolean visitChildren = visitor.beginVisit(this);
if (visitChildren) visitChildren(visitor);
visitor.endVisit(this);
}
}