blob: 1830b900387884fca68b8aa705c8ad210249c499 [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;
/**
*
* @generated by Gymnast from Emfatic.ast on 06.02.2007 17:57:34
*/
public class StringLiteralContainer extends StringLiteralOrQualifiedID {
private EmfaticTokenNode _string_literal;
public EmfaticTokenNode getString_literal() {
return _string_literal;
}
/**
* @return the number of children of this ASTNode
*/
public int getChildCount() {
int count = 0;
if (_string_literal != null) count++;
return count;
}
/**
* @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 ASTNode getChild(int index) {
int count = -1;
if ((_string_literal != null) && (++count == index)) return _string_literal;
throw new IndexOutOfBoundsException();
}
/**
* Construct a new StringLiteralContainer.
*/
public StringLiteralContainer(
TokenInfo string_literal
) {
super();
if (string_literal != null) {
_string_literal = new EmfaticTokenNode(string_literal);
if (_string_literal._parent != null) throw new RuntimeException();
_string_literal._parent = this;
}
}
/**
* 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);
}
}