ASTUpdateContainer.java

/*******************************************************************************
 * Copyright (c) 2015 Eclipse RDF4J contributors, Aduna, and others.
 *
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Distribution License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/org/documents/edl-v10.php.
 *
 * SPDX-License-Identifier: BSD-3-Clause
 *******************************************************************************/
/* Generated By:JJTree: Do not edit this line. ASTUpdateContainer.java Version 4.3 */
/* JavaCCOptions:MULTI=true,NODE_USES_PARSER=false,VISITOR=true,TRACK_TOKENS=false,NODE_PREFIX=AST,NODE_EXTENDS=,NODE_FACTORY=,SUPPORT_CLASS_VISIBILITY_PUBLIC=true */
package org.eclipse.rdf4j.query.parser.sparql.ast;

public class ASTUpdateContainer extends ASTOperationContainer {

	private String sourceString;

	public ASTUpdateContainer(int id) {
		super(id);
	}

	public ASTUpdateContainer(SyntaxTreeBuilder p, int id) {
		super(p, id);
	}

	/** Accept the visitor. **/
	@Override
	public Object jjtAccept(SyntaxTreeBuilderVisitor visitor, Object data) throws VisitorException {
		return visitor.visit(this, data);
	}

	@Override
	public void setSourceString(String source) {
		throw new RuntimeException("should use setSourceString on parent node of type ASTUpdateSequence instead");
	}

	@Override
	public String getSourceString() {
		ASTUpdateSequence sequence = (ASTUpdateSequence) parent;
		return sequence.getSourceString();
	}

	public ASTUpdate getUpdate() {
		return this.jjtGetChild(ASTUpdate.class);
	}
}
/* JavaCC - OriginalChecksum=fc3044232a8f28a530abb0172b429242 (do not edit this line) */